Package | Description |
---|---|
javax.websocket |
This package contains all the WebSocket APIs common to both the client
and server side.
|
javax.websocket.server |
This package contains all the WebSocket APIs used only by server side
applications.
|
Modifier and Type | Method and Description |
---|---|
Session |
WebSocketContainer.connectToServer(Endpoint endpointInstance,
ClientEndpointConfig cec,
java.net.URI path)
Connect the supplied programmatic client endpoint instance to its server
with the given configuration.
|
Modifier and Type | Method and Description |
---|---|
Session |
WebSocketContainer.connectToServer(java.lang.Class<? extends Endpoint> endpointClass,
ClientEndpointConfig cec,
java.net.URI path)
Connect the supplied programmatic endpoint to its server with the given
configuration.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<ServerEndpointConfig> |
ServerApplicationConfig.getEndpointConfigs(java.util.Set<java.lang.Class<? extends Endpoint>> endpointClasses)
Return a set of ServerEndpointConfig instances that the server container
will use to deploy the programmatic endpoints.
|
Constructor and Description |
---|
DefaultServerEndpointConfig(java.lang.Class<? extends Endpoint> endpointClass,
java.lang.String path)
Creates a server configuration with the given path
|