org.eclipse.jetty.websocket
Class WebSocketConnectionD06
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.websocket.WebSocketConnectionD06
- All Implemented Interfaces:
- Connection, AsyncConnection, WebSocketConnection
public class WebSocketConnectionD06
- extends AbstractConnection
- implements WebSocketConnection
WebSocketConnectionD06
public WebSocketConnectionD06(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol)
throws IOException
- Throws:
IOException
getConnection
public WebSocket.Connection getConnection()
- Specified by:
getConnection
in interface WebSocketConnection
handle
public Connection handle()
throws IOException
- Description copied from interface:
Connection
- Handle the connection.
- Specified by:
handle
in interface Connection
- Returns:
- The Connection to use for the next handling of the connection.
This allows protocol upgrades and support for CONNECT.
- Throws:
IOException
onInputShutdown
public void onInputShutdown()
throws IOException
- Specified by:
onInputShutdown
in interface AsyncConnection
- Throws:
IOException
isIdle
public boolean isIdle()
- Specified by:
isIdle
in interface Connection
onIdleExpired
public void onIdleExpired()
- Description copied from interface:
Connection
- Called when the connection idle timeout expires
- Specified by:
onIdleExpired
in interface Connection
- Overrides:
onIdleExpired
in class AbstractConnection
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interface Connection
onClose
public void onClose()
- Description copied from interface:
Connection
- Called when the connection is closed
- Specified by:
onClose
in interface Connection
closeIn
public void closeIn(int code,
String message)
closeOut
public void closeOut(int code,
String message)
fillBuffersFrom
public void fillBuffersFrom(Buffer buffer)
- Specified by:
fillBuffersFrom
in interface WebSocketConnection
getExtensions
public List<Extension> getExtensions()
- Specified by:
getExtensions
in interface WebSocketConnection
handshake
public void handshake(HttpServletRequest request,
HttpServletResponse response,
String subprotocol)
throws IOException
- Specified by:
handshake
in interface WebSocketConnection
- Throws:
IOException
hashKey
public static String hashKey(String key)
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.