org.sakaiproject.entitybroker.util
Class EntityResponse

java.lang.Object
  extended by org.sakaiproject.entitybroker.util.EntityResponse

public class EntityResponse
extends Object

This is here to contain the information we get back from an entity (http) request fired by the EntityBroker.fireEntityRequest(String, String, String, Map, Object) method
This object and the data in it should be considered immutable

Author:
Aaron Zeckoski (azeckoski @ gmail.com)

Field Summary
 String responseBody
          the body of the response
 int responseCode
          The http response code
 Map<String,String[]> responseHeaders
          The map of the response headers, this may be null
 String responseMessage
          The response message
 
Constructor Summary
EntityResponse(int responseCode, String responseMessage, String responseBody, Map<String,String[]> responseHeaders)
           
 
Method Summary
 String getResponseBody()
           
 int getResponseCode()
           
 Map<String,String[]> getResponseHeaders()
           
 String getResponseMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

responseCode

public int responseCode
The http response code


responseMessage

public String responseMessage
The response message


responseBody

public String responseBody
the body of the response


responseHeaders

public Map<String,String[]> responseHeaders
The map of the response headers, this may be null

Constructor Detail

EntityResponse

public EntityResponse(int responseCode,
                      String responseMessage,
                      String responseBody,
                      Map<String,String[]> responseHeaders)
Method Detail

getResponseCode

public int getResponseCode()

getResponseMessage

public String getResponseMessage()

getResponseBody

public String getResponseBody()

getResponseHeaders

public Map<String,String[]> getResponseHeaders()


Copyright © 2007-2013 Sakai Project. All Rights Reserved.