|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.action.ErrorResolution
public class ErrorResolution
Resolution for sending HTTP error messages back to the client. errorCode is the HTTP status code to be sent. errorMessage is a descriptive message.
Constructor Summary | |
---|---|
ErrorResolution(int errorCode)
Sends an error response to the client using the specified status code and clears the buffer. |
|
ErrorResolution(int errorCode,
String errorMessage)
Sends an error response to the client using the specified status code and message and clears the buffer. |
Method Summary | |
---|---|
void |
execute(HttpServletRequest request,
HttpServletResponse response)
Called by the Stripes dispatcher to invoke the Resolution. |
int |
getErrorCode()
Accessor for the HTTP status code. |
String |
getErrorMessage()
Accessor for the descriptive error message. |
void |
setErrorCode(int errorCode)
Setter for the HTTP status code. |
void |
setErrorMessage(String errorMessage)
Setter for the descriptive error message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorResolution(int errorCode)
errorCode
- the HTTP status codepublic ErrorResolution(int errorCode, String errorMessage)
errorCode
- the HTTP status codeerrorMessage
- a descriptive messageMethod Detail |
---|
public void execute(HttpServletRequest request, HttpServletResponse response) throws Exception
Resolution
execute
in interface Resolution
request
- the current HttpServletRequestresponse
- the current HttpServletResponse
Exception
- exceptions of any type may be thrown if the Resolution cannot be
executed as intendedpublic int getErrorCode()
public void setErrorCode(int errorCode)
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |