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 |
static class |
ServerRuntime.Builder
Server-side request processing runtime builder.
|
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 org.glassfish.hk2.api.ServiceLocator |
locator |
private javax.inject.Provider<java.util.concurrent.ExecutorService> |
managedAsyncExecutor |
(package private) static ExternalRequestScope<java.lang.Object> |
NOOP_EXTERNAL_REQ_SCOPE |
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,
org.glassfish.hk2.api.ServiceLocator locator,
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 |
---|---|
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 org.glassfish.hk2.api.ServiceLocator locator
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
static final ExternalRequestScope<java.lang.Object> NOOP_EXTERNAL_REQ_SCOPE
private ServerRuntime(Stage<RequestProcessingContext> requestProcessingRoot, ProcessingProviders processingProviders, org.glassfish.hk2.api.ServiceLocator locator, 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)
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