public final class RequestProperties
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static BufferPublisherInputStream |
getRequestBufferPublisherInputStream(javax.ws.rs.container.ContainerRequestContext reqCtx)
Get the
BufferPublisherInputStream associated with the request. |
static Cancellable |
getRequestCancellable(javax.ws.rs.container.ContainerRequestContext reqCtx)
Get the request
Cancellable. |
static Publisher<Buffer> |
getResponseBufferPublisher(javax.ws.rs.container.ContainerRequestContext reqCtx)
Get the response
Publisher<Buffer>. |
static HttpExecutionStrategy |
getResponseExecutionStrategy(javax.ws.rs.container.ContainerRequestContext reqCtx)
Get the response
HttpExecutionStrategy used for offloading. |
static void |
initRequestProperties(BufferPublisherInputStream entityStream,
javax.ws.rs.container.ContainerRequestContext reqCtx)
Initialize all request properties.
|
static void |
setRequestCancellable(Cancellable cancellable,
javax.ws.rs.container.ContainerRequestContext reqCtx)
Set the request
Cancellable. |
static void |
setResponseBufferPublisher(Publisher<Buffer> bufferPublisher,
javax.ws.rs.container.ContainerRequestContext reqCtx)
Set the response
Publisher<Buffer>. |
static void |
setResponseExecutionStrategy(HttpExecutionStrategy executor,
javax.ws.rs.container.ContainerRequestContext reqCtx)
Set the response
HttpExecutionStrategy used for offloading. |
public static void initRequestProperties(BufferPublisherInputStream entityStream, javax.ws.rs.container.ContainerRequestContext reqCtx)
entityStream - the BufferPublisherInputStream associated with the request.reqCtx - the ContainerRequestContext for the requestpublic static BufferPublisherInputStream getRequestBufferPublisherInputStream(javax.ws.rs.container.ContainerRequestContext reqCtx)
BufferPublisherInputStream associated with the request.reqCtx - the ContainerRequestContext for the requestBufferPublisherInputStream associated with the requestpublic static Cancellable getRequestCancellable(javax.ws.rs.container.ContainerRequestContext reqCtx)
Cancellable.reqCtx - the ContainerRequestContext for the requestCancellable.public static void setRequestCancellable(Cancellable cancellable, javax.ws.rs.container.ContainerRequestContext reqCtx)
Cancellable.cancellable - request Cancellable.reqCtx - the ContainerRequestContext for the request@Nullable public static Publisher<Buffer> getResponseBufferPublisher(javax.ws.rs.container.ContainerRequestContext reqCtx)
Publisher<Buffer>.reqCtx - the ContainerRequestContext for the requestPublisher<Buffer> or null if none has been set.public static void setResponseBufferPublisher(Publisher<Buffer> bufferPublisher, javax.ws.rs.container.ContainerRequestContext reqCtx)
Publisher<Buffer>.bufferPublisher - the response content Publisher<Buffer>reqCtx - the ContainerRequestContext for the request@Nullable public static HttpExecutionStrategy getResponseExecutionStrategy(javax.ws.rs.container.ContainerRequestContext reqCtx)
HttpExecutionStrategy used for offloading.reqCtx - the ContainerRequestContext for the requestHttpExecutionStrategypublic static void setResponseExecutionStrategy(HttpExecutionStrategy executor, javax.ws.rs.container.ContainerRequestContext reqCtx)
HttpExecutionStrategy used for offloading.executor - the response HttpExecutionStrategyreqCtx - the ContainerRequestContext for the request