org.eclipse.jetty.websocket
Class WebSocketConnection
java.lang.Object
org.eclipse.jetty.websocket.WebSocketConnection
- All Implemented Interfaces:
- Connection, WebSocket.Outbound
public class WebSocketConnection
- extends java.lang.Object
- implements Connection, WebSocket.Outbound
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebSocketConnection
public WebSocketConnection(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
long maxIdleTime)
handle
public Connection handle()
throws java.io.IOException
- Specified by:
handle in interface Connection
- Throws:
java.io.IOException
isOpen
public boolean isOpen()
- Specified by:
isOpen in interface WebSocket.Outbound
isIdle
public boolean isIdle()
- Specified by:
isIdle in interface Connection
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended in interface Connection
getTimeStamp
public long getTimeStamp()
- Specified by:
getTimeStamp in interface Connection
sendMessage
public void sendMessage(java.lang.String content)
throws java.io.IOException
- Specified by:
sendMessage in interface WebSocket.Outbound
- Throws:
java.io.IOException
sendMessage
public void sendMessage(byte frame,
java.lang.String content)
throws java.io.IOException
- Specified by:
sendMessage in interface WebSocket.Outbound
- Throws:
java.io.IOException
sendMessage
public void sendMessage(byte frame,
byte[] content)
throws java.io.IOException
- Specified by:
sendMessage in interface WebSocket.Outbound
- Throws:
java.io.IOException
sendMessage
public void sendMessage(byte frame,
byte[] content,
int offset,
int length)
throws java.io.IOException
- Specified by:
sendMessage in interface WebSocket.Outbound
- Throws:
java.io.IOException
disconnect
public void disconnect()
- Specified by:
disconnect in interface WebSocket.Outbound
fill
public void fill(Buffer buffer)
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.