A B C D E F G H I J M O P R S T V W

A

addMessageHandler(MessageHandler) - Method in interface javax.websocket.Session
Register to handle to incoming messages in this conversation.
afterResponse(HandshakeResponse) - Method in interface javax.websocket.ClientEndpointConfiguration
This method is called by the implementation after it has received a handshake response from the server as a result of a handshake interaction it initiated.
afterResponse(HandshakeResponse) - Method in class javax.websocket.DefaultClientConfiguration
The default implementation of this method performs no actions on the HandshakeResponse.

B

beforeRequest(Map<String, List<String>>) - Method in interface javax.websocket.ClientEndpointConfiguration
This method is called by the implementation after it has formulated the handshake request that will be used to initiate the connection to the server, but before it has sent any part of the request.
beforeRequest(Map<String, List<String>>) - Method in class javax.websocket.DefaultClientConfiguration
The default implementation of this method performs no actions on the HandshakeRequest headers.

C

checkOrigin(String) - Method in class javax.websocket.server.DefaultServerConfiguration
Makes a check of the validity of the Origin header sent along with the opening handshake following the recommendation at: Sending the Server's Opening Handshake.
checkOrigin(String) - Method in interface javax.websocket.server.ServerEndpointConfiguration
Check the value of the Origin header (See Origin Header) the client passed during the opening handshake.
ClientEndpointConfiguration - Interface in javax.websocket
The ClientEndpointConfiguration is a special kind of endpoint configuration object that contains web socket configuration information specific only to client endpoints.
close() - Method in interface javax.websocket.Session
Close the current conversation with a normal status code and no reason phrase.
close(CloseReason) - Method in interface javax.websocket.Session
Close the current conversation, giving a reason for the closure.
CloseReason - Class in javax.websocket
A class encapsulating the reason why a web socket has been closed, or why it is being asked to close.
CloseReason(CloseReason.CloseCode, String) - Constructor for class javax.websocket.CloseReason
Creates a reason for closing a web socket connection with the given code and reason phrase.
CloseReason.CloseCode - Interface in javax.websocket
A marker interface for the close codes.
CloseReason.CloseCodes - Enum in javax.websocket
An Enumeration of status codes for a web socket close that are defined in the specification.
connectToServer(Class<?>, URI) - Method in interface javax.websocket.WebSocketContainer
Connect the supplied annotated object to its server.
connectToServer(Class<? extends Endpoint>, ClientEndpointConfiguration, URI) - Method in interface javax.websocket.WebSocketContainer
Connect the supplied programmatic endpoint to its server with the given configuration.
ContainerProvider - Class in javax.websocket
Provider class that allows the developer to get a reference to the implementation of the WebSocketContainer.
ContainerProvider() - Constructor for class javax.websocket.ContainerProvider
 

D

