Class JdkHttpHandlerContainer

java.lang.Object
org.glassfish.jersey.jdkhttp.JdkHttpHandlerContainer
All Implemented Interfaces:
com.sun.net.httpserver.HttpHandler, Container

public class JdkHttpHandlerContainer extends Object implements com.sun.net.httpserver.HttpHandler, Container
Jersey Container implementation based on Java SE HttpServer.
Author:
Miroslav Fuksa, Marek Potociar (marek.potociar at oracle.com)
  • Method Details

    • handle

      public void handle(com.sun.net.httpserver.HttpExchange exchange) throws IOException
      Specified by:
      handle in interface com.sun.net.httpserver.HttpHandler
      Throws:
      IOException
    • getConfiguration

      public ResourceConfig getConfiguration()
      Description copied from interface: Container
      Return an immutable representation of the current configuration.
      Specified by:
      getConfiguration in interface Container
      Returns:
      current configuration of the hosted Jersey application.
    • reload

      public void reload()
      Description copied from interface: Container
      Reload the hosted Jersey application using the current configuration.
      Specified by:
      reload in interface Container
    • reload

      public void reload(ResourceConfig configuration)
      Description copied from interface: Container
      Reload the hosted Jersey application using a new configuration.
      Specified by:
      reload in interface Container
      Parameters:
      configuration - new configuration used for the reload.
    • getApplicationHandler

      public ApplicationHandler getApplicationHandler()
      Description copied from interface: Container
      Get the Jersey server-side application handler associated with the container.
      Specified by:
      getApplicationHandler in interface Container
      Returns:
      Jersey server-side application handler associated with the container.