public class DefaultClientConfiguration extends Object implements ClientEndpointConfiguration
| Constructor and Description |
|---|
DefaultClientConfiguration(URI uri)
Creates a client configuration that will attempt
to connect to the given URI.
|
| 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<Extension> |
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.
|
URI |
getURI() |
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<Extension> preferredExtensions)
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(URI uri)
uri - public URI getURI()
public List<String> getPreferredSubprotocols()
getPreferredSubprotocols in interface ClientEndpointConfigurationpublic DefaultClientConfiguration setPreferredSubprotocols(List<String> preferredSubprotocols)
public List<Extension> getExtensions()
getExtensions in interface ClientEndpointConfigurationpublic ClientEndpointConfiguration setExtensions(List<Extension> preferredExtensions)
public List<Encoder> getEncoders()
getEncoders in interface EndpointConfigurationpublic ClientEndpointConfiguration setEncoders(List<Encoder> encoders)
public List<Decoder> getDecoders()
getDecoders in interface EndpointConfigurationpublic ClientEndpointConfiguration setDecoders(List<Decoder> decoders)
Copyright © 2012. All Rights Reserved.