public final class HttpJerseyRouterBuilder
extends Object
StreamingHttpService which routes requests to JAX-RS annotated classes,
using Jersey as the routing engine, eg.
final StreamingHttpService router = new HttpJerseyRouterBuilder()
.buildStreaming(application);
| Constructor and Description |
|---|
HttpJerseyRouterBuilder() |
| Modifier and Type | Method and Description |
|---|---|
HttpJerseyRouterBuilder |
baseUriFunction(BiFunction<ConnectionContext,HttpRequestMetaData,String> baseUriFunction)
Set the function used to compute the base URI for the incoming HTTP request.
|
HttpService |
build(Application application)
Build the
HttpService for the specified JAX-RS Application. |
HttpService |
build(Class<? extends Application> applicationClass)
Build the
HttpService for the specified JAX-RS Application class. |
BlockingHttpService |
buildBlocking(Application application)
Build the
BlockingHttpService for the specified JAX-RS Application. |
BlockingHttpService |
buildBlocking(Class<? extends Application> applicationClass)
Build the
BlockingHttpService for the specified JAX-RS Application class. |
BlockingStreamingHttpService |
buildBlockingStreaming(Application application)
Build the
BlockingStreamingHttpService for the specified JAX-RS Application. |
BlockingStreamingHttpService |
buildBlockingStreaming(Class<? extends Application> applicationClass)
Build the
BlockingStreamingHttpService for the specified JAX-RS Application class. |
StreamingHttpService |
buildStreaming(Application application)
Build the
StreamingHttpService for the specified JAX-RS Application. |
StreamingHttpService |
buildStreaming(Class<? extends Application> applicationClass)
Build the
StreamingHttpService for the specified JAX-RS Application class. |
HttpJerseyRouterBuilder |
publisherInputStreamQueueCapacity(int publisherInputStreamQueueCapacity)
Set the hint for the capacity of the intermediary queue that stores items when adapting
Publishers
into InputStreams. |
HttpJerseyRouterBuilder |
routeExecutionStrategyFactory(RouteExecutionStrategyFactory<HttpExecutionStrategy> strategyFactory)
Set a
RouteExecutionStrategyFactory<HttpExecutionStrategy> for
creating HttpExecutionStrategy instances that can be used for offloading the handling of request to
resource methods, as specified via RouteExecutionStrategy annotations. |
public HttpJerseyRouterBuilder publisherInputStreamQueueCapacity(int publisherInputStreamQueueCapacity)
Publishers
into InputStreams.publisherInputStreamQueueCapacity - the capacity hint.public HttpJerseyRouterBuilder baseUriFunction(BiFunction<ConnectionContext,HttpRequestMetaData,String> baseUriFunction)
/ as path, and no query nor fragment.baseUriFunction - a BiFunction that computes a base URI String
for the provided ConnectionContext and HttpRequestMetaData.public HttpJerseyRouterBuilder routeExecutionStrategyFactory(RouteExecutionStrategyFactory<HttpExecutionStrategy> strategyFactory)
RouteExecutionStrategyFactory<HttpExecutionStrategy> for
creating HttpExecutionStrategy instances that can be used for offloading the handling of request to
resource methods, as specified via RouteExecutionStrategy annotations.strategyFactory - a
RouteExecutionStrategyFactory<HttpExecutionStrategy>RouteExecutionStrategypublic HttpService build(Application application)
HttpService for the specified JAX-RS Application.application - the Application to route requests to.HttpService.public HttpService build(Class<? extends Application> applicationClass)
HttpService for the specified JAX-RS Application class.applicationClass - the Application class to instantiate and route requests to.HttpService.public StreamingHttpService buildStreaming(Application application)
StreamingHttpService for the specified JAX-RS Application.application - the Application to route requests to.StreamingHttpService.public StreamingHttpService buildStreaming(Class<? extends Application> applicationClass)
StreamingHttpService for the specified JAX-RS Application class.applicationClass - the Application class to instantiate and route requests to.StreamingHttpService.public BlockingHttpService buildBlocking(Application application)
BlockingHttpService for the specified JAX-RS Application.application - the Application to route requests to.BlockingHttpService.public BlockingHttpService buildBlocking(Class<? extends Application> applicationClass)
BlockingHttpService for the specified JAX-RS Application class.applicationClass - the Application class to instantiate and route requests to.BlockingHttpService.public BlockingStreamingHttpService buildBlockingStreaming(Application application)
BlockingStreamingHttpService for the specified JAX-RS Application.application - the Application to route requests to.BlockingStreamingHttpService.public BlockingStreamingHttpService buildBlockingStreaming(Class<? extends Application> applicationClass)
BlockingStreamingHttpService for the specified JAX-RS Application class.applicationClass - the Application class to instantiate and route requests to.BlockingStreamingHttpService.