Class GrizzlyClientContainer
java.lang.Object
org.glassfish.tyrus.container.grizzly.client.GrizzlyClientContainer
- All Implemented Interfaces:
ClientContainer
- Author:
- Danny Coward, Pavel Bucek
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.please useClientProperties.SHARED_CONTAINER_IDLE_TIMEOUT.static final StringDeprecated.please useClientProperties.SSL_ENGINE_CONFIGURATOR.Fields inherited from interface org.glassfish.tyrus.spi.ClientContainer
INCOMING_BUFFER_SIZE, WLS_INCOMING_BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidopenClientSocket(ClientEndpointConfig cec, Map<String, Object> properties, ClientEngine clientEngine) Open client socket - connect to endpoint specified withurlparameter.
-
Field Details
-
SSL_ENGINE_CONFIGURATOR
Deprecated.please useClientProperties.SSL_ENGINE_CONFIGURATOR.- See Also:
-
SHARED_CONTAINER
Deprecated.please useClientProperties.SHARED_CONTAINER.When set totrue(boolean value), client runtime preserves used container and reuses it for outgoing connections.- See Also:
-
SHARED_CONTAINER_IDLE_TIMEOUT
Deprecated.please useClientProperties.SHARED_CONTAINER_IDLE_TIMEOUT.Container idle timeout in seconds (Integer value).- See Also:
-
-
Constructor Details
-
GrizzlyClientContainer
public GrizzlyClientContainer()
-
-
Method Details
-
openClientSocket
public void openClientSocket(ClientEndpointConfig cec, Map<String, Object> properties, ClientEngine clientEngine) throws DeploymentException, IOExceptionDescription copied from interface:ClientContainerOpen client socket - connect to endpoint specified withurlparameter.Called from ClientManager when
WebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig, java.net.URI)is invoked.- Specified by:
openClientSocketin interfaceClientContainer- Parameters:
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 withEndpointConfig.getUserProperties(), these are Tyrus proprietary.clientEngine- one instance equals to one connection, cannot be reused. Implementation is expected to callClientEngine.createUpgradeRequest(ClientEngine.TimeoutHandler)andClientEngine.processResponse(UpgradeResponse, Writer, org.glassfish.tyrus.spi.Connection.CloseListener)(in that order).- Throws:
DeploymentException- when the client endpoint is invalid or when there is any other (not specified) connection problem.IOException- when there is any I/O issue related to opening client socket or connecting to remote endpoint.
-
ClientProperties.SHARED_CONTAINER.