Class ResponseStatus
java.lang.Object
org.springframework.extensions.webscripts.Status
org.springframework.extensions.webscripts.connector.ResponseStatus
Wrapper around the Status object that allows the Remote Client to
expose header state.
Records the outcome of a call
- Author:
- muzquiano
-
Field Summary
Fields inherited from class org.springframework.extensions.webscripts.Status
STATUS_ACCEPTED, STATUS_BAD_GATEWAY, STATUS_BAD_REQUEST, STATUS_CONFLICT, STATUS_CONTINUE, STATUS_CREATED, STATUS_EXPECTATION_FAILED, STATUS_FORBIDDEN, STATUS_FOUND, STATUS_GATEWAY_TIMEOUT, STATUS_GONE, STATUS_HTTP_VERSION_NOT_SUPPORTED, STATUS_INTERNAL_SERVER_ERROR, STATUS_LENGTH_REQUIRED, STATUS_METHOD_NOT_ALLOWED, STATUS_MOVED_PERMANENTLY, STATUS_MOVED_TEMPORARILY, STATUS_MULTIPLE_CHOICES, STATUS_NO_CONTENT, STATUS_NON_AUTHORITATIVE_INFORMATION, STATUS_NOT_ACCEPTABLE, STATUS_NOT_FOUND, STATUS_NOT_IMPLEMENTED, STATUS_NOT_MODIFIED, STATUS_OK, STATUS_PARTIAL_CONTENT, STATUS_PAYMENT_REQUIRED, STATUS_PRECONDITION_FAILED, STATUS_PROXY_AUTHENTICATION_REQUIRED, STATUS_REQUEST_ENTITY_TOO_LARGE, STATUS_REQUEST_TIMEOUT, STATUS_REQUEST_URI_TOO_LONG, STATUS_REQUESTED_RANGE_NOT_SATISFIABLE, STATUS_RESET_CONTENT, STATUS_SEE_OTHER, STATUS_SERVICE_UNAVAILABLE, STATUS_SWITCHING_PROTOCOLS, STATUS_TEMPORARY_REDIRECT, STATUS_UNAUTHORIZED, STATUS_UNSUPPORTED_MEDIA_TYPE, STATUS_USE_PROXY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.extensions.webscripts.Status
getCode, getCodeDescription, getCodeName, getException, getLocation, getMessage, getRedirect, setCode, setCode, setException, setLocation, setMessage, setRedirect, toString
-
Constructor Details
-
ResponseStatus
public ResponseStatus()
-
-
Method Details
-
setHeader
Allows for response headers to be stored onto the status- Parameters:
headerName- name of the headerheaderValue- value of the header
-
getHeaders
Retrieves response headers- Returns:
- map of response headers
-