public class HttpServletProxyResponse extends Object implements ExtendedRestOperations.ProxyResponse
ExtendedRestOperations.ProxyResponse that wraps a HttpServletResponse| Constructor and Description |
|---|
HttpServletProxyResponse(javax.servlet.http.HttpServletResponse servletResponse) |
HttpServletProxyResponse(javax.servlet.http.HttpServletResponse servletResponse,
Set<String> excludedHeaders) |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutputStream()
Returns the output stream.
|
void |
setHttpHeaders(org.springframework.http.HttpHeaders headers) |
void |
setHttpStatus(org.springframework.http.HttpStatus status) |
public HttpServletProxyResponse(javax.servlet.http.HttpServletResponse servletResponse)
public void setHttpStatus(org.springframework.http.HttpStatus status)
setHttpStatus in interface ExtendedRestOperations.ProxyResponsestatus - The HttpStatus returned by the original requestpublic void setHttpHeaders(org.springframework.http.HttpHeaders headers)
setHttpHeaders in interface ExtendedRestOperations.ProxyResponseheaders - The HttpHeaders returned by the original requestpublic OutputStream getOutputStream() throws IOException
ExtendedRestOperations.ProxyResponsegetOutputStream in interface ExtendedRestOperations.ProxyResponseOutputStream to write the body of the original request toIOException - exceptionCopyright © 2015 Jasig. All Rights Reserved.