Class ServerRuntime

java.lang.Object
org.glassfish.jersey.server.ServerRuntime

public class ServerRuntime extends Object
Server-side request processing runtime.
  • Field Details

    • requestProcessingRoot

      private final Stage<RequestProcessingContext> requestProcessingRoot
    • processingProviders

      private final ProcessingProviders processingProviders
    • injectionManager

      private final InjectionManager injectionManager
    • backgroundScheduler

      private final ScheduledExecutorService backgroundScheduler
    • managedAsyncExecutor

      private final javax.inject.Provider<ExecutorService> managedAsyncExecutor
    • requestScope

      private final RequestScope requestScope
    • exceptionMappers

      private final ExceptionMappers exceptionMappers
    • applicationEventListener

      private final ApplicationEventListener applicationEventListener
    • configuration

      private final javax.ws.rs.core.Configuration configuration
    • externalRequestScope

      private final ExternalRequestScope externalRequestScope
    • tracingConfig

      private final TracingConfig tracingConfig
    • tracingThreshold

      private final TracingLogger.Level tracingThreshold
    • processResponseErrors

      private final boolean processResponseErrors
    • disableLocationHeaderRelativeUriResolution

      private final boolean disableLocationHeaderRelativeUriResolution
      Do not resolve relative URIs in the Location header
    • rfc7231LocationHeaderRelativeUriResolution

      private final boolean rfc7231LocationHeaderRelativeUriResolution
      Resolve relative URIs according to RFC7231 (not JAX-RS 2.0 compliant
  • Constructor Details

  • Method Details

    • createServerRuntime

      static ServerRuntime createServerRuntime(InjectionManager injectionManager, ServerBootstrapBag bootstrapBag, Stage<RequestProcessingContext> processingRoot, ApplicationEventListener eventListener, ProcessingProviders processingProviders)
    • process

      public void process(ContainerRequest request)
      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 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