Package javax.websocket
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 javax.websocket.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:
getPreferredSubprotocols
in 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:
getExtensions
in interfaceClientEndpointConfig
- Returns:
- the (unmodifiable) extension list.
-
getEncoders
Return the (unmodifiable) list of encoders this client will use.- Specified by:
getEncoders
in interfaceEndpointConfig
- Returns:
- the encoder list.
-
getDecoders
Return the (unmodifiable) list of decoders this client will use.- Specified by:
getDecoders
in interfaceEndpointConfig
- Returns:
- the decoders to use.
-
getUserProperties
Editable map of user properties.- Specified by:
getUserProperties
in interfaceEndpointConfig
- Returns:
- a modifiable Map of application data.
-
getConfigurator
Description copied from interface:ClientEndpointConfig
Return the custom configurator for this configuration. If the developer did not provide one, the platform default configurator is returned.- Specified by:
getConfigurator
in interfaceClientEndpointConfig
- Returns:
- the configurator in use with this configuration.
-