com.sun.jersey.server.impl.container.httpserver
Class HttpHandlerContainerProvider

java.lang.Object
  extended by com.sun.jersey.server.impl.container.httpserver.HttpHandlerContainerProvider
All Implemented Interfaces:
ContainerProvider<com.sun.net.httpserver.HttpHandler>

public final class HttpHandlerContainerProvider
extends java.lang.Object
implements ContainerProvider<com.sun.net.httpserver.HttpHandler>

HTTP handler container provider.

Author:
[email protected]

Constructor Summary
HttpHandlerContainerProvider()
           
 
Method Summary
 com.sun.net.httpserver.HttpHandler createContainer(java.lang.Class<com.sun.net.httpserver.HttpHandler> type, ResourceConfig resourceConfig, WebApplication application)
          Create an container of type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpHandlerContainerProvider

public HttpHandlerContainerProvider()
Method Detail

createContainer

public com.sun.net.httpserver.HttpHandler createContainer(java.lang.Class<com.sun.net.httpserver.HttpHandler> type,
                                                          ResourceConfig resourceConfig,
                                                          WebApplication application)
                                                   throws ContainerException
Description copied from interface: ContainerProvider
Create an container of type T.

The container provider SHOULD NOT initiate the Web application. The container provider MAY modify the resource configuraton.

Specified by:
createContainer in interface ContainerProvider<com.sun.net.httpserver.HttpHandler>
Parameters:
type - the type of the container.
resourceConfig - the resource configuration.
application - the Web application the container delegates to for the handling of HTTP requests.
Returns:
the container, otherwise null if the provider does not support the requested type.
Throws:
ContainerException - if there is an error creating the container.


Copyright © 2013 Oracle Corporation. All Rights Reserved.