public interface ClientContainer
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | INCOMING_BUFFER_SIZEDeprecated. 
 please use  org.glassfish.tyrus.client.ClientProperties#INCOMING_BUFFER_SIZE. | 
| static java.lang.String | WLS_INCOMING_BUFFER_SIZEWLS version of  INCOMING_BUFFER_SIZE. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | openClientSocket(ClientEndpointConfig cec,
                java.util.Map<java.lang.String,java.lang.Object> properties,
                ClientEngine clientEngine)Open client socket - connect to endpoint specified with  urlparameter. | 
static final java.lang.String INCOMING_BUFFER_SIZE
org.glassfish.tyrus.client.ClientProperties#INCOMING_BUFFER_SIZE.
 Can be set in properties map (see openClientSocket(jakarta.websocket.ClientEndpointConfig, java.util.Map,
 ClientEngine)).
static final java.lang.String WLS_INCOMING_BUFFER_SIZE
INCOMING_BUFFER_SIZE.void openClientSocket(ClientEndpointConfig cec, java.util.Map<java.lang.String,java.lang.Object> properties, ClientEngine clientEngine) throws DeploymentException, java.io.IOException
url parameter.
 
 Called from ClientManager when WebSocketContainer.connectToServer(Class,
 jakarta.websocket.ClientEndpointConfig, java.net.URI) is invoked.
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(ClientEngine.TimeoutHandler) and ClientEngine.processResponse(UpgradeResponse, Writer,
                     org.glassfish.tyrus.spi.Connection.CloseListener) (in that order).DeploymentException - when the client endpoint is invalid or when there is any other (not
                                             specified) connection problem.java.io.IOException - when there is any I/O issue related to opening client socket or
                                             connecting to remote endpoint.Copyright © 2012–2020 Oracle Corporation. All rights reserved.