public interface ClientContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
INCOMING_BUFFER_SIZE
Property name for maximal incoming buffer size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
openClientSocket(String url,
javax.websocket.ClientEndpointConfig cec,
Map<String,Object> properties,
ClientEngine clientEngine)
Open client socket - connect to endpoint specified with
url parameter. |
static final String INCOMING_BUFFER_SIZE
openClientSocket(String, javax.websocket.ClientEndpointConfig, java.util.Map, ClientEngine)).void openClientSocket(String url, javax.websocket.ClientEndpointConfig cec, Map<String,Object> properties, ClientEngine clientEngine) throws javax.websocket.DeploymentException, IOException
url parameter.
Called from ClientManager when WebSocketContainer.connectToServer(Class, javax.websocket.ClientEndpointConfig, java.net.URI)
is invoked.url - address where remote service is deployed.cec - endpoint configuration. SPI consumer can access user properties, ClientEndpointConfig.Configurator,
extensions and subprotocol configuration, etc..properties - properties passed from client container. Don't mix up this with EndpointConfig.getUserProperties(),
these are Tyrus proprietary.clientEngine - one instance equals to one connection, cannot be reused. Implementation is expected to call
ClientEngine.createUpgradeRequest(java.net.URI, org.glassfish.tyrus.spi.ClientEngine.TimeoutHandler)
and ClientEngine.processResponse(UpgradeResponse, Writer, org.glassfish.tyrus.spi.Connection.CloseListener)
(in that order).javax.websocket.DeploymentExceptionIOExceptionCopyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.