org.jasig.springframework.web.client
Class PortletResourceProxyResponse

java.lang.Object
  extended by org.jasig.springframework.web.client.PortletResourceProxyResponse
All Implemented Interfaces:
ExtendedRestOperations.ProxyResponse

public class PortletResourceProxyResponse
extends Object
implements ExtendedRestOperations.ProxyResponse

Implementation of ExtendedRestOperations.ProxyResponse that wraps a portlet ResourceResponse

Author:
Eric Dalquist

Constructor Summary
PortletResourceProxyResponse(javax.portlet.ResourceResponse resourceResponse)
           
PortletResourceProxyResponse(javax.portlet.ResourceResponse resourceResponse, Set<String> excludedHeaders)
           
 
Method Summary
 OutputStream getOutputStream()
           
 void setHttpHeaders(org.springframework.http.HttpHeaders headers)
           
 void setHttpStatus(org.springframework.http.HttpStatus status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletResourceProxyResponse

public PortletResourceProxyResponse(javax.portlet.ResourceResponse resourceResponse)

PortletResourceProxyResponse

public PortletResourceProxyResponse(javax.portlet.ResourceResponse resourceResponse,
                                    Set<String> excludedHeaders)
Method Detail

setHttpStatus

public void setHttpStatus(org.springframework.http.HttpStatus status)
Specified by:
setHttpStatus in interface ExtendedRestOperations.ProxyResponse
Parameters:
status - The HttpStatus returned by the original request

setHttpHeaders

public void setHttpHeaders(org.springframework.http.HttpHeaders headers)
Specified by:
setHttpHeaders in interface ExtendedRestOperations.ProxyResponse
Parameters:
headers - The HttpHeaders returned by the original request

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Specified by:
getOutputStream in interface ExtendedRestOperations.ProxyResponse
Returns:
OutputStream to write the body of the original request to
Throws:
IOException


Copyright © 2013 Jasig. All Rights Reserved.