public class WebSocketConnectionD06 extends AbstractConnection implements WebSocketConnection
_endp| Constructor and Description |
|---|
WebSocketConnectionD06(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
java.lang.String protocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeIn(int code,
java.lang.String message) |
void |
closeOut(int code,
java.lang.String message) |
void |
fillBuffersFrom(Buffer buffer) |
WebSocket.Connection |
getConnection() |
java.util.List<Extension> |
getExtensions() |
Connection |
handle()
Handle the connection.
|
static java.lang.String |
hashKey(java.lang.String key) |
boolean |
isIdle() |
boolean |
isSuspended()
The semantic of this method is to return true to indicate interest in further reads,
or false otherwise, but it is misnamed and should be really called
isReadInterested(). |
void |
onClose()
Called after 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, java.lang.String protocol) throws java.io.IOException
java.io.IOExceptionpublic WebSocket.Connection getConnection()
getConnection in interface WebSocketConnectionpublic Connection handle() throws java.io.IOException
Connectionhandle in interface Connectionjava.io.IOException - if the handling of I/O operations failpublic void onInputShutdown()
throws java.io.IOException
onInputShutdown in interface AsyncConnectionjava.io.IOExceptionpublic boolean isIdle()
isIdle in interface ConnectionConnection.onIdleExpired(long)public void onIdleExpired(long idleForMs)
ConnectiononIdleExpired in interface ConnectiononIdleExpired in class AbstractConnectionidleForMs - how long the connection has been idleConnection.isIdle()public boolean isSuspended()
ConnectionThe semantic of this method is to return true to indicate interest in further reads,
or false otherwise, but it is misnamed and should be really called isReadInterested().
isSuspended in interface Connectionpublic void onClose()
ConnectiononClose in interface Connectionpublic void closeIn(int code,
java.lang.String message)
public void closeOut(int code,
java.lang.String message)
public void shutdown()
shutdown in interface WebSocketConnectionpublic void fillBuffersFrom(Buffer buffer)
fillBuffersFrom in interface WebSocketConnectionpublic java.util.List<Extension> getExtensions()
getExtensions in interface WebSocketConnectionprotected void onFrameHandshake()
protected void onWebSocketOpen()
public static java.lang.String hashKey(java.lang.String key)
Copyright © 2013 FuseSource, Corp.. All Rights Reserved.