Package org.glassfish.jersey.simple
Class SimpleContainerProvider
java.lang.Object
org.glassfish.jersey.simple.SimpleContainerProvider
- All Implemented Interfaces:
ContainerProvider
Container provider for containers based on Simple HTTP Server
Container
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
createContainer
(Class<T> type, javax.ws.rs.core.Application application) Create an container of a given type.
-
Constructor Details
-
SimpleContainerProvider
public SimpleContainerProvider()
-
-
Method Details
-
createContainer
public <T> T createContainer(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 interfaceContainerProvider
- 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 requestedtype
. - Throws:
javax.ws.rs.ProcessingException
- if there is an error creating the container.
-