A B C F G H I L M O P R S T V W

A

add(W) - Method in class org.glassfish.grizzly.websockets.WebSocketApplication
Add the WebSocket to the WebSocketApplication websockets list.

B

buffer - Variable in class org.glassfish.grizzly.websockets.frame.Frame
 

C

ClientWebSocketMeta - Class in org.glassfish.grizzly.websockets
Client-side WebSocket meta information.
ClientWebSocketMeta(URI) - Constructor for class org.glassfish.grizzly.websockets.ClientWebSocketMeta
Construct a client-side WebSocketMeta using URI.
ClientWebSocketMeta(URI, String, String, String, String, String, byte[], Boolean) - Constructor for class org.glassfish.grizzly.websockets.ClientWebSocketMeta
Construct a client-side WebSocketMeta.
close() - Method in interface org.glassfish.grizzly.websockets.WebSocket
Close the WebSocket.
close() - Method in class org.glassfish.grizzly.websockets.WebSocketBase
Close the WebSocket.
connect(URI, WebSocketClientHandler) - Method in class org.glassfish.grizzly.websockets.WebSocketConnectorHandler
Creates, initializes and connects WebSocket to the specific application.
connect(ClientWebSocketMeta, WebSocketClientHandler) - Method in class org.glassfish.grizzly.websockets.WebSocketConnectorHandler
Creates, initializes and connects WebSocket to the specific application.
connection - Variable in class org.glassfish.grizzly.websockets.WebSocketBase
 
create(boolean, Buffer) - Static method in class org.glassfish.grizzly.websockets.frame.ParseResult
Create a ParseResult object.
create(String) - Static method in class org.glassfish.grizzly.websockets.SecKey
Create a SecKey object basing on String representation, which includes spaces and chars.
createCloseFrame() - Static method in class org.glassfish.grizzly.websockets.frame.Frame
Create the close frame, after sending which the WebSocket communication will be closed.
createFrame(int, String) - Static method in class org.glassfish.grizzly.websockets.frame.Frame
Create a custom typed frame, which will contain a text, which will be encoded using UTF-8 charset.
createFrame(int, String, Charset) - Static method in class org.glassfish.grizzly.websockets.frame.Frame
Create a custom typed frame, which will contain a text, which will be encoded using given charset.
createFrame(int, Buffer) - Static method in class org.glassfish.grizzly.websockets.frame.Frame
Create a custom typed frame, which will contain a binary data.
createTextFrame(String) - Static method in class org.glassfish.grizzly.websockets.frame.Frame
Create the stream-based frame, which will contain UTF-8 string.
createWebSocket(Connection, ServerWebSocketMeta) - Method in class org.glassfish.grizzly.websockets.WebSocketApplication
Method is called before the WebSocketEngine will create a server-side WebSocket object, so application may return any customized subtype of WebSocket.
createWebSocket(Connection, ClientWebSocketMeta) - Method in class org.glassfish.grizzly.websockets.WebSocketClientHandler
Method is called before the WebSocketEngine will create a client-side WebSocket object, so the handler may return any customized subtype of WebSocket.

F

Frame - Class in org.glassfish.grizzly.websockets.frame
General abstraction, which represents WebSocket frame.
Frame(int, Buffer) - Constructor for class org.glassfish.grizzly.websockets.frame.Frame
Construct a frame using the given type and binary data.

G

