public class ServerContainerFactory extends Object
| Constructor and Description |
|---|
ServerContainerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TyrusServerContainer |
create(Class<? extends TyrusContainer> providerClass,
String contextPath,
int port,
Set<Class<?>> configuration,
Set<Class<?>> dynamicallyAddedClasses,
Set<javax.websocket.server.ServerEndpointConfig> dynamicallyAddedEndpointConfigs)
Creates a new server container based on the supplied container provider.
|
static TyrusServerContainer |
create(String providerClassName,
String contextPath,
int port,
Set<Class<?>> classes)
Creates a new server container based on the supplied container provider.
|
public static TyrusServerContainer create(String providerClassName, String contextPath, int port, Set<Class<?>> classes)
providerClassName - Container provider implementation class name.contextPath - URI path at which the websocket server should be exposed at.port - Port at which the server should listen.classes - Server configuration.TyrusServerContainer.public static TyrusServerContainer create(Class<? extends TyrusContainer> providerClass, String contextPath, int port, Set<Class<?>> configuration, Set<Class<?>> dynamicallyAddedClasses, Set<javax.websocket.server.ServerEndpointConfig> dynamicallyAddedEndpointConfigs)
providerClass - Container provider implementation class.contextPath - URI path at which the websocket server should be exposed at.port - Port at which the server should listen.configuration - Server configuration.dynamicallyAddedClasses - dynamically deployed classes. See ServerContainer.addEndpoint(Class).dynamicallyAddedEndpointConfigs - dynamically deployed ServerEndpointConfigs. See
ServerContainer.addEndpoint(ServerEndpointConfig).TyrusServerContainer.Copyright © 2012-2013. All Rights Reserved.