org.glassfish.tyrus
Class DefaultEndpointConfiguration

java.lang.Object
  extended by org.glassfish.tyrus.DefaultEndpointConfiguration
All Implemented Interfaces:
EndpointConfiguration
Direct Known Subclasses:
DefaultClientEndpointConfiguration, DefaultServerEndpointConfiguration

public abstract class DefaultEndpointConfiguration
extends Object
implements EndpointConfiguration

Default configuration implementation, immutable.

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

Nested Class Summary
protected static class DefaultEndpointConfiguration.Builder<T extends DefaultEndpointConfiguration.Builder>
           
 
Field Summary
protected  List<String> extensions
          Collections.UnmodifiableList of extensions supported by the corresponding Endpoint.
protected  List<String> subProtocols
          Collections.UnmodifiableList of sub-protocols supported by the corresponding Endpoint.
 
Constructor Summary
protected DefaultEndpointConfiguration(List<Encoder> encoders, List<Decoder> decoders, List<String> subprotocols, List<String> extensions)
           
 
Method Summary
 List<Decoder> getDecoders()
          Decoders used to decode messages.
 List<Encoder> getEncoders()
          Encoders used to encode messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subProtocols

protected final List<String> subProtocols
Collections.UnmodifiableList of sub-protocols supported by the corresponding Endpoint.


extensions

protected final List<String> extensions
Collections.UnmodifiableList of extensions supported by the corresponding Endpoint.

Constructor Detail

DefaultEndpointConfiguration

protected DefaultEndpointConfiguration(List<Encoder> encoders,
                                       List<Decoder> decoders,
                                       List<String> subprotocols,
                                       List<String> extensions)
Method Detail

getEncoders

public List<Encoder> getEncoders()
Encoders used to encode messages.

Specified by:
getEncoders in interface EndpointConfiguration
Returns:
Collections.UnmodifiableList of Encoder.

getDecoders

public List<Decoder> getDecoders()
Decoders used to decode messages.

Specified by:
getDecoders in interface EndpointConfiguration
Returns:
Collections.UnmodifiableList of Decoder.


Copyright © 2012. All Rights Reserved.