org.springframework.extensions.webscripts.connector
Class ResponseStatus

java.lang.Object
  extended by org.springframework.extensions.webscripts.Status
      extended by org.springframework.extensions.webscripts.connector.ResponseStatus

public class ResponseStatus
extends Status

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
ResponseStatus()
           
 
Method Summary
 Map<String,String> getHeaders()
          Retrieves response headers
 void setHeader(String headerName, String headerValue)
          Allows for response headers to be stored onto the status
 
Methods inherited from class org.springframework.extensions.webscripts.Status
getCode, getCodeDescription, getCodeName, getException, getLocation, getMessage, getRedirect, setCode, setCode, setException, setLocation, setMessage, setRedirect, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResponseStatus

public ResponseStatus()
Method Detail

setHeader

public void setHeader(String headerName,
                      String headerValue)
Allows for response headers to be stored onto the status

Parameters:
headerName - name of the header
headerValue - value of the header

getHeaders

public Map<String,String> getHeaders()
Retrieves response headers

Returns:
map of response headers


Copyright © 2009 SpringSource, Inc. All Rights Reserved.