public class ServerRuntime
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ServerRuntime.AbstractCallbackRunner<T>
Abstract composite callback runner.
|
private static class |
ServerRuntime.AsyncResponder |
private static class |
ServerRuntime.AsyncResponderHolder |
private static class |
ServerRuntime.CompletionCallbackRunner |
private static class |
ServerRuntime.ConnectionCallbackRunner |
private static class |
ServerRuntime.Responder |
Modifier and Type | Field and Description |
---|---|
private ApplicationEventListener |
applicationEventListener |
private java.util.concurrent.ScheduledExecutorService |
backgroundScheduler |
private javax.ws.rs.core.Configuration |
configuration |
private boolean |
disableLocationHeaderRelativeUriResolution
Do not resolve relative URIs in the
Location header |
private ExceptionMappers |
exceptionMappers |
private ExternalRequestScope |
externalRequestScope |
private InjectionManager |
injectionManager |
private javax.inject.Provider<java.util.concurrent.ExecutorService> |
managedAsyncExecutor |
private ProcessingProviders |
processingProviders |
private boolean |
processResponseErrors |
private Stage<RequestProcessingContext> |
requestProcessingRoot |
private RequestScope |
requestScope |
private boolean |
rfc7231LocationHeaderRelativeUriResolution
Resolve relative URIs according to RFC7231 (not JAX-RS 2.0 compliant
|
private TracingConfig |
tracingConfig |
private TracingLogger.Level |
tracingThreshold |
Modifier | Constructor and Description |
---|---|
private |
ServerRuntime(Stage<RequestProcessingContext> requestProcessingRoot,
ProcessingProviders processingProviders,
InjectionManager injectionManager,
java.util.concurrent.ScheduledExecutorService backgroundScheduler,
javax.inject.Provider<java.util.concurrent.ExecutorService> managedAsyncExecutorProvider,
RequestScope requestScope,
ExceptionMappers exceptionMappers,
ApplicationEventListener applicationEventListener,
ExternalRequestScope externalScope,
javax.ws.rs.core.Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
(package private) static ServerRuntime |
createServerRuntime(InjectionManager injectionManager,
ServerBootstrapBag bootstrapBag,
Stage<RequestProcessingContext> processingRoot,
ApplicationEventListener eventListener,
ProcessingProviders processingProviders) |
private static void |
ensureAbsolute(java.net.URI location,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers,
ContainerRequest request,
boolean incompatible)
Ensure that the value a header is an absolute URI, if present among headers.
|
(package private) java.util.concurrent.ScheduledExecutorService |
getBackgroundScheduler()
Get the Jersey server runtime background scheduler.
|
void |
process(ContainerRequest request)
Process a container request.
|
private final Stage<RequestProcessingContext> requestProcessingRoot
private final ProcessingProviders processingProviders
private final InjectionManager injectionManager
private final java.util.concurrent.ScheduledExecutorService backgroundScheduler
private final javax.inject.Provider<java.util.concurrent.ExecutorService> managedAsyncExecutor
private final RequestScope requestScope
private final ExceptionMappers exceptionMappers
private final ApplicationEventListener applicationEventListener
private final javax.ws.rs.core.Configuration configuration
private final ExternalRequestScope externalRequestScope
private final TracingConfig tracingConfig
private final TracingLogger.Level tracingThreshold
private final boolean processResponseErrors
private final boolean disableLocationHeaderRelativeUriResolution
Location
headerprivate final boolean rfc7231LocationHeaderRelativeUriResolution
private ServerRuntime(Stage<RequestProcessingContext> requestProcessingRoot, ProcessingProviders processingProviders, InjectionManager injectionManager, java.util.concurrent.ScheduledExecutorService backgroundScheduler, javax.inject.Provider<java.util.concurrent.ExecutorService> managedAsyncExecutorProvider, RequestScope requestScope, ExceptionMappers exceptionMappers, ApplicationEventListener applicationEventListener, ExternalRequestScope externalScope, javax.ws.rs.core.Configuration configuration)
static ServerRuntime createServerRuntime(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, Stage<RequestProcessingContext> processingRoot, ApplicationEventListener eventListener, ProcessingProviders processingProviders)
public void process(ContainerRequest request)
request
- container request to be processed.java.util.concurrent.ScheduledExecutorService getBackgroundScheduler()
BackgroundScheduler
private static void ensureAbsolute(java.net.URI location, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers, ContainerRequest request, boolean incompatible)
location
- location URI; value of the HTTP response header.headers
- mutable map of response headers.request
- container request.incompatible
- if set to true
, uri will be resolved against the request uri, not the base uri;
this is correct against RFC7231, but does violate the JAX-RS 2.0 specs