generateSecKey() - Static method in class org.glassfish.grizzly.websockets.SecKey
Generates random security key.
generateServerKey(SecKey, SecKey, byte[]) - Static method in class org.glassfish.grizzly.websockets.SecKey
Generate server-side security key, which gets passed to the client during the handshake phase as part of message payload.
getAsBinary() - Method in class org.glassfish.grizzly.websockets.frame.Frame
Get the frame pyload as binary data.
getAsText() - Method in class org.glassfish.grizzly.websockets.frame.Frame
Get the frame pyload as text using UTF-8 charset.
getAsText(Charset) - Method in class org.glassfish.grizzly.websockets.frame.Frame
Get the frame pyload as text using given charset.
getCode() - Method in exception org.glassfish.grizzly.websockets.HandshakeException
Get the error code.
getConnection() - Method in interface org.glassfish.grizzly.websockets.WebSocket
Gets the WebSocket's underlying Connection.
getConnection() - Method in class org.glassfish.grizzly.websockets.WebSocketBase
Gets the WebSocket's underlying Connection.
getEngine() - Static method in class org.glassfish.grizzly.websockets.WebSocketEngine
Get WebSocketEngine instance (singleton).
getHandler() - Method in interface org.glassfish.grizzly.websockets.WebSocket
Returns the WebSocket's events handler.
getHandler() - Method in class org.glassfish.grizzly.websockets.WebSocketBase
Returns the WebSocket's events handler.
getHandshakeHeader() - Method in class org.glassfish.grizzly.websockets.WebSocketMeta
Returns websocket handshake header, represented as HttpHeader.
getHost() - Method in class org.glassfish.grizzly.websockets.ClientWebSocketMeta
Gets the WebSocket "Host" header value.
getKey() - Method in class org.glassfish.grizzly.websockets.ServerWebSocketMeta
Get the WebSocket key value transferred as a part of response payload.
getKey1() - Method in class org.glassfish.grizzly.websockets.ClientWebSocketMeta
Gets the WebSocket "Sec-WebSocket-Key1" header value.
getKey2() - Method in class org.glassfish.grizzly.websockets.ClientWebSocketMeta
Gets the WebSocket "Sec-WebSocket-Key2" header value.
getKey3() - Method in class org.glassfish.grizzly.websockets.ClientWebSocketMeta
Gets the WebSocket key3 value transferred as a payload.
getLocation() - Method in class org.glassfish.grizzly.websockets.ServerWebSocketMeta
Get the WebSocket "Sec-WebSocket-Location" header value
getMeta() - Method in interface org.glassfish.grizzly.websockets.WebSocket
Returns the WebSocket's meta data.
getMeta() - Method in class org.glassfish.grizzly.websockets.WebSocketBase
Returns the WebSocket's meta data.
getOrigin() - Method in class org.glassfish.grizzly.websockets.WebSocketMeta
Gets the WebSocket Origin header value.
getProtocol() - Method in class org.glassfish.grizzly.websockets.WebSocketMeta
Gets the WebSocket Sec-WebSocket-Protocol header value.
getRemainder() - Method in class org.glassfish.grizzly.websockets.frame.ParseResult
Get the parsing remainder Buffer.
getSecKey() - Method in class org.glassfish.grizzly.websockets.SecKey
Gets security key string representation, which includes chars and spaces.
getSecKeyValue() - Method in class org.glassfish.grizzly.websockets.SecKey
Gets original security key value (already divided by number of spaces).
getType() - Method in class org.glassfish.grizzly.websockets.frame.Frame
Get the frame type.
getURI() - Method in interface org.glassfish.grizzly.websockets.WebSocket
Gets the WebSocket URI.
getURI() - Method in class org.glassfish.grizzly.websockets.WebSocketBase
Gets the WebSocket URI.
getURI() - Method in class org.glassfish.grizzly.websockets.WebSocketMeta
Gets WebSocket URI.
getWebSockets() - Method in class org.glassfish.grizzly.websockets.WebSocketApplication
Returns a set of WebSockets, registered with the application.

H

handleClose(FilterChainContext) - Method in class org.glassfish.grizzly.websockets.WebSocketFilter
Method handles Grizzly Connection close phase.
handleConnect(FilterChainContext) - Method in class org.glassfish.grizzly.websockets.WebSocketFilter
Method handles Grizzly Connection connect phase.
handler - Variable in class org.glassfish.grizzly.websockets.WebSocketBase
 
