ServerHttpResponse and delegates all methods to it.
Subclasses can override specific methods selectively.
| Modifier and Type | Field and Description |
|---|---|
| private final ServerHttpResponse |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCookie(ResponseCookie
the cookie to add cookie)Implements org. Add the given |
| public void | beforeCommit(Supplier<? extends Mono<Void>>
the action to apply action)Implements org. Register an action to apply just before the HttpOutputMessage is committed. |
| public DataBufferFactory | bufferFactory()
Implements org. Return a |
| public MultiValueMap | getCookies()
Implements org. Return a mutable map with the cookies to send to the server. |
| public ServerHttpResponse | |
| public HttpHeaders | getHeaders()
Implements org. Return the headers of this message. |
| public static < the expected native response type T> T | getNativeResponse(ServerHttpResponse
the response to check response)Return the native response of the underlying server API, if possible,
also unwrapping |
| public Integer | getRawStatusCode()
Overrides default org.
Deprecated
Return the status code that has been set, or otherwise fall back on the status of the response from the underlying server. |
| public HttpStatusCode | getStatusCode()
Implements org. Return the status code that has been set, or otherwise fall back on the status of the response from the underlying server. |
| public boolean | isCommitted()
Implements org. Whether the HttpOutputMessage is committed. |
| public Mono | setComplete()
Implements org. Indicate that message handling is complete, allowing for any cleanup or
end-of-processing tasks to be performed such as applying header changes
made via |
| public boolean | setRawStatusCode(Integer
the status code value value)Overrides default org. Set the HTTP status code to the given value as an integer. |
| public boolean | setStatusCode(HttpStatusCode
the HTTP status as an status)HttpStatusCode valueImplements org. Set the HTTP status code of the response. |
| public String | |
| public Mono | writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>>
the body content publisher body)Implements org. Use the given |
| public Mono | writeWith(Publisher<? extends DataBuffer>
the body content publisher body)Implements org. Use the given |
| delegate | back to summary |
|---|---|
| private final ServerHttpResponse delegate | |
| ServerHttpResponseDecorator | back to summary |
|---|---|
| public ServerHttpResponseDecorator(ServerHttpResponse delegate) | |
| addCookie | back to summary |
|---|---|
| public void addCookie(ResponseCookie cookie) Implements org. Doc from org. Add the given
| |
| beforeCommit | back to summary |
|---|---|
| public void beforeCommit(Supplier<? extends Mono<Void>> action) Implements org. Doc from org. Register an action to apply just before the HttpOutputMessage is committed. Note the supplied action must be properly deferred,
e.g. via | |
| bufferFactory | back to summary |
|---|---|
| public DataBufferFactory bufferFactory() Implements org. Doc from org. Return a
| |
| getCookies | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return a mutable map with the cookies to send to the server.
| |
| getDelegate | back to summary |
|---|---|
| public ServerHttpResponse getDelegate() | |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |
| getNativeResponse | back to summary |
|---|---|
| public static <T> T getNativeResponse(ServerHttpResponse response) Return the native response of the underlying server API, if possible,
also unwrapping
| |
| getRawStatusCode | back to summary |
|---|---|
| public Integer getRawStatusCode() Overrides default org. Doc from org. Deprecated
Return the status code that has been set, or otherwise fall back on the
status of the response from the underlying server. The return value may
be
| |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() Implements org. Doc from org. Return the status code that has been set, or otherwise fall back on the
status of the response from the underlying server. The return value may
be
| |
| isCommitted | back to summary |
|---|---|
| public boolean isCommitted() Implements org. Doc from org. Whether the HttpOutputMessage is committed.
| |
| setComplete | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Indicate that message handling is complete, allowing for any cleanup or
end-of-processing tasks to be performed such as applying header changes
made via This method should be automatically invoked at the end of message processing so typically applications should not have to invoke it. If invoked multiple times it should have no side effects. | |
| setRawStatusCode | back to summary |
|---|---|
| public boolean setRawStatusCode(Integer value) Overrides default org. Doc from org. Set the HTTP status code to the given value as an integer. | |
| setStatusCode | back to summary |
|---|---|
| public boolean setStatusCode(HttpStatusCode status) Implements org. Doc from org. Set the HTTP status code of the response.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| writeAndFlushWith | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Use the given | |
| writeWith | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Use the given | |