javax.net.websocket
Class DefaultClientConfiguration

java.lang.Object
  extended by javax.net.websocket.DefaultClientConfiguration
All Implemented Interfaces:
ClientConfiguration, EndpointConfiguration

public class DefaultClientConfiguration
extends Object
implements ClientConfiguration

The DefaultClientConfiguration is a concrete implementation of a client configuration. Developers may subclass this class in order to provide their own custom configuration behaviors.

Author:
dannycoward

Constructor Summary
DefaultClientConfiguration(URI 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<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClientConfiguration

public DefaultClientConfiguration(URI uri)
Creates a client configuration that will attempt to connect to the given URI.

Parameters:
uri -
Method Detail

getPreferredSubprotocols

public List<String> getPreferredSubprotocols()
Return the protocols, in order of preference, favorite first, that this client would like to use for its sessions.

Specified by:
getPreferredSubprotocols in interface ClientConfiguration
Returns:

setPreferredSubprotocols

public DefaultClientConfiguration setPreferredSubprotocols(List<String> preferredSubprotocols)
Assign the List of preferred subprotocols that this client would like to use.

Returns:

getExtensions

public List<Extension> getExtensions()
Return the extensions, in order of preference, favorite first, that this client would like to use for its sessions.

Specified by:
getExtensions in interface ClientConfiguration
Returns:

setExtensions

public DefaultClientConfiguration setExtensions(List<Extension> preferredExtensions)
Assign the List of preferred subprotocols that this client would like to use.

Returns:

getEncoders

public List<Encoder> getEncoders()
Assign the list of encoders this client will use.

Specified by:
getEncoders in interface EndpointConfiguration
Returns:

setEncoders

public List<Encoder> setEncoders(List<Encoder> encoders)
Assign the list of encoders this client will use.


getDecoders

public List<Decoder> getDecoders()
Assign the list of decoders this client will use.

Specified by:
getDecoders in interface EndpointConfiguration
Returns:

setDecoders

public List<Decoder> setDecoders(List<Decoder> decoders)
Assign the list of decoders this client will use.



Copyright © 2012. All Rights Reserved.