org.eclipse.jetty.websocket
Class WebSocketConnection

java.lang.Object
  extended by org.eclipse.jetty.websocket.WebSocketConnection
All Implemented Interfaces:
Connection, WebSocket.Outbound

public class WebSocketConnection
extends java.lang.Object
implements Connection, WebSocket.Outbound


Constructor Summary
WebSocketConnection(WebSocket websocket, EndPoint endpoint, WebSocketBuffers buffers, long timestamp, long maxIdleTime)
           
 
Method Summary
 void disconnect()
           
 void fill(Buffer buffer)
           
 long getTimeStamp()
           
 Connection handle()
           
 boolean isIdle()
           
 boolean isOpen()
           
 boolean isSuspended()
           
 void sendMessage(byte frame, byte[] content)
           
 void sendMessage(byte frame, byte[] content, int offset, int length)
           
 void sendMessage(byte frame, java.lang.String content)
           
 void sendMessage(java.lang.String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSocketConnection

public WebSocketConnection(WebSocket websocket,
                           EndPoint endpoint,
                           WebSocketBuffers buffers,
                           long timestamp,
                           long maxIdleTime)
Method Detail

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.