public class WebSocketConnectionD08 extends AbstractConnection implements WebSocketConnection
_endp| Constructor and Description |
|---|
WebSocketConnectionD08(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol,
List<Extension> extensions,
int draft) |
WebSocketConnectionD08(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol,
List<Extension> extensions,
int draft,
MaskGen maskgen) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeIn(int code,
String message) |
void |
closeOut(int code,
String message) |
void |
fillBuffersFrom(Buffer buffer) |
WebSocket.Connection |
getConnection() |
List<Extension> |
getExtensions() |
Connection |
handle() |
static String |
hashKey(String key) |
boolean |
isIdle() |
boolean |
isSuspended() |
void |
onClose() |
protected void |
onFrameHandshake() |
void |
onIdleExpired(long idleForMs) |
void |
onInputShutdown() |
protected void |
onWebSocketOpen() |
void |
shutdown() |
String |
toString() |
getEndPoint, getTimeStampclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTimeStamppublic WebSocketConnectionD08(WebSocket websocket, EndPoint endpoint, WebSocketBuffers buffers, long timestamp, int maxIdleTime, String protocol, List<Extension> extensions, int draft) throws IOException
IOExceptionpublic WebSocketConnectionD08(WebSocket websocket, EndPoint endpoint, WebSocketBuffers buffers, long timestamp, int maxIdleTime, String protocol, List<Extension> extensions, int draft, MaskGen maskgen) throws IOException
IOExceptionpublic WebSocket.Connection getConnection()
getConnection in interface WebSocketConnectionpublic List<Extension> getExtensions()
getExtensions in interface WebSocketConnectionpublic Connection handle() throws IOException
handle in interface ConnectionIOExceptionpublic void onInputShutdown()
throws IOException
onInputShutdown in interface AsyncConnectionIOExceptionpublic boolean isIdle()
isIdle in interface Connectionpublic void onIdleExpired(long idleForMs)
onIdleExpired in interface ConnectiononIdleExpired in class AbstractConnectionpublic boolean isSuspended()
isSuspended in interface Connectionpublic void onClose()
onClose in interface Connectionpublic void closeIn(int code,
String message)
public void closeOut(int code,
String message)
public void shutdown()
shutdown in interface WebSocketConnectionpublic void fillBuffersFrom(Buffer buffer)
fillBuffersFrom in interface WebSocketConnectionprotected void onFrameHandshake()
protected void onWebSocketOpen()
public String toString()
toString in class AbstractConnectionCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.