handleRead(FilterChainContext) - Method in class org.glassfish.grizzly.websockets.WebSocketFilter
Handle Grizzly Connection read phase.
handleWrite(FilterChainContext) - Method in class org.glassfish.grizzly.websockets.WebSocketFilter
Handle Grizzly Connection write phase.
handshake(ClientWebSocketMeta) - Method in class org.glassfish.grizzly.websockets.WebSocketApplication
Method is called, when inital WebSocket handshake process was completed, but WebSocketApplication may perform additional validation.
handshake(W, ServerWebSocketMeta) - Method in class org.glassfish.grizzly.websockets.WebSocketClientHandler
Method is called, when inital WebSocket handshake process was completed, but WebSocketClientHandler may perform additional validation.
HandshakeException - Exception in org.glassfish.grizzly.websockets
Exception, which describes the error, occurred during the WebSocket handshake phase.
HandshakeException(String) - Constructor for exception org.glassfish.grizzly.websockets.HandshakeException
Construct a HandshakeException.
HandshakeException(int, String) - Constructor for exception org.glassfish.grizzly.websockets.HandshakeException
Construct a HandshakeException.

I

isClose() - Method in class org.glassfish.grizzly.websockets.frame.Frame
Returns true, if this frame is close frame, or false otherwise.
isComplete() - Method in class org.glassfish.grizzly.websockets.frame.ParseResult
Returns true, if parsing was completed, or false if more data is expected.
isConnected() - Method in interface org.glassfish.grizzly.websockets.WebSocket
Returns true if the WebSocket is connected and ready to operate, or false otherwise.
isConnected() - Method in class org.glassfish.grizzly.websockets.WebSocketBase
Returns true if the WebSocket is connected and ready to operate, or false otherwise.
isSecure() - Method in class org.glassfish.grizzly.websockets.WebSocketMeta
Returns true, if this WebSocket communication won't be secured, or false otherwise.

L

lookupApplication(String) - Method in class org.glassfish.grizzly.websockets.WebSocketEngine
Get the WebSocketApplication, associated with the passed name.

M

meta - Variable in class org.glassfish.grizzly.websockets.WebSocketBase
 

O

onAccept(W) - Method in class org.glassfish.grizzly.websockets.WebSocketApplication
Method is called, when new WebSocket gets accepted.
onClose(W) - Method in class org.glassfish.grizzly.websockets.WebSocketApplication
Method is called, when WebSocket gets closed.
onClose(W) - Method in interface org.glassfish.grizzly.websockets.WebSocketHandler
Method is called, when WebSocket gets closed.
onConnect(W) - Method in class org.glassfish.grizzly.websockets.WebSocketClientHandler
The method is called, when client-side WebSocket gets connected.
onMessage(W, Frame) - Method in interface org.glassfish.grizzly.websockets.WebSocketHandler
Method is called, when WebSocket receives a Frame.
org.glassfish.grizzly.websockets - package org.glassfish.grizzly.websockets
 
org.glassfish.grizzly.websockets.frame - package org.glassfish.grizzly.websockets.frame
 

P

parse(Buffer) - Method in class org.glassfish.grizzly.websockets.frame.Frame
Parses data from the Grizzly Buffer into this Frame
ParseResult - Class in org.glassfish.grizzly.websockets.frame
Frame parse result.

R

recycle() - Method in class org.glassfish.grizzly.websockets.frame.ParseResult
Recycle the object.
registerApplication(String, WebSocketApplication) - Method in class org.glassfish.grizzly.websockets.WebSocketEngine
Register the WebSocketApplication and associate it with the given name.
remove(W) - Method in class org.glassfish.grizzly.websockets.WebSocketApplication
Remove the WebSocket from the WebSocketApplication websockets list.

S

SecKey - Class in org.glassfish.grizzly.websockets
Class represents WebSocket's security key, used during the handshake phase.
send(Frame) - Method in interface org.glassfish.grizzly.websockets.WebSocket
Send a message, represented as WebSocket Frame.
send(Frame, CompletionHandler<Frame>) - Method in interface org.glassfish.grizzly.websockets.WebSocket
Send a message, represented as WebSocket Frame.
send(Frame) - Method in class org.glassfish.grizzly.websockets.WebSocketBase
Send a message, represented as WebSocket Frame.
send(Frame, CompletionHandler<Frame>) - Method in class org.glassfish.grizzly.websockets.WebSocketBase
Send a message, represented as WebSocket Frame.
serialize() - Method in class org.glassfish.grizzly.websockets.frame.Frame
Serializes this frame into a Grizzly Buffer.
ServerWebSocketMeta - Class in org.glassfish.grizzly.websockets
Server-side WebSocket meta information.
ServerWebSocketMeta(URI, String, String, String, byte[], Boolean) - Constructor for class org.glassfish.grizzly.websockets.ServerWebSocketMeta
Construct a server-side WebSocketMeta using URI and security key.
setHandshakeHeader(HttpHeader) - Method in class org.glassfish.grizzly.websockets.WebSocketMeta
Set the websocket handshake header, represented as HttpHeader.

