Top Inners Methods
jakarta.websocket

public Interface ClientEndpointConfig

extends EndpointConfig
Known Direct Implementers
jakarta.websocket.DefaultClientEndpointConfig
Imports
java.util.Collections, .List, .Map, javax.net.ssl.SSLContext

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Method Summary

Modifier and TypeMethod and Description
public ClientEndpointConfig.Configurator
public List<Extension>
public List<String>
public SSLContext
Inherited from jakarta.websocket.EndpointConfig:
getDecodersgetEncodersgetUserProperties

Method Detail

getConfiguratorback to summary
public ClientEndpointConfig.Configurator getConfigurator()
getExtensionsback to summary
public List<Extension> getExtensions()
getPreferredSubprotocolsback to summary
public List<String> getPreferredSubprotocols()
getSSLContextback to summary
public SSLContext getSSLContext()
jakarta.websocket back to summary

public final Class ClientEndpointConfig.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private ClientEndpointConfig.Configurator
private List<Class<? extends Decoder>>
private static final ClientEndpointConfig.Configurator
private List<Class<? extends Encoder>>
private List<Extension>
private List<String>
private SSLContext

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ClientEndpointConfig
public ClientEndpointConfig.Builder
public static ClientEndpointConfig.Builder
public ClientEndpointConfig.Builder
decoders(List<Class<? extends Decoder>> decoders)

public ClientEndpointConfig.Builder
encoders(List<Class<? extends Encoder>> encoders)

public ClientEndpointConfig.Builder
extensions(List<Extension> extensions)

public ClientEndpointConfig.Builder
preferredSubprotocols(List<String> preferredSubprotocols)

public ClientEndpointConfig.Builder
sslContext(SSLContext sslContext)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configuratorback to summary
private ClientEndpointConfig.Configurator configurator
decodersback to summary
private List<Class<? extends Decoder>> decoders
DEFAULT_CONFIGURATORback to summary
private static final ClientEndpointConfig.Configurator DEFAULT_CONFIGURATOR
encodersback to summary
private List<Class<? extends Encoder>> encoders
extensionsback to summary
private List<Extension> extensions
preferredSubprotocolsback to summary
private List<String> preferredSubprotocols
sslContextback to summary
private SSLContext sslContext

Constructor Detail

Builderback to summary
private Builder()

Method Detail

buildback to summary
public ClientEndpointConfig build()
configuratorback to summary
public ClientEndpointConfig.Builder configurator(ClientEndpointConfig.Configurator configurator)
createback to summary
public static ClientEndpointConfig.Builder create()
decodersback to summary
public ClientEndpointConfig.Builder decoders(List<Class<? extends Decoder>> decoders)
encodersback to summary
public ClientEndpointConfig.Builder encoders(List<Class<? extends Encoder>> encoders)
extensionsback to summary
public ClientEndpointConfig.Builder extensions(List<Extension> extensions)
preferredSubprotocolsback to summary
public ClientEndpointConfig.Builder preferredSubprotocols(List<String> preferredSubprotocols)
sslContextback to summary
public ClientEndpointConfig.Builder sslContext(SSLContext sslContext)
jakarta.websocket back to summary

public Class ClientEndpointConfig.Configurator

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
afterResponse(HandshakeResponse
The response
handshakeResponse
)

Provides the client with a mechanism to inspect the handshake response that is returned from the server.

public void
beforeRequest(Map<String, List<String>>
The HTTP headers
headers
)

Provides the client with a mechanism to inspect and/or modify the headers that are sent to the server to start the WebSocket handshake.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Configuratorback to summary
public Configurator()

Method Detail

afterResponseback to summary
public void afterResponse(HandshakeResponse handshakeResponse)

Provides the client with a mechanism to inspect the handshake response that is returned from the server.

Parameters
handshakeResponse:HandshakeResponse

The response

beforeRequestback to summary
public void beforeRequest(Map<String, List<String>> headers)

Provides the client with a mechanism to inspect and/or modify the headers that are sent to the server to start the WebSocket handshake.

Parameters
headers:Map<String, List<String>>

The HTTP headers