public interface ServerContainer extends ServerContainer
TODO rename the class to avoid findbugs
| Modifier and Type | Method and Description |
|---|---|
WebSocketEngine |
getWebSocketEngine()
Return WebSocketEngine to upgrade requests and setting up the connection.
|
void |
start(String rootPath,
int port)
Start the server.
|
void |
stop()
Stop the server.
|
addEndpoint, addEndpointconnectToServer, connectToServer, connectToServer, connectToServer, getDefaultAsyncSendTimeout, getDefaultMaxBinaryMessageBufferSize, getDefaultMaxSessionIdleTimeout, getDefaultMaxTextMessageBufferSize, getInstalledExtensions, setAsyncSendTimeout, setDefaultMaxBinaryMessageBufferSize, setDefaultMaxSessionIdleTimeout, setDefaultMaxTextMessageBufferSizevoid start(String rootPath, int port) throws IOException, DeploymentException
Creates a new embedded HTTP server (if supported) listening to incoming connections at a given root path and port.
rootPath - context rootport - TCP portIOException - if something goes wrong.DeploymentException - when there is any issue with endpoints or other, non-specific
issues.void stop()
WebSocketEngine getWebSocketEngine()
Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.