| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.http.server.ServletServerHttpResponse
public class ServletServerHttpResponse
ServerHttpResponse implementation that is based on a HttpServletResponse.
| Constructor Summary | |
|---|---|
ServletServerHttpResponse(HttpServletResponse servletResponse)
Construct a new instance of the ServletServerHttpResponse based on the given HttpServletResponse. | 
|
| Method Summary | |
|---|---|
 void | 
close()
Close this response, freeing any resources created.  | 
 OutputStream | 
getBody()
Return the body of the message as an output stream.  | 
 HttpHeaders | 
getHeaders()
Return the headers of this message.  | 
 void | 
setStatusCode(HttpStatus status)
Set the HTTP status code of the response.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ServletServerHttpResponse(HttpServletResponse servletResponse)
HttpServletResponse.
servletResponse - the HTTP Servlet response| Method Detail | 
|---|
public void setStatusCode(HttpStatus status)
ServerHttpResponse
setStatusCode in interface ServerHttpResponsestatus - the HTTP status as an HttpStatus enum valuepublic HttpHeaders getHeaders()
HttpMessage
getHeaders in interface HttpMessage
public OutputStream getBody()
                     throws IOException
HttpOutputMessage
getBody in interface HttpOutputMessageIOException - in case of I/O Errorspublic void close()
ServerHttpResponse
close in interface ServerHttpResponse
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||