public class DefaultClientConfiguration extends Object implements ClientConfiguration
| 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.
|
List<Decoder> |
setDecoders(List<Decoder> decoders)
Assign the list of decoders this client will use.
|
List<Encoder> |
setEncoders(List<Encoder> encoders)
Assign the list of encoders this client will use.
|
DefaultClientConfiguration |
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 List<String> getPreferredSubprotocols()
getPreferredSubprotocols in interface ClientConfigurationpublic DefaultClientConfiguration setPreferredSubprotocols(List<String> preferredSubprotocols)
public List<Extension> getExtensions()
getExtensions in interface ClientConfigurationpublic DefaultClientConfiguration setExtensions(List<Extension> preferredExtensions)
public List<Encoder> getEncoders()
getEncoders in interface EndpointConfigurationpublic List<Encoder> setEncoders(List<Encoder> encoders)
public List<Decoder> getDecoders()
getDecoders in interface EndpointConfiguration
Copyright © 2012 Oracle and/or its affiliates. All rights reserved.