org.glassfish.tyrus.platform.main
Class Server

java.lang.Object
  extended by org.glassfish.tyrus.platform.main.Server

public class Server
extends Object

Implementation of the WebSocket Server.

Author:
Stepan Kopriva (stepan.kopriva at oracle.com)

Constructor Summary
Server(Class<?>... beans)
          Create new server instance.
Server(String... beanNames)
          Create new server instance.
Server(String hostName, int port, String rootPath, Class<?>... beans)
          Construct new server.
Server(String hostName, int port, String rootPath, Set<Class<?>> beans)
          Construct new server.
 
Method Summary
static void main(String[] args)
           
static void setWebMode(boolean b)
          Sets the web node.
 void start()
          Start the server.
 void stop()
          Stop the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server(Class<?>... beans)
Create new server instance.

Parameters:
beans - to be registered with the server

Server

public Server(String... beanNames)
Create new server instance.

Parameters:
beanNames - beans to be registered with the server

Server

public Server(String hostName,
              int port,
              String rootPath,
              Class<?>... beans)
Construct new server.

Parameters:
hostName - hostName of the server.
port - port of the server.
rootPath - root path to the server App.
beans - registered application classes.

Server

public Server(String hostName,
              int port,
              String rootPath,
              Set<Class<?>> beans)
Construct new server.

Parameters:
hostName - hostName of the server.
port - port of the server.
rootPath - root path to the server App.
beans - registered application classes.
Method Detail

setWebMode

public static void setWebMode(boolean b)
Sets the web node.

Parameters:
b - web node mode

start

public void start()
Start the server.


stop

public void stop()
Stop the server.


main

public static void main(String[] args)


Copyright © 2012. All Rights Reserved.