public final class ErrorCodeRequestHandler extends Object implements IRequestHandler
IRequestCycles.| Constructor and Description |
|---|
ErrorCodeRequestHandler(int errorCode)
Construct.
|
ErrorCodeRequestHandler(int errorCode,
String message)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach(IRequestCycle requestCycle)
This method is called at the end of a request cycle to indicate that processing is done and
that cleaning up of the subject(s) of this target may be done.
|
int |
getErrorCode()
Gets the servlet error code.
|
String |
getMessage()
Gets the optional message to send to the client.
|
void |
respond(IRequestCycle requestCycle)
Respond by sending the set errorCode and optionally the message to the browser.
|
public ErrorCodeRequestHandler(int errorCode)
errorCode - the servlet error code; use one of the
HttpServletResponse constantsHttpServletResponsepublic ErrorCodeRequestHandler(int errorCode,
String message)
errorCode - the servlet error code; use one of the
HttpServletResponse constantsmessage - the optional message to send to the clientHttpServletResponsepublic void respond(IRequestCycle requestCycle)
respond in interface IRequestHandlerrequestCycle - the current request cycleIRequestHandler.respond(org.apache.wicket.request.IRequestCycle)public final int getErrorCode()
public final String getMessage()
public void detach(IRequestCycle requestCycle)
detach in interface IRequestHandlerrequestCycle - the current request cycleCopyright © 2006–2015 Apache Software Foundation. All rights reserved.