org.sakaiproject.entitybroker.rest
Class EntityBatchHandler.ResponseResult

java.lang.Object
  extended by org.sakaiproject.entitybroker.rest.EntityBatchHandler.ResponseBase
      extended by org.sakaiproject.entitybroker.rest.EntityBatchHandler.ResponseResult
Enclosing class:
EntityBatchHandler

public static class EntityBatchHandler.ResponseResult
extends EntityBatchHandler.ResponseBase

Holds the results from a successful response request


Field Summary
 String content
          The raw content from the request
 String data
           
 Map<String,String[]> headers
           
 
Fields inherited from class org.sakaiproject.entitybroker.rest.EntityBatchHandler.ResponseBase
entityURL, failure, reference, status
 
Constructor Summary
EntityBatchHandler.ResponseResult(String reference, String entityURL, int status, Map<String,String[]> headers)
           
EntityBatchHandler.ResponseResult(String reference, String entityURL, int status, Map<String,String[]> headers, String content)
           
 
Method Summary
 void setDataKey(String dataKey)
          Set the data key (clears the raw content) if the key is non-null
 
Methods inherited from class org.sakaiproject.entitybroker.rest.EntityBatchHandler.ResponseBase
getEntityURL, getReference, getStatus, isFailure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

headers

public Map<String,String[]> headers

data

public String data

content

public String content
The raw content from the request

Constructor Detail

EntityBatchHandler.ResponseResult

public EntityBatchHandler.ResponseResult(String reference,
                                         String entityURL,
                                         int status,
                                         Map<String,String[]> headers)

EntityBatchHandler.ResponseResult

public EntityBatchHandler.ResponseResult(String reference,
                                         String entityURL,
                                         int status,
                                         Map<String,String[]> headers,
                                         String content)
Method Detail

setDataKey

public void setDataKey(String dataKey)
Set the data key (clears the raw content) if the key is non-null

Parameters:
data - processed data


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