|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.webscripts.Status
public class Status
Web Script Status Records the outcome of a Web Script.
| Constructor Summary | |
|---|---|
Status()
|
|
| Method Summary | |
|---|---|
int |
getCode()
|
String |
getCodeDescription()
Gets the description of the status code |
String |
getCodeName()
Gets the short name of the status code |
Throwable |
getException()
|
String |
getLocation()
|
String |
getMessage()
|
boolean |
getRedirect()
|
void |
setCode(int code)
|
void |
setCode(int code,
String message)
Helper method to set the code and message. |
void |
setException(Throwable exception)
|
void |
setLocation(String location)
|
void |
setMessage(String message)
|
void |
setRedirect(boolean redirect)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_CONTINUE
public static final int STATUS_SWITCHING_PROTOCOLS
public static final int STATUS_OK
public static final int STATUS_CREATED
public static final int STATUS_ACCEPTED
public static final int STATUS_NON_AUTHORITATIVE_INFORMATION
public static final int STATUS_NO_CONTENT
public static final int STATUS_RESET_CONTENT
public static final int STATUS_PARTIAL_CONTENT
public static final int STATUS_MULTIPLE_CHOICES
public static final int STATUS_MOVED_PERMANENTLY
public static final int STATUS_MOVED_TEMPORARILY
public static final int STATUS_FOUND
public static final int STATUS_SEE_OTHER
public static final int STATUS_NOT_MODIFIED
public static final int STATUS_USE_PROXY
public static final int STATUS_TEMPORARY_REDIRECT
public static final int STATUS_BAD_REQUEST
public static final int STATUS_UNAUTHORIZED
public static final int STATUS_PAYMENT_REQUIRED
public static final int STATUS_FORBIDDEN
public static final int STATUS_NOT_FOUND
public static final int STATUS_METHOD_NOT_ALLOWED
public static final int STATUS_NOT_ACCEPTABLE
public static final int STATUS_PROXY_AUTHENTICATION_REQUIRED
public static final int STATUS_REQUEST_TIMEOUT
public static final int STATUS_CONFLICT
public static final int STATUS_GONE
public static final int STATUS_LENGTH_REQUIRED
public static final int STATUS_PRECONDITION_FAILED
public static final int STATUS_REQUEST_ENTITY_TOO_LARGE
public static final int STATUS_REQUEST_URI_TOO_LONG
public static final int STATUS_UNSUPPORTED_MEDIA_TYPE
public static final int STATUS_REQUESTED_RANGE_NOT_SATISFIABLE
public static final int STATUS_EXPECTATION_FAILED
public static final int STATUS_INTERNAL_SERVER_ERROR
public static final int STATUS_NOT_IMPLEMENTED
public static final int STATUS_BAD_GATEWAY
public static final int STATUS_SERVICE_UNAVAILABLE
public static final int STATUS_GATEWAY_TIMEOUT
public static final int STATUS_HTTP_VERSION_NOT_SUPPORTED
| Constructor Detail |
|---|
public Status()
| Method Detail |
|---|
public void setCode(int code,
String message)
Redirect is set to true.
code - codemessage - messagepublic void setException(Throwable exception)
exception - public Throwable getException()
public void setMessage(String message)
message - public String getMessage()
public void setRedirect(boolean redirect)
redirect - redirect to status code responsepublic boolean getRedirect()
public void setCode(int code)
code - status codejavax.servlet.http.HTTPServletResponsepublic int getCode()
public String getCodeName()
public void setLocation(String location)
location - location response-headerjavax.servlet.http.HTTPServletResponsepublic String getLocation()
public String getCodeDescription()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||