AsyncServerResponse implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final CompletableFuture | |
| pack-priv static final boolean | |
| private final Duration |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ServerResponse | block()
Implements org. Blocks indefinitely until the future response is obtained. |
| public MultiValueMap | cookies()
Implements org. Return the cookies of this response. |
| public static AsyncServerResponse | create(Object
a obj, Duration CompletableFuture<ServerResponse> or
Publisher<ServerResponse>maximum time period to wait for before timing out timeout)Hides org. Create a (built) response with the given asynchronous response. |
| private DeferredResult | |
| private <R> R | |
| public HttpHeaders | headers()
Implements org. Return the headers of this response. |
| public int | rawStatusCode()
Implements org.
Deprecated
Return the status code of this response as integer. |
| public HttpStatusCode | statusCode()
Implements org. Return the status code of this response. |
| pack-priv static void | writeAsync(HttpServletRequest request, HttpServletResponse response, DeferredResult<?> deferredResult)
|
| public ModelAndView | writeTo(HttpServletRequest
the current request request, HttpServletResponse the response to write to response, ServerResponse.the context to use when writing contextImplements org. Write this response to the given servlet response. |
| futureResponse | back to summary |
|---|---|
| private final CompletableFuture<ServerResponse> futureResponse | |
| reactiveStreamsPresent | back to summary |
|---|---|
| pack-priv static final boolean reactiveStreamsPresent | |
| timeout | back to summary |
|---|---|
| private final Duration timeout
| |
| DefaultAsyncServerResponse | back to summary |
|---|---|
| private DefaultAsyncServerResponse(CompletableFuture<ServerResponse> futureResponse, Duration timeout) | |
| block | back to summary |
|---|---|
| public ServerResponse block() Implements org. Doc from org. Blocks indefinitely until the future response is obtained.
| |
| cookies | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return the cookies of this response.
| |
| create | back to summary |
|---|---|
| public static AsyncServerResponse create(Object obj, Duration timeout) Hides org. Doc from org. Create a (built) response with the given asynchronous response.
Parameter
| |
| createDeferredResult | back to summary |
|---|---|
| private DeferredResult | |
| delegate | back to summary |
|---|---|
| private <R> R delegate(Function<ServerResponse, R> function) | |
| headers | back to summary |
|---|---|
| public HttpHeaders headers() Implements org. Doc from org. Return the headers of this response.
| |
| rawStatusCode | back to summary |
|---|---|
| public int rawStatusCode() Implements org. Doc from org. Deprecated
Return the status code of this response as integer.
| |
| statusCode | back to summary |
|---|---|
| public HttpStatusCode statusCode() Implements org. Doc from org. Return the status code of this response.
| |
| writeAsync | back to summary |
|---|---|
| pack-priv static void writeAsync(HttpServletRequest request, HttpServletResponse response, DeferredResult<?> deferredResult) throws ServletException, IOException | |
| writeTo | back to summary |
|---|---|
| public ModelAndView writeTo(HttpServletRequest request, HttpServletResponse response, ServerResponse. Implements org. Doc from org. Write this response to the given servlet response.
| |