Class DefaultClientEndpointConfig
java.lang.Object
javax.websocket.DefaultClientEndpointConfig
- All Implemented Interfaces:
ClientEndpointConfig, EndpointConfig
The DefaultClientEndpointConfig is a concrete implementation of a client configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ClientEndpointConfig
ClientEndpointConfig.Builder, ClientEndpointConfig.Configurator -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the custom configurator for this configuration.Return the (unmodifiable) list of decoders this client will use.Return the (unmodifiable) list of encoders this client will use.Return the extensions, in order of preference, favorite first, that this client would like to use for its sessions.Return the protocols, in order of preference, favorite first, that this client would like to use for its sessions.Editable map of user properties.
-
Field Details
-
preferredSubprotocols
-
extensions
-
encoders
-
decoders
-
userProperties
-
clientEndpointConfigurator
-
-
Constructor Details
-
DefaultClientEndpointConfig
-
-
Method Details
-
getPreferredSubprotocols
Return the protocols, in order of preference, favorite first, that this client would like to use for its sessions.- Specified by:
getPreferredSubprotocolsin interfaceClientEndpointConfig- Returns:
- the preferred subprotocols.
-
getExtensions
Return the extensions, in order of preference, favorite first, that this client would like to use for its sessions.- Specified by:
getExtensionsin interfaceClientEndpointConfig- Returns:
- the (unmodifiable) extension list.
-
getEncoders
Return the (unmodifiable) list of encoders this client will use.- Specified by:
getEncodersin interfaceEndpointConfig- Returns:
- the encoder list.
-
getDecoders
Return the (unmodifiable) list of decoders this client will use.- Specified by:
getDecodersin interfaceEndpointConfig- Returns:
- the decoders to use.
-
getUserProperties
Editable map of user properties.- Specified by:
getUserPropertiesin interfaceEndpointConfig- Returns:
- a modifiable Map of application data.
-
getConfigurator
Description copied from interface:ClientEndpointConfigReturn the custom configurator for this configuration. If the developer did not provide one, the platform default configurator is returned.- Specified by:
getConfiguratorin interfaceClientEndpointConfig- Returns:
- the configurator in use with this configuration.
-