public final class ErrorCodeRequestHandler extends Object implements IRequestHandler
IRequestCycle
s.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, wait
detach
public ErrorCodeRequestHandler(int errorCode)
errorCode
- the servlet error code; use one of the
HttpServletResponse
constantsHttpServletResponse
public ErrorCodeRequestHandler(int errorCode, String message)
errorCode
- the servlet error code; use one of the
HttpServletResponse
constantsmessage
- the optional message to send to the clientHttpServletResponse
public void respond(IRequestCycle requestCycle)
respond
in interface IRequestHandler
requestCycle
- the current request cycleIRequestHandler.respond(org.apache.wicket.request.IRequestCycle)
public final int getErrorCode()
public final String getMessage()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.