|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.protocol.http.request.WebErrorCodeResponseTarget
public final class WebErrorCodeResponseTarget
Response target that is to be used in a servlet environment to send an error code and optionally
a message. NOTE: this target can only be used in a servlet environment with
WebRequestCycle
s.
Constructor Summary | |
---|---|
WebErrorCodeResponseTarget(int errorCode)
Construct. |
|
WebErrorCodeResponseTarget(int errorCode,
java.lang.String message)
Construct. |
Method Summary | |
---|---|
void |
detach(RequestCycle 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. |
boolean |
equals(java.lang.Object obj)
|
int |
getErrorCode()
Gets the servlet error code. |
java.lang.String |
getMessage()
Gets the optional message to send to the client. |
int |
hashCode()
|
void |
respond(RequestCycle requestCycle)
Respond by sending the set errorCode and optionally the message to the browser. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WebErrorCodeResponseTarget(int errorCode)
errorCode
- the servlet error code; use one of the
HttpServletResponse
constantsHttpServletResponse
public WebErrorCodeResponseTarget(int errorCode, java.lang.String message)
errorCode
- the servlet error code; use one of the
HttpServletResponse
constantsmessage
- the optional message to send to the clientHttpServletResponse
Method Detail |
---|
public void respond(RequestCycle requestCycle)
respond
in interface IRequestTarget
requestCycle
- the current request cycleIRequestTarget.respond(org.apache.wicket.RequestCycle)
public final int getErrorCode()
public final java.lang.String getMessage()
public void detach(RequestCycle requestCycle)
IRequestTarget
detach
in interface IRequestTarget
requestCycle
- the current request cycleIRequestTarget.detach(org.apache.wicket.RequestCycle)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |