# Index

A B C D E F G H I J M N O P R S T U V W
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

## A

addEndpoint(Class<?>) - Method in interface javax.websocket.server.ServerContainer
addEndpoint(ServerEndpointConfig) - Method in interface javax.websocket.server.ServerContainer
addMessageHandler(Class<T>, MessageHandler.Partial<T>) - Method in interface javax.websocket.Session
  Registers a `MessageHandler` for partial incoming messages.
addMessageHandler(Class<T>, MessageHandler.Whole<T>) - Method in interface javax.websocket.Session
  Registers a `MessageHandler` for whole incoming messages.
addMessageHandler(MessageHandler) - Method in interface javax.websocket.Session
  Registers a `MessageHandler` for incoming messages.
afterResponse(HandshakeResponse) - Method in class javax.websocket.ClientEndpointConfig.Configurator
  Provides the client with a mechanism to inspect the handshake response that is returned from the server.

## B

beforeRequest(Map<String, List<String>>) - Method in class javax.websocket.ClientEndpointConfig.Configurator
  Provides the client with a mechanism to inspect and/or modify the headers that are sent to the server to start the WebSocket handshake.
build() - Method in class javax.websocket.ClientEndpointConfig.Builder
build() - Method in class javax.websocket.server.ServerEndpointConfig.Builder

## C

CANNOT_ACCEPT - Enum constant in enum javax.websocket.CloseReason.CloseCodes
checkOrigin(String) - Method in class javax.websocket.server.ServerEndpointConfig.Configurator
ClientEndpoint - Annotation Type in javax.websocket
ClientEndpointConfig - Interface in javax.websocket
ClientEndpointConfig.Builder - Class in javax.websocket
ClientEndpointConfig.Configurator - Class in javax.websocket
close() - Method in interface javax.websocket.Session
  Close the connection to the remote end point using the code `CloseReason.CloseCodes.NORMAL_CLOSURE` and an empty reason phrase.
close(CloseReason) - Method in interface javax.websocket.Session
  Close the connection to the remote end point using the specified code and reason phrase.
CLOSED_ABNORMALLY - Enum constant in enum javax.websocket.CloseReason.CloseCodes
CloseReason - Class in javax.websocket
CloseReason(CloseReason.CloseCode, String) - Constructor for class javax.websocket.CloseReason
CloseReason.CloseCode - Interface in javax.websocket
CloseReason.CloseCodes - Enum in javax.websocket
configurator() - Element in annotation type javax.websocket.ClientEndpoint
configurator() - Element in annotation type javax.websocket.server.ServerEndpoint
configurator(ClientEndpointConfig.Configurator) - Method in class javax.websocket.ClientEndpointConfig.Builder
configurator(ServerEndpointConfig.Configurator) - Method in class javax.websocket.server.ServerEndpointConfig.Builder
Configurator() - Constructor for class javax.websocket.ClientEndpointConfig.Configurator
Configurator() - Constructor for class javax.websocket.server.ServerEndpointConfig.Configurator
connectToServer(Class<?>, URI) - Method in interface javax.websocket.WebSocketContainer
connectToServer(Class<? extends Endpoint>, ClientEndpointConfig, URI) - Method in interface javax.websocket.WebSocketContainer
  Creates a new connection to the WebSocket.
connectToServer(Object, URI) - Method in interface javax.websocket.WebSocketContainer
connectToServer(Endpoint, ClientEndpointConfig, URI) - Method in interface javax.websocket.WebSocketContainer
  Creates a new connection to the WebSocket.
ContainerProvider - Class in javax.websocket
  Use the `ServiceLoader` mechanism to provide instances of the WebSocket client container.
ContainerProvider() - Constructor for class javax.websocket.ContainerProvider
create() - Static method in class javax.websocket.ClientEndpointConfig.Builder
create(Class<?>, String) - Static method in class javax.websocket.server.ServerEndpointConfig.Builder

