ServerHttpResponse that delegates all calls to a
given target ServerHttpResponse.
| Modifier and Type | Field and Description |
|---|---|
| private final ServerHttpResponse |
| Access | Constructor and Description |
|---|---|
| public | DelegatingServerHttpResponse(ServerHttpResponse
the response to delegate to delegate)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements org. |
| public void | flush()
Implements org. |
| public OutputStream | getBody()
Implements org. |
| public ServerHttpResponse | |
| public HttpHeaders | getHeaders()
Implements org. |
| public void | setStatusCode(HttpStatusCode
the HTTP status as an HttpStatus enum value status)Implements org. |
| delegate | back to summary |
|---|---|
| private final ServerHttpResponse delegate | |
| DelegatingServerHttpResponse | back to summary |
|---|---|
| public DelegatingServerHttpResponse(ServerHttpResponse delegate) Create a new
| |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close this response, freeing any resources created.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements org. Doc from org. Ensure that the headers and the content of the response are written out. After the first flush, headers can no longer be changed. Only further content writing and content flushing is possible.
| |
| getBody | back to summary |
|---|---|
| public OutputStream getBody() throws IOException Implements org. Doc from org. Return the body of the message as an output stream.
| |
| getDelegate | back to summary |
|---|---|
| public ServerHttpResponse getDelegate() Returns the target response that this response delegates to.
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |
| setStatusCode | back to summary |
|---|---|
| public void setStatusCode(HttpStatusCode status) Implements org. Doc from org. Set the HTTP status code of the response.
| |