org.jasig.springframework.web.client
Class HttpServletProxyResponse

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

public class HttpServletProxyResponse
extends Object
implements ExtendedRestOperations.ProxyResponse

Implementation of ExtendedRestOperations.ProxyResponse that wraps a HttpServletResponse

Author:
Eric Dalquist

Constructor Summary
HttpServletProxyResponse(javax.servlet.http.HttpServletResponse servletResponse)
           
HttpServletProxyResponse(javax.servlet.http.HttpServletResponse servletResponse, 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

HttpServletProxyResponse

public HttpServletProxyResponse(javax.servlet.http.HttpServletResponse servletResponse)

HttpServletProxyResponse

public HttpServletProxyResponse(javax.servlet.http.HttpServletResponse servletResponse,
                                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.