org.glassfish.tyrus.spi.ClientContainer implementation based on Java 7 NIO API.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | INPUT_BUFFER_SIZE
Input buffer that is used by |
| private static final Logger | |
| private static final int | SSL_INPUT_BUFFER_SIZE
Input buffer that is used by |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | connectSynchronously(ClientFilter clientFilter, final SocketAddress address, boolean proxy)
|
| private ClientFilter | createClientFilter(Map<String, Object> properties, Filter downstreamFilter, ClientEngine clientEngine, Callable<Void> jdkConnector, UpgradeRequest upgradeRequest)
|
| private SslFilter | createSslFilter(ClientEndpointConfig cec, Map<String, Object> properties, TransportFilter transportFilter, URI uri)
|
| private TaskQueueFilter | |
| private TransportFilter | createTransportFilter(int sslInputBufferSize, ThreadPoolConfig threadPoolConfig, Integer containerIdleTimeout, InetAddress bindingAddress)
|
| private URI | |
| private SocketAddress | |
| public void | openClientSocket(final ClientEndpointConfig
endpoint configuration. SPI consumer can access user properties, cec, final Map<String, Object> jakarta., extensions and subprotocol
configuration,
etc..properties passed from client container. Don't mix up this with properties, final ClientEngine jakarta., these are Tyrus proprietary.one instance equals to one connection, cannot be reused. Implementation is expected to call
clientEngine)ClientEngine#createUpgradeRequest(ClientEngine. and ClientEngine#processResponse(UpgradeResponse, Writer,
org. (in that order).Implements org. Open client socket - connect to endpoint specified with |
| private List |
| INPUT_BUFFER_SIZE | back to summary |
|---|---|
| private static final int INPUT_BUFFER_SIZE Input buffer that is used by | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| SSL_INPUT_BUFFER_SIZE | back to summary |
|---|---|
| private static final int SSL_INPUT_BUFFER_SIZE Input buffer that is used by | |
| JdkClientContainer | back to summary |
|---|---|
| public JdkClientContainer() | |
| addProxies | back to summary |
|---|---|
| private void addProxies(ProxySelector proxySelector, URI uri, String scheme, List<Proxy> proxies) | |
| connectSynchronously | back to summary |
|---|---|
| private void connectSynchronously(ClientFilter clientFilter, final SocketAddress address, boolean proxy) throws Throwable
| |
| createClientFilter | back to summary |
|---|---|
| private ClientFilter createClientFilter(Map<String, Object> properties, Filter downstreamFilter, ClientEngine clientEngine, Callable<Void> jdkConnector, UpgradeRequest upgradeRequest) throws DeploymentException | |
| createSslFilter | back to summary |
|---|---|
| private SslFilter createSslFilter(ClientEndpointConfig cec, Map<String, Object> properties, TransportFilter transportFilter, URI uri) | |
| createTaskQueueFilter | back to summary |
|---|---|
| private TaskQueueFilter createTaskQueueFilter(Filter downstreamFilter) | |
| createTransportFilter | back to summary |
|---|---|
| private TransportFilter createTransportFilter(int sslInputBufferSize, ThreadPoolConfig threadPoolConfig, Integer containerIdleTimeout, InetAddress bindingAddress) | |
| getProxyUri | back to summary |
|---|---|
| private URI getProxyUri(URI wsUri, String scheme) | |
| getServerAddress | back to summary |
|---|---|
| private SocketAddress getServerAddress(URI uri) throws DeploymentException | |
| openClientSocket | back to summary |
|---|---|
| public void openClientSocket(final ClientEndpointConfig cec, final Map<String, Object> properties, final ClientEngine clientEngine) throws DeploymentException, IOException Implements org. Doc from org. Open client socket - connect to endpoint specified with
Called from ClientManager when
| |
| processProxy | back to summary |
|---|---|
| private List | |
| Modifier and Type | Field and Description |
|---|---|
| private volatile ClientEngine. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleTimeout()
Implements org. Invoked when timeout is reached. |
| public void |
| handler | back to summary |
|---|---|
| private volatile ClientEngine. | |
| TimeoutHandlerProxy | back to summary |
|---|---|
| private TimeoutHandlerProxy() | |
| handleTimeout | back to summary |
|---|---|
| public void handleTimeout() Implements org. Doc from org. Invoked when timeout is reached. Container is supposed to clean all resources related to
| |
| setHandler | back to summary |
|---|---|
| public void setHandler(ClientEngine. | |