org.glassfish.grizzly.websockets
Class WebSocketServer
java.lang.Object
org.glassfish.grizzly.websockets.WebSocketServer
public class WebSocketServer
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebSocketServer
public WebSocketServer(int port)
createSimpleServer
public static WebSocketServer createSimpleServer(int port)
- Parameters:
port - the network port to which this listener will bind.
- Returns:
- a
WebSocketServer configured to listen to requests on NetworkListener.DEFAULT_NETWORK_HOST:port, using the specified path as the
server's document root.
start
public void start()
throws IOException
- Throws:
IOException
stop
public void stop()
register
public void register(String name,
WebSocketApplication application)
Copyright © 2012 Oracle Corporation. All Rights Reserved.