javax.websocket
Interface ClientEndpointConfiguration

All Superinterfaces:
EndpointConfiguration
All Known Implementing Classes:
DefaultClientConfiguration

public interface ClientEndpointConfiguration
extends EndpointConfiguration

The ClientEndpointConfiguration is a special kind of endpoint configuration object that contains web socket configuration information specific only to client endpoints.

Since:
DRAFT 001
Author:
dannycoward

Method Summary
 List<String> getExtensions()
          http://java.net/jira/browse/WEBSOCKET_SPEC-45 Return the list of all the extensions that this client supports, the empty list if there are none.
 List<String> getPreferredSubprotocols()
          The ordered list of sub protocols a client endpoint would like to use, the empty list if there are none.
 
Methods inherited from interface javax.websocket.EndpointConfiguration
getDecoders, getEncoders
 

Method Detail

getPreferredSubprotocols

List<String> getPreferredSubprotocols()
The ordered list of sub protocols a client endpoint would like to use, the empty list if there are none. This list is used to generate the Sec-WebSocket-Protocol header in the opening handshake for clients using this configuration. The first protocol name is the most preferred. See Client Opening Handshake

Returns:
a list of the preferred subprotocols

getExtensions

List<String> getExtensions()
http://java.net/jira/browse/WEBSOCKET_SPEC-45 Return the list of all the extensions that this client supports, the empty list if there are none. These are the extensions that will be used to populate the Sec-WebSocket-Extensions header in the opening handshake for clients using this configuration. The first extension in the list is the most preferred extension. See Negotiating Extensions

Returns:
a list of extensions



Copyright © 2012 Oracle and/or its affiliates. All rights reserved.