decode(ByteBuffer) - Method in interface javax.websocket.Decoder.Binary
Decode the given bytes into an object of type T.
decode(InputStream) - Method in interface javax.websocket.Decoder.BinaryStream
Decode the given bytes read from the input stream into an object of type T.
decode(String) - Method in interface javax.websocket.Decoder.Text
Decode the given String into an object of type T.
decode(Reader) - Method in interface javax.websocket.Decoder.TextStream
Reads the websocket message from the implementation provided Reader and decodes it into an instance of the supplied object type.
DecodeException - Exception in javax.websocket
A general exception that occurs when trying to decode a custom object from a text or binary message.
DecodeException(ByteBuffer, String, Throwable) - Constructor for exception javax.websocket.DecodeException
Constructor with the binary data that could not be decoded, and the reason why it failed to be, and the cause.
DecodeException(String, String, Throwable) - Constructor for exception javax.websocket.DecodeException
Constructor with the text data that could not be decoded, and the reason why it failed to be, and the cause.
DecodeException(ByteBuffer, String) - Constructor for exception javax.websocket.DecodeException
Constructs a DecodedException with the given ByteBuffer that cannot be decoded, and reason why.
DecodeException(String, String) - Constructor for exception javax.websocket.DecodeException
Constructs a DecodedException with the given encoded string that cannot be decoded, and reason why.
Decoder - Interface in javax.websocket
The Decoder interface holds member interfaces that define how a developer can provide the web socket container a way web socket messages into developer defined custom objects.
Decoder.Binary<T> - Interface in javax.websocket
This interface defines how a custom object (of type T) is decoded from a web socket message in the form of a byte buffer.
Decoder.BinaryStream<T> - Interface in javax.websocket
This interface defines how a custom object is decoded from a web socket message in the form of a binary stream.
Decoder.Text<T> - Interface in javax.websocket
This interface defines how a custom object is decoded from a web socket message in the form of a string.
Decoder.TextStream<T> - Interface in javax.websocket
This interface defines how a custom object of type T is decoded from a web socket message in the form of a character stream.
DefaultClientConfiguration - Class in javax.websocket
The DefaultClientConfiguration is a concrete implementation of a client configuration.
DefaultClientConfiguration() - Constructor for class javax.websocket.DefaultClientConfiguration
Creates a client configuration with no preferred sub protocols, extensions, decoders or encoders.
DefaultServerConfiguration - Class in javax.websocket.server
The DefaultServerConfiguration is a concrete class that embodies all the configuration parameters for an endpoint that is to be published as a server endpoint.
DefaultServerConfiguration(Class<? extends Endpoint>, String) - Constructor for class javax.websocket.server.DefaultServerConfiguration
Creates a server configuration with the given path
DeploymentException - Exception in javax.websocket
Checked exception indicating some kind of failure either to publish an endpoint on its server, or a failure to connect a client to its server.
DeploymentException(String) - Constructor for exception javax.websocket.DeploymentException
Creates a deployment exception with the given reason for the deployment failure.
DeploymentException(String, Throwable) - Constructor for exception javax.websocket.DeploymentException
Creates a deployment exception with the given reason for the deployment failure and wrapped cause of the failure.

E

encode(T) - Method in interface javax.websocket.Encoder.Binary
Encode the given object into a byte array.
encode(T, OutputStream) - Method in interface javax.websocket.Encoder.BinaryStream
Encode the given object into a binary stream written to the implementation provided OutputStream.
encode(T) - Method in interface javax.websocket.Encoder.Text
Encode the given object into a String.
encode(T, Writer) - Method in interface javax.websocket.Encoder.TextStream
Encode the given object to a character stream writing it to the supplied Writer.
EncodeException - Exception in javax.websocket
A general exception that occurs when trying to encode a custom object to a string or binary message.
EncodeException(Object, String) - Constructor for exception javax.websocket.EncodeException
Constructor with the object being encoded, and the reason why it failed to be.
EncodeException(Object, String, Throwable) - Constructor for exception javax.websocket.EncodeException
Constructor with the object being encoded, and the reason why it failed to be, and the cause.
Encoder - Interface in javax.websocket
The Encoder interface defines how developers can provide a way to convert their custom objects into web socket messages.
Encoder.Binary<T> - Interface in javax.websocket
This interface defines how to provide a way to convert a custom object into a binary message.
Encoder.BinaryStream<T> - Interface in javax.websocket
This interface may be implemented by encoding algorithms that want to write the encoded object to a binary stream.
Encoder.Text<T> - Interface in javax.websocket
This interface defines how to provide a way to convert a custom object into a text message.
Encoder.TextStream<T> - Interface in javax.websocket
This interface may be implemented by encoding algorithms that want to write the encoded object to a character stream.
Endpoint - Class in javax.websocket
The Web Socket Endpoint represents an object that can handle a web socket conversations.
Endpoint() - Constructor for class javax.websocket.Endpoint
 
EndpointConfiguration - Interface in javax.websocket
The endpoint configuration contains all the information needed during the handshake process for this end point.
Extension - Interface in javax.websocket
A simple representation of a websocket extension as a name and map of extension parameters.
Extension.Parameter - Interface in javax.websocket
This member interface defines a single websocket extension parameter.

F

flushBatch() - Method in interface javax.websocket.RemoteEndpoint
This method is only used when batching is allowed for this RemoteEndpint.

G