## D

decode(InputStream) - Method in interface javax.websocket.Decoder.BinaryStream
decode(Reader) - Method in interface javax.websocket.Decoder.TextStream
decode(String) - Method in interface javax.websocket.Decoder.Text
decode(ByteBuffer) - Method in interface javax.websocket.Decoder.Binary
DecodeException - Exception Class in javax.websocket
DecodeException(String, String) - Constructor for exception class javax.websocket.DecodeException
DecodeException(String, String, Throwable) - Constructor for exception class javax.websocket.DecodeException
DecodeException(ByteBuffer, String) - Constructor for exception class javax.websocket.DecodeException
DecodeException(ByteBuffer, String, Throwable) - Constructor for exception class javax.websocket.DecodeException
Decoder - Interface in javax.websocket
Decoder.Binary<T> - Interface in javax.websocket
Decoder.BinaryStream<T> - Interface in javax.websocket
Decoder.Text<T> - Interface in javax.websocket
Decoder.TextStream<T> - Interface in javax.websocket
decoders() - Element in annotation type javax.websocket.ClientEndpoint
decoders() - Element in annotation type javax.websocket.server.ServerEndpoint
decoders(List<Class<? extends Decoder>>) - Method in class javax.websocket.ClientEndpointConfig.Builder
decoders(List<Class<? extends Decoder>>) - Method in class javax.websocket.server.ServerEndpointConfig.Builder
DeploymentException - Exception Class in javax.websocket
DeploymentException(String) - Constructor for exception class javax.websocket.DeploymentException
DeploymentException(String, Throwable) - Constructor for exception class javax.websocket.DeploymentException
destroy() - Method in interface javax.websocket.Decoder
  Destroy the decoder.
destroy() - Method in interface javax.websocket.Encoder
  Destroy the decoder.

## E

encode(T) - Method in interface javax.websocket.Encoder.Binary
encode(T) - Method in interface javax.websocket.Encoder.Text
encode(T, OutputStream) - Method in interface javax.websocket.Encoder.BinaryStream
encode(T, Writer) - Method in interface javax.websocket.Encoder.TextStream
EncodeException - Exception Class in javax.websocket
EncodeException(Object, String) - Constructor for exception class javax.websocket.EncodeException
EncodeException(Object, String, Throwable) - Constructor for exception class javax.websocket.EncodeException
Encoder - Interface in javax.websocket
Encoder.Binary<T> - Interface in javax.websocket
Encoder.BinaryStream<T> - Interface in javax.websocket
Encoder.Text<T> - Interface in javax.websocket
Encoder.TextStream<T> - Interface in javax.websocket
encoders() - Element in annotation type javax.websocket.ClientEndpoint
encoders() - Element in annotation type javax.websocket.server.ServerEndpoint
encoders(List<Class<? extends Encoder>>) - Method in class javax.websocket.ClientEndpointConfig.Builder
encoders(List<Class<? extends Encoder>>) - Method in class javax.websocket.server.ServerEndpointConfig.Builder
Endpoint - Class in javax.websocket
Endpoint() - Constructor for class javax.websocket.Endpoint
EndpointConfig - Interface in javax.websocket
Extension - Interface in javax.websocket
Extension.Parameter - Interface in javax.websocket
extensions(List<Extension>) - Method in class javax.websocket.ClientEndpointConfig.Builder
extensions(List<Extension>) - Method in class javax.websocket.server.ServerEndpointConfig.Builder

## F

flushBatch() - Method in interface javax.websocket.RemoteEndpoint
  Flush any currently batched messages to the remote endpoint.

## G

getAnnotatedEndpointClasses(Set<Class<?>>) - Method in interface javax.websocket.server.ServerApplicationConfig
  Enables applications to filter the discovered classes annotated with `ServerEndpoint`.
getApplicationData() - Method in interface javax.websocket.PongMessage
  Get the payload of the Pong message.
getAsyncRemote() - Method in interface javax.websocket.Session
getBasicRemote() - Method in interface javax.websocket.Session
getBatchingAllowed() - Method in interface javax.websocket.RemoteEndpoint
  Obtains the current batching status of the endpoint.
getBytes() - Method in exception class javax.websocket.DecodeException
getCloseCode() - Method in class javax.websocket.CloseReason
getCloseCode(int) - Static method in enum javax.websocket.CloseReason.CloseCodes
getCode() - Method in interface javax.websocket.CloseReason.CloseCode
getCode() - Method in enum javax.websocket.CloseReason.CloseCodes
getConfigurator() - Method in interface javax.websocket.ClientEndpointConfig
getConfigurator() - Method in interface javax.websocket.server.ServerEndpointConfig
getContainer() - Method in class javax.websocket.ContainerProvider
getContainer() - Method in interface javax.websocket.Session
  Get the container that created this session.
getDecoders() - Method in interface javax.websocket.EndpointConfig
getDefaultAsyncSendTimeout() - Method in interface javax.websocket.WebSocketContainer
  Get the default timeout for sending a message asynchronously.
getDefaultMaxBinaryMessageBufferSize() - Method in interface javax.websocket.WebSocketContainer
  Get the default maximum buffer size for binary messages.
getDefaultMaxSessionIdleTimeout() - Method in interface javax.websocket.WebSocketContainer
  Get the current default session idle timeout.
getDefaultMaxTextMessageBufferSize() - Method in interface javax.websocket.WebSocketContainer
  Get the default maximum buffer size for text messages.
getEncoders() - Method in interface javax.websocket.EndpointConfig
getEndpointClass() - Method in interface javax.websocket.server.ServerEndpointConfig
getEndpointConfigs(Set<Class<? extends Endpoint>>) - Method in interface javax.websocket.server.ServerApplicationConfig
  Enables applications to filter the discovered implementations of `ServerEndpointConfig`.
getEndpointInstance(Class<T>) - Method in class javax.websocket.server.ServerEndpointConfig.Configurator
getException() - Method in class javax.websocket.SendResult
getExtensions() - Method in interface javax.websocket.ClientEndpointConfig
getExtensions() - Method in interface javax.websocket.server.ServerEndpointConfig
getHeaders() - Method in interface javax.websocket.HandshakeResponse
getHeaders() - Method in interface javax.websocket.server.HandshakeRequest
getHttpSession() - Method in interface javax.websocket.server.HandshakeRequest
  Get the HTTP Session object associated with this request.
getId() - Method in interface javax.websocket.Session
  Provides a unique identifier for the session.
getInstalledExtensions() - Method in interface javax.websocket.WebSocketContainer
  Get the installed extensions.
getMaxBinaryMessageBufferSize() - Method in interface javax.websocket.Session
  Get the current maximum buffer size for binary messages.
getMaxIdleTimeout() - Method in interface javax.websocket.Session
  Get the idle timeout for this session.
getMaxTextMessageBufferSize() - Method in interface javax.websocket.Session
  Get the maximum buffer size for text messages.
getMessageHandlers() - Method in interface javax.websocket.Session
getName() - Method in interface javax.websocket.Extension
getName() - Method in interface javax.websocket.Extension.Parameter
getNegotiatedExtensions() - Method in interface javax.websocket.Session
getNegotiatedExtensions(List<Extension>, List<Extension>) - Method in class javax.websocket.server.ServerEndpointConfig.Configurator
getNegotiatedSubprotocol() - Method in interface javax.websocket.Session
getNegotiatedSubprotocol(List<String>, List<String>) - Method in class javax.websocket.server.ServerEndpointConfig.Configurator
getObject() - Method in exception class javax.websocket.EncodeException
getOpenSessions() - Method in interface javax.websocket.Session
  Obtain the set of open sessions associated with the same local endpoint as this session.
getParameterMap() - Method in interface javax.websocket.server.HandshakeRequest
getParameters() - Method in interface javax.websocket.Extension
getPath() - Method in interface javax.websocket.server.ServerEndpointConfig
  Returns the path at which this WebSocket server endpoint has been registered.
getPathParameters() - Method in interface javax.websocket.Session
getPreferredSubprotocols() - Method in interface javax.websocket.ClientEndpointConfig
getProtocolVersion() - Method in interface javax.websocket.Session
getQueryString() - Method in interface javax.websocket.server.HandshakeRequest
getQueryString() - Method in interface javax.websocket.Session
getReasonPhrase() - Method in class javax.websocket.CloseReason
getRequestParameterMap() - Method in interface javax.websocket.Session
getRequestURI() - Method in interface javax.websocket.server.HandshakeRequest
getRequestURI() - Method in interface javax.websocket.Session
getSendStream() - Method in interface javax.websocket.RemoteEndpoint.Basic
getSendTimeout() - Method in interface javax.websocket.RemoteEndpoint.Async
  Obtain the timeout (in milliseconds) for sending a message asynchronously.
getSendWriter() - Method in interface javax.websocket.RemoteEndpoint.Basic
getSession() - Method in exception class javax.websocket.SessionException
getSubprotocols() - Method in interface javax.websocket.server.ServerEndpointConfig
getText() - Method in exception class javax.websocket.DecodeException
getUserPrincipal() - Method in interface javax.websocket.server.HandshakeRequest
getUserPrincipal() - Method in interface javax.websocket.Session
getUserProperties() - Method in interface javax.websocket.EndpointConfig
getUserProperties() - Method in interface javax.websocket.Session
getValue() - Method in interface javax.websocket.Extension.Parameter
getWebSocketContainer() - Static method in class javax.websocket.ContainerProvider
  Create a new container used to create outgoing WebSocket connections.
GOING_AWAY - Enum constant in enum javax.websocket.CloseReason.CloseCodes

## H

HandshakeRequest - Interface in javax.websocket.server
  Represents the HTTP request that asked to be upgraded to WebSocket.
HandshakeResponse - Interface in javax.websocket

## I

init(EndpointConfig) - Method in interface javax.websocket.Decoder
  Initialise the decoder.
init(EndpointConfig) - Method in interface javax.websocket.Encoder
  Initialise the encoder.
isOK() - Method in class javax.websocket.SendResult
isOpen() - Method in interface javax.websocket.Session
isSecure() - Method in interface javax.websocket.Session
isUserInRole(String) - Method in interface javax.websocket.server.HandshakeRequest

## J

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

## M

maxMessageSize() - Element in annotation type javax.websocket.OnMessage
MessageHandler - Interface in javax.websocket
MessageHandler.Partial<T> - Interface in javax.websocket
MessageHandler.Whole<T> - Interface in javax.websocket
modifyHandshake(ServerEndpointConfig, HandshakeRequest, HandshakeResponse) - Method in class javax.websocket.server.ServerEndpointConfig.Configurator

## N

NO_EXTENSION - Enum constant in enum javax.websocket.CloseReason.CloseCodes
NO_STATUS_CODE - Enum constant in enum javax.websocket.CloseReason.CloseCodes
NORMAL_CLOSURE - Enum constant in enum javax.websocket.CloseReason.CloseCodes
NOT_CONSISTENT - Enum constant in enum javax.websocket.CloseReason.CloseCodes

## O

onClose(Session, CloseReason) - Method in class javax.websocket.Endpoint
  Event that is triggered when a session has closed.
OnClose - Annotation Type in javax.websocket
onError(Session, Throwable) - Method in class javax.websocket.Endpoint
  Event that is triggered when a protocol error occurs.
OnError - Annotation Type in javax.websocket
onMessage(T) - Method in interface javax.websocket.MessageHandler.Whole
  Called when a whole message is available to be processed.
onMessage(T, boolean) - Method in interface javax.websocket.MessageHandler.Partial
  Called when part of a message is available to be processed.
OnMessage - Annotation Type in javax.websocket
onOpen(Session, EndpointConfig) - Method in class javax.websocket.Endpoint
  Event that is triggered when a new session starts.
OnOpen - Annotation Type in javax.websocket
onResult(SendResult) - Method in interface javax.websocket.SendHandler

## P

PathParam - Annotation Type in javax.websocket.server
  Used to annotate method parameters on POJO endpoints the the `ServerEndpoint` has been defined with a `ServerEndpoint.value()` that uses a URI template.
PongMessage - Interface in javax.websocket
  Represents a WebSocket Pong message and used by message handlers to enable applications to process the response to any Pings they send.
preferredSubprotocols(List<String>) - Method in class javax.websocket.ClientEndpointConfig.Builder
PROTOCOL_ERROR - Enum constant in enum javax.websocket.CloseReason.CloseCodes

## R

RemoteEndpoint - Interface in javax.websocket
RemoteEndpoint.Async - Interface in javax.websocket
RemoteEndpoint.Basic - Interface in javax.websocket
removeMessageHandler(MessageHandler) - Method in interface javax.websocket.Session
RESERVED - Enum constant in enum javax.websocket.CloseReason.CloseCodes

## S

SEC_WEBSOCKET_ACCEPT - Static variable in interface javax.websocket.HandshakeResponse
  Name of the WebSocket accept HTTP header.
SEC_WEBSOCKET_EXTENSIONS - Static variable in interface javax.websocket.server.HandshakeRequest
SEC_WEBSOCKET_KEY - Static variable in interface javax.websocket.server.HandshakeRequest
SEC_WEBSOCKET_PROTOCOL - Static variable in interface javax.websocket.server.HandshakeRequest
SEC_WEBSOCKET_VERSION - Static variable in interface javax.websocket.server.HandshakeRequest
sendBinary(ByteBuffer) - Method in interface javax.websocket.RemoteEndpoint.Async
  Send the message asynchronously, using the Future to signal to the client when the message has been sent.
sendBinary(ByteBuffer) - Method in interface javax.websocket.RemoteEndpoint.Basic
  Send the message, blocking until the message is sent.
sendBinary(ByteBuffer, boolean) - Method in interface javax.websocket.RemoteEndpoint.Basic
  Sends part of a binary message to the remote endpoint.
sendBinary(ByteBuffer, SendHandler) - Method in interface javax.websocket.RemoteEndpoint.Async
  Send the message asynchronously, using the SendHandler to signal to the client when the message has been sent.
SendHandler - Interface in javax.websocket
sendObject(Object) - Method in interface javax.websocket.RemoteEndpoint.Async
  Encodes object as a message and sends it asynchronously, using the Future to signal to the client when the message has been sent.
sendObject(Object) - Method in interface javax.websocket.RemoteEndpoint.Basic
  Encodes object as a message and sends it to the remote endpoint.
sendObject(Object, SendHandler) - Method in interface javax.websocket.RemoteEndpoint.Async
  Encodes object as a message and sends it asynchronously, using the SendHandler to signal to the client when the message has been sent.
sendPing(ByteBuffer) - Method in interface javax.websocket.RemoteEndpoint
  Send a ping message blocking until the message has been sent.
sendPong(ByteBuffer) - Method in interface javax.websocket.RemoteEndpoint
  Send a pong message blocking until the message has been sent.
SendResult - Class in javax.websocket
SendResult() - Constructor for class javax.websocket.SendResult
SendResult(Throwable) - Constructor for class javax.websocket.SendResult
sendText(String) - Method in interface javax.websocket.RemoteEndpoint.Async
  Send the message asynchronously, using the Future to signal to the client when the message has been sent.
