Top Description Fields Constructors Methods
org.glassfish.grizzly.websockets

public final Class WebSocketHolder

extends Object
Class Inheritance
Imports
org.glassfish.grizzly.Buffer, .Connection, .Grizzly, org.glassfish.grizzly.attributes.Attribute

WebSocketHolder object, which gets associated with the Grizzly org.glassfish.grizzly.Connection.

Field Summary

Modifier and TypeField and Description
public volatile WebSocketApplication
public volatile Buffer
public volatile ProtocolHandler
public volatile HandShake
public volatile WebSocket
private static final Attribute<WebSocketHolder>

Constructor Summary

AccessConstructor and Description
private
WebSocketHolder(final ProtocolHandler handler, final WebSocket socket)

Method Summary

Modifier and TypeMethod and Description
public static WebSocketHolder
get(final Connection<L> connection)

public static WebSocket
getWebSocket(Connection<L> connection)

public static boolean
isWebSocketInProgress(final Connection<L> connection)

public static WebSocketHolder
set(final Connection<L> connection, final ProtocolHandler handler, final WebSocket socket)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

applicationback to summary
public volatile WebSocketApplication application
bufferback to summary
public volatile Buffer buffer
handlerback to summary
public volatile ProtocolHandler handler
handshakeback to summary
public volatile HandShake handshake
webSocketback to summary
public volatile WebSocket webSocket
webSocketAttributeback to summary
private static final Attribute<WebSocketHolder> webSocketAttribute

Constructor Detail

WebSocketHolderback to summary
private WebSocketHolder(final ProtocolHandler handler, final WebSocket socket)

Method Detail

getback to summary
public static WebSocketHolder get(final Connection<L> connection)
getWebSocketback to summary
public static WebSocket getWebSocket(Connection<L> connection)
isWebSocketInProgressback to summary
public static boolean isWebSocketInProgress(final Connection<L> connection)
setback to summary
public static WebSocketHolder set(final Connection<L> connection, final ProtocolHandler handler, final WebSocket socket)