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 class
Abstract composite callback runner.private static class
private static class
private static class
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ApplicationEventListener
private final ScheduledExecutorService
private final javax.ws.rs.core.Configuration
private final boolean
Do not resolve relative URIs in theLocation
headerprivate final ExceptionMappers
private final ExternalRequestScope
private final InjectionManager
private final javax.inject.Provider
<ExecutorService> private final ProcessingProviders
private final boolean
private final Stage
<RequestProcessingContext> private final RequestScope
private final boolean
Resolve relative URIs according to RFC7231 (not JAX-RS 2.0 compliantprivate final TracingConfig
private final TracingLogger.Level
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
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 Summary
Modifier and TypeMethodDescription(package private) static ServerRuntime
createServerRuntime
(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, Stage<RequestProcessingContext> processingRoot, ApplicationEventListener eventListener, ProcessingProviders processingProviders) 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.(package private) ScheduledExecutorService
Get the Jersey server runtime background scheduler.void
process
(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 theLocation
header -
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
-