T

text - Variable in class org.glassfish.grizzly.websockets.frame.Frame
 
toString() - Method in class org.glassfish.grizzly.websockets.ClientWebSocketMeta
 
toString() - Method in class org.glassfish.grizzly.websockets.frame.Frame
Returns the frame pyload as text using UTF-8 charset.
toString() - Method in class org.glassfish.grizzly.websockets.SecKey
toString() - Method in class org.glassfish.grizzly.websockets.ServerWebSocketMeta
The WebSocketMeta string description.
toString() - Method in class org.glassfish.grizzly.websockets.WebSocketMeta
The WebSocketMeta string description.
type - Variable in class org.glassfish.grizzly.websockets.frame.Frame
 

V

validateSecKey(String) - Static method in class org.glassfish.grizzly.websockets.SecKey
Validate security key, represented as string value (which includes chars and spaces).

W

WebSocket - Interface in org.glassfish.grizzly.websockets
General WebSocket unit interface.
WebSocketApplication<W extends WebSocket> - Class in org.glassfish.grizzly.websockets
Abstract server-side WebSocket application, which will handle application WebSockets events.
WebSocketApplication() - Constructor for class org.glassfish.grizzly.websockets.WebSocketApplication
 
WebSocketBase - Class in org.glassfish.grizzly.websockets
The WebSocket base implementation.
WebSocketBase(Connection, WebSocketMeta, WebSocketHandler) - Constructor for class org.glassfish.grizzly.websockets.WebSocketBase
Construct a WebSocketBase.
WebSocketClientHandler<W extends WebSocket> - Class in org.glassfish.grizzly.websockets
Abstract client-side WebSocketHandler, which will handle client WebSockets events.
WebSocketClientHandler() - Constructor for class org.glassfish.grizzly.websockets.WebSocketClientHandler
 
WebSocketConnectorHandler - Class in org.glassfish.grizzly.websockets
Client-side WebSocket connector handler, which is used to initiate client WebSocket connection.
WebSocketConnectorHandler(TCPNIOTransport) - Constructor for class org.glassfish.grizzly.websockets.WebSocketConnectorHandler
Construct a WebSocketConnectorHandler basing on the specific TCP Transport object.
WebSocketConnectorHandler(TCPNIOTransport, Processor) - Constructor for class org.glassfish.grizzly.websockets.WebSocketConnectorHandler
Construct a WebSocketConnectorHandler basing on the specific TCP Transport object.
WebSocketEngine - Class in org.glassfish.grizzly.websockets
WebSockets engine implementation (singlton), which handles WebSocketApplications registration, responsible for client and server handshake validation.
WebSocketEngine() - Constructor for class org.glassfish.grizzly.websockets.WebSocketEngine
 
WebSocketFilter - Class in org.glassfish.grizzly.websockets
WebSocket Filter implementation, which supposed to be placed into a FilterChain right after HTTP Filter: HttpServerFilter, HttpClientFilter; depending whether it's server or client side.
WebSocketFilter() - Constructor for class org.glassfish.grizzly.websockets.WebSocketFilter
 
WebSocketHandler<W extends WebSocket> - Interface in org.glassfish.grizzly.websockets
Base WebSocket events handler.
WebSocketMeta - Class in org.glassfish.grizzly.websockets
WebSocket meta information.
WebSocketMeta(URI) - Constructor for class org.glassfish.grizzly.websockets.WebSocketMeta
Construct a WebSocketMeta using URI.
WebSocketMeta(URI, String, String, Boolean) - Constructor for class org.glassfish.grizzly.websockets.WebSocketMeta
Construct a WebSocketMeta with the passed parameters.

A B C F G H I L M O P R S T V W

Copyright © 2010 Oracle Corpration. All Rights Reserved.