getAnnotatedEndpointClasses(Set<Class<?>>) - Method in interface javax.websocket.server.ServerApplicationConfiguration
Return a set of annotated endpoint classes that the server container must deploy.
getApplicationData() - Method in interface javax.websocket.PongMessage
The application data inside the pong message from the peer.
getAsyncSendTimeout() - Method in interface javax.websocket.RemoteEndpoint
Return the number of milliseconds the implementation will timeout attempting to send a websocket message.
getBatchingAllowed() - Method in interface javax.websocket.RemoteEndpoint
Return whether the implementation is allowed to batch outgoing messages before sending.
getBytes() - Method in exception javax.websocket.DecodeException
Return the ByteBuffer that cannot be decoded or null if this exception arose from a failure to decode a text message.
getCloseCode(int) - Static method in enum javax.websocket.CloseReason.CloseCodes
Creates a CloseCode from the given int code number.
getCloseCode() - Method in class javax.websocket.CloseReason
The Close code associated with this CloseReason.
getCode() - Method in interface javax.websocket.CloseReason.CloseCode
Returns the code number, for example the integer '1000' for normal closure.
getCode() - Method in enum javax.websocket.CloseReason.CloseCodes
Return the code number of this status code.
getContainer(Class<T>) - Method in class javax.websocket.ContainerProvider
Load the container implementation.
getContainer() - Method in interface javax.websocket.Session
Return the container that this session is part of.
getDecoders() - Method in class javax.websocket.DefaultClientConfiguration
Return the (unmodifiable) list of decoders this client will use.
getDecoders() - Method in interface javax.websocket.EndpointConfiguration
Return the Decoder implementations configured, the empty list if none.
getDecoders() - Method in class javax.websocket.server.DefaultServerConfiguration
Return the Decoder implementations configured.
getDefaultAsyncSendTimeout() - Method in interface javax.websocket.WebSocketContainer
Return the number of milliseconds the implementation will timeout attempting to send a websocket message for all RemoteEndpoints associated with this container.
getDefaultMaxBinaryMessageBufferSize() - Method in interface javax.websocket.WebSocketContainer
Returns the default maximum size of incoming binary message that this container will buffer.
getDefaultMaxTextMessageBufferSize() - Method in interface javax.websocket.WebSocketContainer
Returns the default maximum size of incoming text message that this container will buffer.
getEncoders() - Method in class javax.websocket.DefaultClientConfiguration
Return the (unmodifiable) list of encoders this client will use.
getEncoders() - Method in interface javax.websocket.EndpointConfiguration
Return the Encoder implementations configured, the empty list if none.
getEncoders() - Method in class javax.websocket.server.DefaultServerConfiguration
Return the Encoder implementations configured.
getEndpointClass() - Method in class javax.websocket.server.DefaultServerConfiguration
Returns the class of the Endpoint that this configuration configures.
getEndpointClass() - Method in interface javax.websocket.server.ServerEndpointConfiguration
Returns the Class of the endpoint this configuration is configuring.
getEndpointConfigurationClasses(Set<Class<? extends ServerEndpointConfiguration>>) - Method in interface javax.websocket.server.ServerApplicationConfiguration
Return a set of ServerEndpointConfiguration classes that the server container must deploy.
getException() - Method in class javax.websocket.SendResult
The problem sending the message.
getExtensions() - Method in interface javax.websocket.ClientEndpointConfiguration
Return the list of all the extensions that this client supports, the empty list if there are none.
getExtensions() - Method in class javax.websocket.DefaultClientConfiguration
Return the extensions, in order of preference, favorite first, that this client would like to use for its sessions.
getHeaders() - Method in interface javax.websocket.HandshakeResponse
Return the list of Http headers sent by the web socket server.
getHeaders() - Method in interface javax.websocket.server.HandshakeRequest
Return the read only Map of Http Headers that came with the handshake request.
getId() - Method in interface javax.websocket.Session
Returns a string containing the unique identifier assigned to this session.
getInstalledExtensions() - Method in interface javax.websocket.WebSocketContainer
Return the set of Extensions installed in the container.
getMaxBinaryMessageBufferSize() - Method in interface javax.websocket.Session
The maximum length of incoming binary messages that this Session can buffer.
getMaxSessionIdleTimeout() - Method in interface javax.websocket.WebSocketContainer
Return the maximum time in milliseconds that a web socket session may be idle before the container may close it.
getMaxTextMessageBufferSize() - Method in interface javax.websocket.Session
The maximum length of incoming text messages that this Session can buffer.
getMessageHandlers() - Method in interface javax.websocket.Session
Return an unmodifiable copy of the set of MessageHandlers for this Session.
getName() - Method in interface javax.websocket.Extension
The name of the extension.
getName() - Method in interface javax.websocket.Extension.Parameter
Return the name of the extension parameter.
getNegotiatedExtensions(List<Extension>) - Method in class javax.websocket.server.DefaultServerConfiguration
Provides a simple algorithm to return the list of extensions this server will use for the web socket session: the configuration returns a list containing all of the requested extensions passed to this method that it supports, using the order in the requested extensions, the empty list if none.
getNegotiatedExtensions(List<Extension>) - Method in interface javax.websocket.server.ServerEndpointConfiguration
Return the ordered list of extensions that this server will support given the requested extension list passed in, the empty list if none.
getNegotiatedExtensions() - Method in interface javax.websocket.Session
Return the list of extensions currently in use for this conversation.
getNegotiatedSubprotocol(List<String>) - Method in class javax.websocket.server.DefaultServerConfiguration
The default implementation of this method returns, the first subprotocol in the list sent by the client that the server supports, or null if there isn't one none.
getNegotiatedSubprotocol(List<String>) - Method in interface javax.websocket.server.ServerEndpointConfiguration
Return the subprotocol this server endpoint has chosen from the requested list supplied by a client who wishes to connect, or none if there wasn't one this server endpoint liked.
getNegotiatedSubprotocol() - Method in interface javax.websocket.Session
Return the sub protocol agreed during the websocket handshake for this conversation.
getObject() - Method in exception javax.websocket.EncodeException
Return the Object that could not be encoded.
getOpenSessions() - Method in interface javax.websocket.Session
Return a copy of the Set of all the open web socket sessions that represent connections to the same endpoint to which this session represents a connection.
getParameterMap() - Method in interface javax.websocket.server.HandshakeRequest
Return the request parameters associated with the request.
getParameters() - Method in interface javax.websocket.Extension
The extension parameters for this extension in the order they appear in the http headers.
getPath() - Method in class javax.websocket.server.DefaultServerConfiguration
Return the path of this server configuration.
getPath() - Method in interface javax.websocket.server.ServerEndpointConfiguration
Return the path for this endpoint configuration.
getPathParameters() - Method in interface javax.websocket.Session
Return a map of the path parameter names and values used associated with the request this session was opened under.
getPreferredSubprotocols() - Method in interface javax.websocket.ClientEndpointConfiguration
The ordered list of sub protocols a client endpoint would like to use, the empty list if there are none.
getPreferredSubprotocols() - Method in class javax.websocket.DefaultClientConfiguration
Return the protocols, in order of preference, favorite first, that this client would like to use for its sessions.
getProtocolVersion() - Method in interface javax.websocket.Session
Returns the version of the websocket protocol currently being used.
getQueryString() - Method in interface javax.websocket.server.HandshakeRequest
Return the query string associated with the request.
getQueryString() - Method in interface javax.websocket.Session
Return the query string associated with the request this session was opened under.
getReasonPhrase() - Method in class javax.websocket.CloseReason
The reason phrase associated with this CloseReason.
getRemote() - Method in interface javax.websocket.Session
Return a reference to the RemoteEndpoint object representing the other end of this conversation.
getRequestParameterMap() - Method in interface javax.websocket.Session
Return the request parameters associated with the request this session was opened under.
getRequestURI() - Method in interface javax.websocket.server.HandshakeRequest
Return the request URI of the handshake request.
getRequestURI() - Method in interface javax.websocket.Session
Return the URI under which this session was opened.
getSendStream() - Method in interface javax.websocket.RemoteEndpoint
Opens an output stream on which a binary message may be sent.
getSendWriter() - Method in interface javax.websocket.RemoteEndpoint
Opens an character stream on which a text message may be sent.
getSession() - Method in interface javax.websocket.server.HandshakeRequest
Return a reference to the HttpSession that the web socket handshake that started this conversation was part of, if applicable.
getText() - Method in exception javax.websocket.DecodeException
Return the encoded string that cannot be decoded or null if this exception arose from a failure to decode a binary message..
getTimeout() - Method in interface javax.websocket.Session
Return the number of milliseconds before this conversation may be closed by the container if it is inactive, ie no messages are either sent or received in that time.
getUserPrincipal() - Method in interface javax.websocket.server.HandshakeRequest
Return the authenticated user or null if no user is authenticated for this handshake.
getUserPrincipal() - Method in interface javax.websocket.Session
Return the authenticated user for this Session or null if no user is authenticated for this session.
getUserProperties() - Method in interface javax.websocket.Session
While the session is open, this method returns a Map that the developer may use to store application specific information relating to this session instance.
getValue() - Method in interface javax.websocket.Extension.Parameter
Return the value of the extension parameter.
getWebSocketContainer() - Static method in class javax.websocket.ContainerProvider
Obtain a new instance of a WebSocketContainer.

