public final class HttpHandlerContainerProvider extends Object implements ContainerProvider<com.sun.net.httpserver.HttpHandler>
| Constructor and Description |
|---|
HttpHandlerContainerProvider() |
| Modifier and Type | Method and Description |
|---|---|
com.sun.net.httpserver.HttpHandler |
createContainer(Class<com.sun.net.httpserver.HttpHandler> type,
ResourceConfig resourceConfig,
WebApplication application)
Create an container of type T.
|
public com.sun.net.httpserver.HttpHandler createContainer(Class<com.sun.net.httpserver.HttpHandler> type, ResourceConfig resourceConfig, WebApplication application) throws ContainerException
ContainerProviderThe container provider SHOULD NOT initiate the Web application. The container provider MAY modify the resource configuraton.
createContainer in interface ContainerProvider<com.sun.net.httpserver.HttpHandler>type - the type of the container.resourceConfig - the resource configuration.application - the Web application the container delegates to for
the handling of HTTP requests.type.ContainerException - if there is an error creating the container.Copyright © 2016 Oracle Corporation. All rights reserved.