public class WebSocketConnectionD06 extends AbstractConnection implements WebSocketConnection
_endp| Constructor and Description |
|---|
WebSocketConnectionD06(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol) |
| 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()
Handle the connection.
|
static String |
hashKey(String key) |
boolean |
isIdle() |
boolean |
isSuspended() |
void |
onClose()
Called when the connection is closed
|
protected void |
onFrameHandshake() |
void |
onIdleExpired(long idleForMs)
Called when the connection idle timeout expires
|
void |
onInputShutdown() |
protected void |
onWebSocketOpen() |
void |
shutdown() |
getEndPoint, getTimeStamp, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTimeStamppublic WebSocketConnectionD06(WebSocket websocket, EndPoint endpoint, WebSocketBuffers buffers, long timestamp, int maxIdleTime, String protocol) throws IOException
IOExceptionpublic WebSocket.Connection getConnection()
getConnection in interface WebSocketConnectionpublic Connection handle() throws IOException
Connectionhandle in interface ConnectionIOExceptionpublic void onInputShutdown()
throws IOException
onInputShutdown in interface AsyncConnectionIOExceptionpublic boolean isIdle()
isIdle in interface Connectionpublic void onIdleExpired(long idleForMs)
ConnectiononIdleExpired in interface ConnectiononIdleExpired in class AbstractConnectionidleForMs - TODOpublic boolean isSuspended()
isSuspended in interface Connectionpublic void onClose()
ConnectiononClose 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 WebSocketConnectionpublic List<Extension> getExtensions()
getExtensions in interface WebSocketConnectionprotected void onFrameHandshake()
protected void onWebSocketOpen()
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.