public abstract class SecurityCodeConfirmationHandler extends Object
Constructor and Description |
---|
SecurityCodeConfirmationHandler(SecurityCodeAction action)
Create a new handler for the given action
|
Modifier and Type | Method and Description |
---|---|
abstract SecurityCodeConfirmationResult |
confirm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SecurityCode code)
Confirm the code.
|
SecurityCodeAction |
getAction() |
LocalizedMessage |
getWarningForMissingCode(javax.servlet.http.HttpServletRequest request,
String code)
Return a message that should be shown as warning to the user if the action of this handler
was provided but the code did not exist.
|
public SecurityCodeConfirmationHandler(SecurityCodeAction action)
action
- the action of the security code this handler can handlepublic abstract SecurityCodeConfirmationResult confirm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SecurityCode code) throws SecurityCodeNotFoundException, IOException
request
- the current requestresponse
- the current responsecode
- the code to confirmSecurityCodeNotFoundException
- in case the code was removed in the meantimeIOException
- in case this handler wrote to the response and this caused an errorpublic SecurityCodeAction getAction()
public LocalizedMessage getWarningForMissingCode(javax.servlet.http.HttpServletRequest request, String code)
request
- the current requestcode
- the code that could not be foundCopyright © 2019 Communote team. All rights reserved.