public class DefaultClientConfiguration extends Object implements ClientEndpointConfiguration
Constructor and Description |
---|
DefaultClientConfiguration()
Creates a client configuration with no preferred sub protocols, extensions, decoders or encoders.
|
Modifier and Type | Method and Description |
---|---|
List<Decoder> |
getDecoders()
Assign the list of decoders this client will use.
|
List<Encoder> |
getEncoders()
Assign the list of encoders this client will use.
|
List<String> |
getExtensions()
Return the extensions, in order of preference, favorite first, that this client would
like to use for its sessions.
|
List<String> |
getPreferredSubprotocols()
Return the protocols, in order of preference, favorite first, that this client would
like to use for its sessions.
|
ClientEndpointConfiguration |
setDecoders(List<Decoder> decoders)
Assign the list of decoders this client will use.
|
ClientEndpointConfiguration |
setEncoders(List<Encoder> encoders)
Assign the list of encoders this client will use.
|
ClientEndpointConfiguration |
setExtensions(List<String> extensions)
Assign the List of preferred subprotocols that this client would like to
use.
|
DefaultClientConfiguration |
setPreferredSubprotocols(List<String> preferredSubprotocols)
Assign the List of preferred subprotocols that this client would like to
use.
|
public DefaultClientConfiguration()
public List<String> getPreferredSubprotocols()
getPreferredSubprotocols
in interface ClientEndpointConfiguration
public DefaultClientConfiguration setPreferredSubprotocols(List<String> preferredSubprotocols)
preferredSubprotocols
- the preferred subprotocols.public List<String> getExtensions()
getExtensions
in interface ClientEndpointConfiguration
public ClientEndpointConfiguration setExtensions(List<String> extensions)
extensions
- the extensionspublic List<Encoder> getEncoders()
getEncoders
in interface EndpointConfiguration
public ClientEndpointConfiguration setEncoders(List<Encoder> encoders)
encoders
- the encoders to use.public List<Decoder> getDecoders()
getDecoders
in interface EndpointConfiguration
public ClientEndpointConfiguration setDecoders(List<Decoder> decoders)
decoders
- the extensionsCopyright © 2013. All Rights Reserved.