public class GrizzlyClientContainer extends Object implements ClientContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
SHARED_CONTAINER
Deprecated.
please use
ClientProperties.SHARED_CONTAINER. |
static String |
SHARED_CONTAINER_IDLE_TIMEOUT
Deprecated.
please use
ClientProperties.SHARED_CONTAINER_IDLE_TIMEOUT. |
static String |
SSL_ENGINE_CONFIGURATOR
Deprecated.
please use
ClientProperties.SSL_ENGINE_CONFIGURATOR. |
INCOMING_BUFFER_SIZE, WLS_INCOMING_BUFFER_SIZE| Constructor and Description |
|---|
GrizzlyClientContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
openClientSocket(ClientEndpointConfig cec,
Map<String,Object> properties,
ClientEngine clientEngine)
Open client socket - connect to endpoint specified with
url parameter. |
public static final String SSL_ENGINE_CONFIGURATOR
ClientProperties.SSL_ENGINE_CONFIGURATOR.public static final String SHARED_CONTAINER
ClientProperties.SHARED_CONTAINER.true (boolean value), client runtime preserves used container and reuses it for outgoing
connections.public static final String SHARED_CONTAINER_IDLE_TIMEOUT
ClientProperties.SHARED_CONTAINER_IDLE_TIMEOUT.public void openClientSocket(ClientEndpointConfig cec, Map<String,Object> properties, ClientEngine clientEngine) throws DeploymentException, IOException
ClientContainerurl parameter.
Called from ClientManager when WebSocketContainer.connectToServer(Class, javax.websocket.ClientEndpointConfig, java.net.URI)
is invoked.openClientSocket in interface ClientContainercec - 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(ClientEngine.TimeoutHandler)
and ClientEngine.processResponse(UpgradeResponse, Writer, org.glassfish.tyrus.spi.Connection.CloseListener)
(in that order).DeploymentExceptionIOExceptionCopyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.