H

HandshakeRequest - Interface in javax.websocket.server
The handshake request represents the web socket defined Http request that for the opening handshake of a web socket session.
HandshakeResponse - Interface in javax.websocket
The handshake response represents the web socket-defined Http response that is the response to the opening handshake request.

I

isOK() - Method in class javax.websocket.SendResult
Determines if this result is ok or not.
isOpen() - Method in interface javax.websocket.Session
Return true if and only if the underlying socket is open.
isSecure() - Method in interface javax.websocket.Session
Return true if and only if the underlying socket is using a secure transport.
isUserInRole(String) - Method in interface javax.websocket.server.HandshakeRequest
Checks whether the current user is in the given role.

J

javax.websocket - package javax.websocket
 
javax.websocket.server - package javax.websocket.server
 

M

matchesURI(URI) - Method in class javax.websocket.server.DefaultServerConfiguration
This default implementation matches the incoming path to the configuration's URI or URI template if and only if it is an exact match in the case the configuration is a URI, and if and only if it is a valid expansion of the configuration URI template, in the case where the configuration is a URI template.
matchesURI(URI) - Method in interface javax.websocket.server.ServerEndpointConfiguration
Answers whether the current configuration matches the given path.
MessageHandler - Interface in javax.websocket
Developers implement MessageHandlers in order to receive incoming messages during a web socket conversation.
MessageHandler.Async<T> - Interface in javax.websocket
This kind of handler is notified by the implementation as it becomes ready to deliver parts of a whole message.
MessageHandler.Basic<T> - Interface in javax.websocket
This kind of handler is notified by the container on arrival of a complete message.
modifyHandshake(HandshakeRequest, HandshakeResponse) - Method in class javax.websocket.server.DefaultServerConfiguration
The default server configuration does not make any changes to the response.
modifyHandshake(HandshakeRequest, HandshakeResponse) - Method in interface javax.websocket.server.ServerEndpointConfiguration
Called by the container after it has formulated a handshake response resulting from a well-formed handshake request.

O

onClose(Session, CloseReason) - Method in class javax.websocket.Endpoint
This method is called immediately prior to the session with the remote peer being closed.
onError(Session, Throwable) - Method in class javax.websocket.Endpoint
Developers may implement this method when the web socket session creates some kind of error that is not modeled in the web socket protocol.
onMessage(T, boolean) - Method in interface javax.websocket.MessageHandler.Async
Called when the next part of a message has been fully received.
onMessage(T) - Method in interface javax.websocket.MessageHandler.Basic
Called when the message has been fully received.
onOpen(Session, EndpointConfiguration) - Method in class javax.websocket.Endpoint
Developers must implement this method to be notified when a new conversation has just begun.

P

PongMessage - Interface in javax.websocket
The PongMessage interface represents a web socket pong.

R

RemoteEndpoint - Interface in javax.websocket
The RemoteEndpoint object is supplied by the container and represents the 'other end' of the Web Socket conversation.
removeMessageHandler(MessageHandler) - Method in interface javax.websocket.Session
Remove the given MessageHandler from the set belonging to this session.

S

SEC_WEBSOCKET_ACCEPT - Static variable in interface javax.websocket.HandshakeResponse
The Sec-WebSocket-Accept header name.
SEC_WEBSOCKET_EXTENSIONS - Static variable in interface javax.websocket.server.HandshakeRequest
The Sec-WebSocket-Extensions header name
SEC_WEBSOCKET_KEY - Static variable in interface javax.websocket.server.HandshakeRequest
The Sec-WebSocket-Key header name
SEC_WEBSOCKET_PROTOCOL - Static variable in interface javax.websocket.server.HandshakeRequest
The Sec-WebSocket-Protocol header name
SEC_WEBSOCKET_VERSION - Static variable in interface javax.websocket.server.HandshakeRequest
The Sec-WebSocket-Version header name
sendBytes(ByteBuffer) - Method in interface javax.websocket.RemoteEndpoint
Send a binary message, returning when all of the message has been transmitted.
sendBytesByCompletion(ByteBuffer, SendHandler) - Method in interface javax.websocket.RemoteEndpoint
Initiates the asynchronous transmission of a binary message.
sendBytesByFuture(ByteBuffer) - Method in interface javax.websocket.RemoteEndpoint
Initiates the asynchronous transmission of a binary message.
SendHandler - Interface in javax.websocket
A simple callback object for asynchronous sending of web socket messages.
sendObject(Object) - Method in interface javax.websocket.RemoteEndpoint
Sends a custom developer object, blocking until it has been transmitted.
sendObjectByCompletion(Object, SendHandler) - Method in interface javax.websocket.RemoteEndpoint
Initiates the asynchronous transmission of a custom developer object.
sendObjectByFuture(Object) - Method in interface javax.websocket.RemoteEndpoint
Initiates the asynchronous transmission of a custom developer object.
sendPartialBytes(ByteBuffer, boolean) - Method in interface javax.websocket.RemoteEndpoint
Send a binary message in parts, blocking until all of the message has been transmitted.
sendPartialString(String, boolean) - Method in interface javax.websocket.RemoteEndpoint
Send a text message in parts, blocking until all of the message has been transmitted.
sendPing(ByteBuffer) - Method in interface javax.websocket.RemoteEndpoint
Send a Ping message containing the given application data to the remote endpoint.
sendPong(ByteBuffer) - Method in interface javax.websocket.RemoteEndpoint
Allows the developer to send an unsolicited Pong message containing the given application data in order to serve as a unidirectional heartbeat for the session.
SendResult - Class in javax.websocket
The result of asynchronously sending a web socket message.
SendResult(Throwable) - Constructor for class javax.websocket.SendResult
Construct a SendResult carrying an exception.
SendResult() - Constructor for class javax.websocket.SendResult
Construct a SendResult signifying a successful send carrying an no exception.
sendString(String) - Method in interface javax.websocket.RemoteEndpoint
Send a text message, blocking until all of the message has been transmitted.
sendStringByCompletion(String, SendHandler) - Method in interface javax.websocket.RemoteEndpoint
Initiates the asynchronous transmission of a text message.
sendStringByFuture(String) - Method in interface javax.websocket.RemoteEndpoint
Initiates the asynchronous transmission of a text message.
ServerApplicationConfiguration - Interface in javax.websocket.server
Developers may include implementations of ServerApplicationConfiguration in an archive containing websocket endpoints (WAR file, or JAR file within the WAR file) in order to specify precisely which of the websocket endpoints within the archive the implementation must deploy.
ServerEndpointConfiguration - Interface in javax.websocket.server
The ServerEndpointConfiguration is a special kind of endpoint configuration object that contains web socket configuration information specific only to server endpoints.
Session - Interface in javax.websocket
A Web Socket session represents a conversation between two web socket endpoints.
setAsyncSendTimeout(long) - Method in interface javax.websocket.RemoteEndpoint
Sets the number of milliseconds the implementation will timeout attempting to send a websocket message.
setAsyncSendTimeout(long) - Method in interface javax.websocket.WebSocketContainer
Sets the number of milliseconds the implementation will timeout attempting to send a websocket message for all RemoteEndpoints associated with this container.
setBatchingAllowed(boolean) - Method in interface javax.websocket.RemoteEndpoint
Indicate to the implementation that it is allowed to batch outgoing messages before sending.
setDecoders(List<Decoder>) - Method in class javax.websocket.DefaultClientConfiguration
Assign the list of decoders this client will use.
setDecoders(List<Decoder>) - Method in class javax.websocket.server.DefaultServerConfiguration
Sets all the decoders that this configuration will support.
setDefaultMaxBinaryMessageBufferSize(int) - Method in interface javax.websocket.WebSocketContainer
Sets the default maximum size of incoming binary message that this container will buffer.
setDefaultMaxTextMessageBufferSize(int) - Method in interface javax.websocket.WebSocketContainer
Sets the maximum size of incoming text message that this container will buffer.
setEncoders(List<Encoder>) - Method in class javax.websocket.DefaultClientConfiguration
Assign the list of encoders this client will use.
setEncoders(List<Encoder>) - Method in class javax.websocket.server.DefaultServerConfiguration
Sets all the encoders that this configuration will support.
setExtensions(List<Extension>) - Method in class javax.websocket.DefaultClientConfiguration
Assign the List of preferred extensions that this client would like to use.
setExtensions(List<Extension>) - Method in class javax.websocket.server.DefaultServerConfiguration
Sets all the extensions that this configuration will support.
setMaxBinaryMessageBufferSize(int) - Method in interface javax.websocket.Session
Sets the maximum length of incoming binary messages that this Session can buffer.
setMaxSessionIdleTimeout(long) - Method in interface javax.websocket.WebSocketContainer
Sets the maximum time that a web socket session may be idle before the container may close it.
setMaxTextMessageBufferSize(int) - Method in interface javax.websocket.Session
Sets the maximum length of incoming text messages that this Session can buffer.
setPreferredSubprotocols(List<String>) - Method in class javax.websocket.DefaultClientConfiguration
Assign the List of preferred subprotocols that this client would like to use.
setResult(SendResult) - Method in interface javax.websocket.SendHandler
Called once the message has been transmitted.
setSubprotocols(List<String>) - Method in class javax.websocket.server.DefaultServerConfiguration
Sets all the subprotocols that this configuration will support.
setTimeout(long) - Method in interface javax.websocket.Session
Set the non-zero number of milliseconds before this conversation will be closed by the container if it is inactive, ie no messages are either sent or received.

