org.glassfish.tyrus
Class DefaultClientEndpointConfiguration

java.lang.Object
  extended by org.glassfish.tyrus.DefaultEndpointConfiguration
      extended by org.glassfish.tyrus.DefaultClientEndpointConfiguration
All Implemented Interfaces:
ClientEndpointConfiguration, EndpointConfiguration

public class DefaultClientEndpointConfiguration
extends DefaultEndpointConfiguration
implements ClientEndpointConfiguration

Configuration used for client endpoints as the default one. The object is immutable.

Author:
Stepan Kopriva (stepan.kopriva at oracle.com)

Nested Class Summary
static class DefaultClientEndpointConfiguration.Builder
          Builder class used to build the DefaultClientEndpointConfiguration.
 
Field Summary
 
Fields inherited from class org.glassfish.tyrus.DefaultEndpointConfiguration
extensions, subProtocols
 
Method Summary
 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.
 
Methods inherited from class org.glassfish.tyrus.DefaultEndpointConfiguration
getDecoders, getEncoders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.websocket.EndpointConfiguration
getDecoders, getEncoders
 

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 ClientEndpointConfiguration
Returns:
Collections.UnmodifiableList of preferred sub-protocols.

getExtensions

public List<String> 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 ClientEndpointConfiguration
Returns:
Collections.UnmodifiableList of extensions.


Copyright © 2012. All Rights Reserved.