|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.servlet.respond.AbstractResponder com.taursys.servlet.respond.ErrorResponder
ErrorResponder sends status code and optional message as response.
Constructor Summary | |
ErrorResponder()
Constructs a new ErrorResponder |
|
ErrorResponder(int statusCode)
Constructs a new ErrorResponder with status code |
|
ErrorResponder(int statusCode,
java.lang.String message)
Constructs a new ErrorResponder with status code and message |
Method Summary | |
java.lang.String |
getMessage()
Get the optional message to be used for the reponse. |
int |
getStatusCode()
Get the status code to be used for the response. |
void |
respond()
Responds by sending status code and optional message. |
void |
setMessage(java.lang.String newMessage)
Set the optional message to be used for the reponse. |
void |
setStatusCode(int newStatusCode)
Set the status code to be used for the response. |
Methods inherited from class com.taursys.servlet.respond.AbstractResponder |
getServletForm, setServletForm |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ErrorResponder()
public ErrorResponder(int statusCode)
public ErrorResponder(int statusCode, java.lang.String message)
Method Detail |
public void respond() throws java.lang.Exception
respond
in interface Responder
respond
in class AbstractResponder
java.lang.Exception
- if problem respondingpublic void setStatusCode(int newStatusCode)
newStatusCode
- the status code to be used for the response.public int getStatusCode()
public void setMessage(java.lang.String newMessage)
newMessage
- the optional message to be used for the reponse.public java.lang.String getMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |