- checkOrigin(String) - Method in class javax.net.websocket.DefaultServerConfiguration
-
Makes a check of the validity of the Origin header sent along with the opening
handshake.
- checkOrigin(String) - Method in interface javax.net.websocket.ServerConfiguration
-
Check the value of the Origin header (
See definition) the client passed during the opening
handshake.
- ClientConfiguration - Interface in javax.net.websocket
-
The ClientConfiguration is a special kind of endpoint configuration object that contains
web socket configuration information specific only to client endpoints.
- ClientContainer - Interface in javax.net.websocket
-
A ClientContainer is an implementation provided object that allows the developer to
initiate a web socket handshake from the provided endpoint.
- close() - Method in interface javax.net.websocket.Session
-
Close the current conversation with a normal status code and no reason phrase.
- close(CloseReason) - Method in interface javax.net.websocket.Session
-
Close the current conversation, giving a reason for the closure.
- CloseReason - Class in javax.net.websocket
-
A class encapsulating the reason why a web socket has been closed, or why it is being asked to
close.
- CloseReason(CloseReason.Code, String) - Constructor for class javax.net.websocket.CloseReason
-
Creates a reason for closing a web socket connection with the given
code and reason phrase.
- CloseReason.Code - Enum in javax.net.websocket
-
Enumeration of status codes for a web socket close.
- connectToServer(Endpoint, ClientConfiguration) - Method in interface javax.net.websocket.ClientContainer
-
Connect the supplied endpoint to its server using the supplied handshake
parameters
- createBinaryContinuationFrame(String, boolean) - Static method in class javax.net.websocket.extensions.FrameBuilder
-
Create a partial binary frame with the given string fragment, and indication of whether this is the last or not
of a series.
- createBinaryFrame(String) - Static method in class javax.net.websocket.extensions.FrameBuilder
-
Create a binary data frame with the given bytes.
- createIncomingFrameHandler(FrameHandler) - Method in interface javax.net.websocket.extensions.Extension
-
The FrameHandler that is invoked for any incoming Frames.
- createOutgoingFrameHandler(FrameHandler) - Method in interface javax.net.websocket.extensions.Extension
-
The FrameHandler that is invoked for any outgoing Frames.
- createTextContinuationFrame(String, boolean) - Static method in class javax.net.websocket.extensions.FrameBuilder
-
Create a partial text frame with the given string fragment, and indication of whether this is the last or not
of a series.
- createTextFrame(String) - Static method in class javax.net.websocket.extensions.FrameBuilder
-
Create a text frame with the given string data.
- getActiveSessions() - Method in interface javax.net.websocket.ClientContainer
-
Return an unordered collection of the currently active web socket sessions.
- getApplicationData() - Method in interface javax.net.websocket.extensions.Frame.Control.Ping
-
The application data within the Ping frame.
- getApplicationData() - Method in interface javax.net.websocket.extensions.Frame.Control.Pong
-
The application data within the Pong frame.
- getBytes() - Method in exception javax.net.websocket.DecodeException
-
- getCloseCode() - Method in interface javax.net.websocket.extensions.Frame.Control.Close
-
The close code for this close.
- getCloseStatus() - Method in interface javax.net.websocket.Session
-
If this session is no longer active, returns the reason for closure.
- getCode() - Method in enum javax.net.websocket.CloseReason.Code
-
Return the code number of this status code.
- getData() - Method in interface javax.net.websocket.extensions.Frame.Data.Binary
-
The application data in the binary frame.
- getDecoders() - Method in class javax.net.websocket.DefaultClientConfiguration
-
Assign the list of decoders this client will use.
- getDecoders() - Method in class javax.net.websocket.DefaultServerConfiguration
-
Return the Decoder implementations configured.
- getDecoders() - Method in interface javax.net.websocket.EndpointConfiguration
-
Return the Decoder implementations configured.
- getEncoders() - Method in class javax.net.websocket.DefaultClientConfiguration
-
Assign the list of encoders this client will use.
- getEncoders() - Method in class javax.net.websocket.DefaultServerConfiguration
-
Return the Decoder implementations configured.
- getEncoders() - Method in interface javax.net.websocket.EndpointConfiguration
-
Return the Encoder implementations configured.
- getException() - Method in class javax.net.websocket.SendResult
-
The problem sending the message.
- getExtensionData() - Method in interface javax.net.websocket.extensions.Frame.Data
-
Return data used by a web socket extension in this frame.
- getExtensions() - Method in interface javax.net.websocket.ClientConfiguration
-
Return the list of all the extensions that this client supports.
- getExtensions() - Method in class javax.net.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.net.websocket.HandshakeRequest
-
Return the list of Http Headers that came with the handshake request.
- getHeaders() - Method in interface javax.net.websocket.HandshakeResponse
-
Return the list of Http Headers that came with the handshake request.
- getInactiveTime() - Method in interface javax.net.websocket.Session
-
Return the number of seconds since the underlying connection had any activity.
- getMaxBinaryMessageBufferSize() - Method in interface javax.net.websocket.ClientContainer
-
Returns the maximum size of binary message in number of bytes that this container
will buffer.
- getMaximumMessageSize() - Method in interface javax.net.websocket.Session
-
The maximum total length of messages, text or binary, that this Session can handle.
- getMaxSessionIdleTimeout() - Method in interface javax.net.websocket.ClientContainer
-
Return the maximum time in seconds that a web socket session may be idle before
the container may close it.
- getMaxTextMessageBufferSize() - Method in interface javax.net.websocket.ClientContainer
-
Sets the maximum size of text message in number of bytes that this container
will buffer.
- getMessageHandlers() - Method in interface javax.net.websocket.Session
-
Return an unmodifiable copy of the set of MessageHandlers for this Session.
- getName() - Method in interface javax.net.websocket.extensions.Extension
-
The name of this extension.
- getNegotiatedExtensions(List<Extension>) - Method in class javax.net.websocket.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.
- getNegotiatedExtensions(List<Extension>) - Method in interface javax.net.websocket.ServerConfiguration
-
Return the ordered list of extensions that this server will support given the requested
extension list passed in.
- getNegotiatedExtensions() - Method in interface javax.net.websocket.Session
-
Return the list of extensions currently in use for this conversation.
- getNegotiatedSubprotocol(List<String>) - Method in class javax.net.websocket.DefaultServerConfiguration
-
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(List<String>) - Method in interface javax.net.websocket.ServerConfiguration
-
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.net.websocket.Session
-
Return the sub protocol agreed during the websocket handshake for this conversation.
- getNextHandler() - Method in class javax.net.websocket.extensions.FrameHandler
-
The next handler in the handler chain.
- getObject() - Method in exception javax.net.websocket.EncodeException
-
- getParameters() - Method in interface javax.net.websocket.extensions.Extension
-
The map name value pairs that are the web socket extension parameters for this extension.
- getPreferredSubprotocols() - Method in interface javax.net.websocket.ClientConfiguration
-
The ordered list of sub protocols a client endpoint would like to use.
- getPreferredSubprotocols() - Method in class javax.net.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.net.websocket.Session
-
Returns the version of the websocket protocol currently being used.
- getReasonPhrase() - Method in interface javax.net.websocket.extensions.Frame.Control.Close
-
The reason phrase for this close.
- getRemote() - Method in interface javax.net.websocket.Session
-
Return a reference to the RemoteEndpoint object representing the other end of this conversation.
- getRemote(Class) - Method in interface javax.net.websocket.Session
-
Return a reference to the RemoteEndpoint that can send messages in the form of objects of class c.
- getRequestURI() - Method in interface javax.net.websocket.HandshakeRequest
-
Return the request URI of the handshake request.
- getRequestURI() - Method in interface javax.net.websocket.Session
-
Return the URI that this session was opened under.
- getSendStream() - Method in interface javax.net.websocket.RemoteEndpoint
-
- getSendWriter() - Method in interface javax.net.websocket.RemoteEndpoint
-
- getSession() - Method in interface javax.net.websocket.Session
-
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.net.websocket.DecodeException
-
- getText() - Method in interface javax.net.websocket.extensions.Frame.Data.Text
-
Return the textual data in this text frame.
- getTimeout() - Method in interface javax.net.websocket.Session
-
Return the number of seconds before this conversation will 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.net.websocket.HandshakeRequest
-
Return the authenticated user or null if no user is authenticated for this handshake.
- matchesURI(URI) - Method in class javax.net.websocket.DefaultServerConfiguration
-
A URI is a match if and only if it is an exact match (.equals()) the URI used
to create this configuration.
- matchesURI(URI) - Method in interface javax.net.websocket.ServerConfiguration
-
Answers whether the current configuration matches the given URI.
- MessageHandler - Interface in javax.net.websocket
-
Developers implement MessageHandlers in order to receive incoming messages
during a web socket conversation.
- MessageHandler.AsyncBinary - Interface in javax.net.websocket
-
This kind of handler is called to process for binary messages which may arrive in multiple parts.
- MessageHandler.AsyncText - Interface in javax.net.websocket
-
This kind of handler is called to process for text messages which may arrive in multiple parts.
- MessageHandler.Binary - Interface in javax.net.websocket
-
This kind of listener listens for binary messages.
- MessageHandler.BinaryStream - Interface in javax.net.websocket
-
This kind of handler is called when a new binary message arrives that is to be read using a blocking stream.
- MessageHandler.CharacterStream - Interface in javax.net.websocket
-
This kind of handler is called when a new text message arrives that is to be read using a blocking stream.
- MessageHandler.DecodedObject<T> - Interface in javax.net.websocket
-
This kind of listener listens for messages that the container knows how to decode into an object of type T.
- MessageHandler.Pong - Interface in javax.net.websocket
-
This handler is called back by the container when the container receives a pong message.
- MessageHandler.Text - Interface in javax.net.websocket
-
This kind of listener listens for text messages.
- modifyHandshake(HandshakeRequest, HandshakeResponse) - Method in class javax.net.websocket.DefaultServerConfiguration
-
The default server configuration does not make any changes to the response.
- modifyHandshake(HandshakeRequest, HandshakeResponse) - Method in interface javax.net.websocket.ServerConfiguration
-
Called by the container after it has formulated a handshake response resulting from
a well-formed handshake request.
- OK - Variable in class javax.net.websocket.SendResult
-
The message was transmitted ok.
- onClose(Session) - Method in class javax.net.websocket.Endpoint
-
Developers may implement this method to be notified when an active conversation
has just been terminated.
- onError(Throwable, Session) - Method in class javax.net.websocket.Endpoint
-
Developers may implement this method when a web socket connection, represented by the session,
creates some kind of error that is not modeled in the web socket protocol.
- onMessage(byte[]) - Method in interface javax.net.websocket.MessageHandler.Binary
-
Called when the binary message has been fully received.
- onMessage(InputStream) - Method in interface javax.net.websocket.MessageHandler.BinaryStream
-
This method is called when a new binary message has begun to arrive.
- onMessage(Reader) - Method in interface javax.net.websocket.MessageHandler.CharacterStream
-
This method is called when a new text message has begun to arrive.
- onMessage(T) - Method in interface javax.net.websocket.MessageHandler.DecodedObject
-
Called when the container receives a message that it has been able to decode
into an object of type T.
- onMessage(String) - Method in interface javax.net.websocket.MessageHandler.Text
-
Called when the text message has been fully received.
- onMessagePart(byte[], boolean) - Method in interface javax.net.websocket.MessageHandler.AsyncBinary
-
Called when part of a binary message has been received.
- onMessagePart(String, boolean) - Method in interface javax.net.websocket.MessageHandler.AsyncText
-
Called when part of a text message has been received.
- onOpen(Session) - Method in class javax.net.websocket.Endpoint
-
Developers may implement this method to be notified when a new conversation has
just begun.
- onPong(byte[]) - Method in interface javax.net.websocket.MessageHandler.Pong
-
Called when the container receives a pong message containing the given application data.
- sendBytes(byte[]) - Method in interface javax.net.websocket.RemoteEndpoint
-
Send a binary message, returning when all of the message has been transmitted.
- sendBytes(byte[], SendHandler) - Method in interface javax.net.websocket.RemoteEndpoint
-
Initiates the asynchronous transmission of a binary message.
- SendHandler - Interface in javax.net.websocket
-
A simple callback object for asynchronous sending of web socket messages.
- sendObject(T) - Method in interface javax.net.websocket.RemoteEndpoint
-
Sends a custom developer object, blocking until it has been transmitted.
- sendObject(T, SendHandler) - Method in interface javax.net.websocket.RemoteEndpoint
-
Initiates the transmission of a custom developer object.
- sendPartialBytes(byte[], boolean) - Method in interface javax.net.websocket.RemoteEndpoint
-
Send a binary message, blocking until all of the message has been transmitted.
- sendPartialString(String, boolean) - Method in interface javax.net.websocket.RemoteEndpoint
-
- sendPing(byte[]) - Method in interface javax.net.websocket.RemoteEndpoint
-
Send a Ping message containing the given application data to the remote endpoint.
- sendPong(byte[]) - Method in interface javax.net.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.net.websocket
-
The result of asynchronously sending a web socket message.
- SendResult() - Constructor for class javax.net.websocket.SendResult
-
- sendString(String) - Method in interface javax.net.websocket.RemoteEndpoint
-
Send a text message, blocking until all of the message has been transmitted.
- sendString(String, SendHandler) - Method in interface javax.net.websocket.RemoteEndpoint
-
Initiates the asynchronous transmission of a text message.
- sentOK() - Method in class javax.net.websocket.SendResult
-
Determines if this result is ok or not.
- ServerConfiguration - Interface in javax.net.websocket
-
The ServerConfiguration is a special kind of endpoint configuration object that contains
web socket configuration information specific only to server endpoints.
- ServerContainer - Interface in javax.net.websocket
-
The ServerContainer is an implementation provided object that, in addition
to being able to initiate web socket connections (client), can register endpoints
that can handle incoming connection requests.
- Session - Interface in javax.net.websocket
-
A Web Socket session represents a conversation between two web socket endpoints.
- setDecoders(List<Decoder>) - Method in class javax.net.websocket.DefaultClientConfiguration
-
Assign the list of decoders this client will use.
- setDecoders(List<Decoder>) - Method in class javax.net.websocket.DefaultServerConfiguration
-
Sets all the decoders that this configuration will support.
- setEncoders(List<Encoder>) - Method in class javax.net.websocket.DefaultClientConfiguration
-
Assign the list of encoders this client will use.
- setEncoders(List<Encoder>) - Method in class javax.net.websocket.DefaultServerConfiguration
-
- setExtensions(List<Extension>) - Method in class javax.net.websocket.DefaultClientConfiguration
-
Assign the List of preferred subprotocols that this client would like to
use.
- setExtensions(List<Extension>) - Method in class javax.net.websocket.DefaultServerConfiguration
-
Sets all the extensions that this configuration will support.
- setMaxBinaryMessageBufferSize(long) - Method in interface javax.net.websocket.ClientContainer
-
Sets the maximum size of binary message in number of bytes that this container
will buffer.
- setMaximumMessageSize(long) - Method in interface javax.net.websocket.Session
-
Sets the maximum total length of messages, text or binary, that this Session can handle.
- setMaxSessionIdleTimeout(long) - Method in interface javax.net.websocket.ClientContainer
-
Sets the maximum time in seconds that a web socket session may be idle before
the container may close it.
- setMaxTextMessageBufferSize(long) - Method in interface javax.net.websocket.ClientContainer
-
Returns the maximum size of text message in number of bytes that this container
will buffer.
- setPreferredSubprotocols(List<String>) - Method in class javax.net.websocket.DefaultClientConfiguration
-
Assign the List of preferred subprotocols that this client would like to
use.
- setResult(SendResult) - Method in interface javax.net.websocket.SendHandler
-
Called once the message has been transmitted.
- setSubprotocols(List<String>) - Method in class javax.net.websocket.DefaultServerConfiguration
-
Sets all the subprotocols that this configuration will support.
- setTimeout(long) - Method in interface javax.net.websocket.Session
-
Set the number of seconds before this conversation will be closed by the
container if it is inactive, ie no messages are either sent or received.