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()
Handle the connection.
|
static String |
hashKey(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() |
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
Connectionhandle in interface ConnectionIOException - if the handling of I/O operations failpublic void onInputShutdown()
throws IOException
onInputShutdown in interface AsyncConnectionIOExceptionpublic 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,
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-2015 Mort Bay Consulting. All Rights Reserved.