sendText(String) - Method in interface javax.websocket.RemoteEndpoint.Basic
  Send the message, blocking until the message is sent.
sendText(String, boolean) - Method in interface javax.websocket.RemoteEndpoint.Basic
  Sends part of a text message to the remote endpoint.
sendText(String, SendHandler) - Method in interface javax.websocket.RemoteEndpoint.Async
  Send the message asynchronously, using the SendHandler to signal to the client when the message has been sent.
ServerApplicationConfig - Interface in javax.websocket.server
  Applications may provide an implementation of this interface to filter the discovered WebSocket endpoints that are deployed.
ServerContainer - Interface in javax.websocket.server
  Provides the ability to deploy endpoints programmatically.
ServerEndpoint - Annotation Type in javax.websocket.server
ServerEndpointConfig - Interface in javax.websocket.server
  Provides configuration information for WebSocket endpoints published to a server.
ServerEndpointConfig.Builder - Class in javax.websocket.server
ServerEndpointConfig.Configurator - Class in javax.websocket.server
SERVICE_RESTART - Enum constant in enum javax.websocket.CloseReason.CloseCodes
Session - Interface in javax.websocket
SessionException - Exception Class in javax.websocket
SessionException(String, Throwable, Session) - Constructor for exception class javax.websocket.SessionException
setAsyncSendTimeout(long) - Method in interface javax.websocket.WebSocketContainer
  Set the default timeout for sending a message asynchronously.
setBatchingAllowed(boolean) - Method in interface javax.websocket.RemoteEndpoint
  Enable or disable the batching of outgoing messages for this endpoint.
setDefaultMaxBinaryMessageBufferSize(int) - Method in interface javax.websocket.WebSocketContainer
  Set the default maximum buffer size for binary messages.
setDefaultMaxSessionIdleTimeout(long) - Method in interface javax.websocket.WebSocketContainer
  Set the default session idle timeout.
setDefaultMaxTextMessageBufferSize(int) - Method in interface javax.websocket.WebSocketContainer
  Set the default maximum buffer size for text messages.
setMaxBinaryMessageBufferSize(int) - Method in interface javax.websocket.Session
  Set the current maximum buffer size for binary messages.
setMaxIdleTimeout(long) - Method in interface javax.websocket.Session
  Set the idle timeout for this session.
setMaxTextMessageBufferSize(int) - Method in interface javax.websocket.Session
  Set the maximum buffer size for text messages.
setSendTimeout(long) - Method in interface javax.websocket.RemoteEndpoint.Async
  Set the timeout (in milliseconds) for sending a message asynchronously.
subprotocols() - Element in annotation type javax.websocket.ClientEndpoint
subprotocols() - Element in annotation type javax.websocket.server.ServerEndpoint
subprotocols(List<String>) - Method in class javax.websocket.server.ServerEndpointConfig.Builder

## T

TLS_HANDSHAKE_FAILURE - Enum constant in enum javax.websocket.CloseReason.CloseCodes
TOO_BIG - Enum constant in enum javax.websocket.CloseReason.CloseCodes
toString() - Method in class javax.websocket.CloseReason
TRY_AGAIN_LATER - Enum constant in enum javax.websocket.CloseReason.CloseCodes

## U

UNEXPECTED_CONDITION - Enum constant in enum javax.websocket.CloseReason.CloseCodes

## V

value() - Element in annotation type javax.websocket.server.PathParam
value() - Element in annotation type javax.websocket.server.ServerEndpoint
  URI or URI-template that the annotated class should be mapped to.
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.
VIOLATED_POLICY - Enum constant in enum javax.websocket.CloseReason.CloseCodes

## W

WebSocketContainer - Interface in javax.websocket
willDecode(String) - Method in interface javax.websocket.Decoder.Text
willDecode(ByteBuffer) - Method in interface javax.websocket.Decoder.Binary

A B C D E F G H I J M N O P R S T U V W
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form