T

toString() - Method in class javax.websocket.CloseReason
Converts the CloseReason to a debug-friendly string.

V

valueOf(String) - Static method in enum javax.websocket.CloseReason.CloseCodes
Returns the enum constant of this type with the specified name.
values() - Static method in enum javax.websocket.CloseReason.CloseCodes
Returns an array containing the constants of this enum type, in the order they are declared.

W

WebSocketClient - Annotation Type in javax.websocket
The WebSocketClient annotation a class level annotation is used to denote that a POJO is a web socket client and can be deployed as such.
WebSocketClose - Annotation Type in javax.websocket
This method level annotation can be used to decorate a Java method that wishes to be called when a web socket session has closed.
WebSocketContainer - Interface in javax.websocket
A WebSocketContainer is an implementation provided object that allows the developer to initiate a web socket handshake from the provided endpoint.
WebSocketEndpoint - Annotation Type in javax.websocket.server
This class level annotation declares that the class it decorates is a web socket endpoint that will be deployed and made available in the URI-space of a web socket server.
WebSocketError - Annotation Type in javax.websocket
This method level annotation can be used to decorate a Java method that wishes to be called in order to handle errors.
WebSocketMessage - Annotation Type in javax.websocket
This method level annotation can be used to make a Java method receive incoming web socket messages.
WebSocketOpen - Annotation Type in javax.websocket
This method level annotation can be used to decorate a Java method that wishes to be called when a new web socket session is open.
WebSocketPathParam - Annotation Type in javax.websocket.server
This annotation may be used to annotate method parameters on server side web socket POJOs where a URI-template has been used in the path-mapping of the WebSocketEndpoint annotation.
willDecode(ByteBuffer) - Method in interface javax.websocket.Decoder.Binary
Answer whether the given bytes can be decoded into an object of type T.
willDecode(String) - Method in interface javax.websocket.Decoder.Text
Answer whether the given String can be decoded into an object of type T.

A B C D E F G H I J M O P R S T V W


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