org.glassfish.tyrus.server
Class ServerContainerFactory

java.lang.Object
  extended by org.glassfish.tyrus.server.ServerContainerFactory

public class ServerContainerFactory
extends Object

Factory for creating server containers. Taken from Jersey 2.

Author:
Martin Matula (martin.matula at oracle.com)

Constructor Summary
ServerContainerFactory()
           
 
Method Summary
static TyrusServerContainer create(Class<? extends TyrusContainer> providerClass, String contextPath, int port, ServerConfiguration configuration)
          Creates a new server container based on the supplied container provider.
static TyrusServerContainer create(String providerClassName, String contextPath, int port, ServerConfiguration configuration)
          Creates a new server container based on the supplied container provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerContainerFactory

public ServerContainerFactory()
Method Detail

create

public static TyrusServerContainer create(String providerClassName,
                                          String contextPath,
                                          int port,
                                          ServerConfiguration configuration)
Creates a new server container based on the supplied container provider.

Parameters:
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.
configuration - Server configuration.
Returns:
New instance of ServerContainer.

create

public static TyrusServerContainer create(Class<? extends TyrusContainer> providerClass,
                                          String contextPath,
                                          int port,
                                          ServerConfiguration configuration)
Creates a new server container based on the supplied container provider.

Parameters:
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.
Returns:
New instance of ServerContainer.


Copyright © 2012. All Rights Reserved.