Package org.glassfish.jersey.server
Class ServerRuntime
java.lang.Object
org.glassfish.jersey.server.ServerRuntime
Server-side request processing runtime.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classAbstract composite callback runner.private static classprivate static classprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ApplicationEventListenerprivate final ScheduledExecutorServiceprivate final javax.ws.rs.core.Configurationprivate final booleanDo not resolve relative URIs in theLocationheaderprivate final ExceptionMappersprivate final ExternalRequestScopeprivate final InjectionManagerprivate final javax.inject.Provider<ExecutorService> private final ProcessingProvidersprivate final booleanprivate final Stage<RequestProcessingContext> private final RequestScopeprivate final booleanResolve relative URIs according to RFC7231 (not JAX-RS 2.0 compliantprivate final TracingConfigprivate final TracingLogger.Level -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateServerRuntime(Stage<RequestProcessingContext> requestProcessingRoot, ProcessingProviders processingProviders, InjectionManager injectionManager, ScheduledExecutorService backgroundScheduler, javax.inject.Provider<ExecutorService> managedAsyncExecutorProvider, RequestScope requestScope, ExceptionMappers exceptionMappers, ApplicationEventListener applicationEventListener, ExternalRequestScope externalScope, javax.ws.rs.core.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescription(package private) static ServerRuntimecreateServerRuntime(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, Stage<RequestProcessingContext> processingRoot, ApplicationEventListener eventListener, ProcessingProviders processingProviders) private static voidensureAbsolute(URI location, javax.ws.rs.core.MultivaluedMap<String, Object> headers, ContainerRequest request, boolean incompatible) Ensure that the value a "Location" header is an absolute URI, if present among headers.(package private) ScheduledExecutorServiceGet the Jersey server runtime background scheduler.voidprocess(ContainerRequest request) Process a container request.
-
Field Details
-
requestProcessingRoot
-
processingProviders
-
injectionManager
-
backgroundScheduler
-
managedAsyncExecutor
-
requestScope
-
exceptionMappers
-
applicationEventListener
-
configuration
private final javax.ws.rs.core.Configuration configuration -
externalRequestScope
-
tracingConfig
-
tracingThreshold
-
processResponseErrors
private final boolean processResponseErrors -
disableLocationHeaderRelativeUriResolution
private final boolean disableLocationHeaderRelativeUriResolutionDo not resolve relative URIs in theLocationheader -
rfc7231LocationHeaderRelativeUriResolution
private final boolean rfc7231LocationHeaderRelativeUriResolutionResolve relative URIs according to RFC7231 (not JAX-RS 2.0 compliant
-
-
Constructor Details
-
ServerRuntime
private ServerRuntime(Stage<RequestProcessingContext> requestProcessingRoot, ProcessingProviders processingProviders, InjectionManager injectionManager, ScheduledExecutorService backgroundScheduler, javax.inject.Provider<ExecutorService> managedAsyncExecutorProvider, RequestScope requestScope, ExceptionMappers exceptionMappers, ApplicationEventListener applicationEventListener, ExternalRequestScope externalScope, javax.ws.rs.core.Configuration configuration)
-
-
Method Details
-
createServerRuntime
static ServerRuntime createServerRuntime(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, Stage<RequestProcessingContext> processingRoot, ApplicationEventListener eventListener, ProcessingProviders processingProviders) -
process
Process a container request.- Parameters:
request- container request to be processed.
-
getBackgroundScheduler
ScheduledExecutorService getBackgroundScheduler()Get the Jersey server runtime background scheduler.- Returns:
- server runtime background scheduler.
- See Also:
-
ensureAbsolute
private static void ensureAbsolute(URI location, javax.ws.rs.core.MultivaluedMap<String, Object> headers, ContainerRequest request, boolean incompatible) Ensure that the value a "Location" header is an absolute URI, if present among headers. Relative URI value will be made absolute using a base request URI.- Parameters:
location- location URI; value of the HTTP "Location" response header.headers- mutable map of response headers.request- container request.incompatible- if set totrue, 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
-