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 |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetachpublic 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()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.