Class JdkHttpHandlerContainerProvider

  • All Implemented Interfaces:
    ContainerProvider

    public final class JdkHttpHandlerContainerProvider
    extends java.lang.Object
    implements ContainerProvider
    Container provider for containers based on lightweight Java SE HTTP Server's HttpHandler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T createContainer​(java.lang.Class<T> type, javax.ws.rs.core.Application application)
      Create an container of a given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JdkHttpHandlerContainerProvider

        public JdkHttpHandlerContainerProvider()
    • Method Detail

      • createContainer

        public <T> T createContainer​(java.lang.Class<T> type,
                                     javax.ws.rs.core.Application application)
                              throws javax.ws.rs.ProcessingException
        Description copied from interface: ContainerProvider
        Create an container of a given type.
        Specified by:
        createContainer in interface ContainerProvider
        Type Parameters:
        T - the type of the container.
        Parameters:
        type - the type of the container.
        application - JAX-RS / Jersey application.
        Returns:
        the container, otherwise null if the provider does not support the requested type.
        Throws:
        javax.ws.rs.ProcessingException - if there is an error creating the container.