javax.net.websocket
Interface EndpointConfiguration

All Known Subinterfaces:
ClientConfiguration, ClientEndpointConfiguration, ServerConfiguration, ServerEndpointConfiguration
All Known Implementing Classes:
DefaultClientConfiguration, DefaultClientEndpointConfiguration, DefaultEndpointConfiguration, DefaultServerConfiguration, DefaultServerEndpointConfiguration

public interface EndpointConfiguration

The endpoint configuration contains all the information needed during the handshake process for this end point. All endpoints specify, for example, a URI. In the case of a server endpoint, the URI signifies the URI to which the endpoint will be mapped. In the case of a client application the URI signifies the URI of the server to which the client endpoint will attempt to connect.

Since:
DRAFT 001
Author:
dannycoward

Method Summary
 List<Decoder> getDecoders()
          Return the Decoder implementations configured.
 List<Encoder> getEncoders()
          Return the Encoder implementations configured.
 String getPath()
          see http://java.net/jira/browse/WEBSOCKET_SPEC-46
 

Method Detail

getEncoders

List<Encoder> getEncoders()
Return the Encoder implementations configured. These will be used by the container to encode custom objects passed into the send() methods on remote endpoints.

Returns:
the list of encoders.

getDecoders

List<Decoder> getDecoders()
Return the Decoder implementations configured. These will be used by the container to decode incoming messages into the expected custom objects on MessageListener.onMessage() callbacks.

Returns:
the list of decoders.

getPath

String getPath()
see http://java.net/jira/browse/WEBSOCKET_SPEC-46



Copyright © 2012. All Rights Reserved.