|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.net.websocket.DefaultClientConfiguration
public class DefaultClientConfiguration
The DefaultClientConfiguration is a concrete implementation of a client configuration. Developers may subclass this class in order to provide their own custom configuration behaviors.
| Constructor Summary | |
|---|---|
DefaultClientConfiguration(String uri)
Creates a client configuration that will attempt to connect to the given URI. |
|
| Method Summary | |
|---|---|
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. |
String |
getPath()
see http://java.net/jira/browse/WEBSOCKET_SPEC-46 |
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> 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultClientConfiguration(String uri)
uri - | Method Detail |
|---|
public String getPath()
EndpointConfiguration
getPath in interface EndpointConfigurationpublic List<String> getPreferredSubprotocols()
getPreferredSubprotocols in interface ClientEndpointConfigurationpublic DefaultClientConfiguration setPreferredSubprotocols(List<String> preferredSubprotocols)
public List<String> getExtensions()
getExtensions in interface ClientEndpointConfigurationpublic ClientEndpointConfiguration setExtensions(List<String> 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||