org.apache.wicket.protocol.ws.jetty
Class Jetty9WebSocketConnection
java.lang.Object
org.apache.wicket.protocol.ws.jetty.Jetty9WebSocketConnection
- All Implemented Interfaces:
- IWebSocketConnection
public class Jetty9WebSocketConnection
- extends Object
- implements IWebSocketConnection
A wrapper around Jetty9's native WebSocket.Connection
- Since:
- 6.2
|
Constructor Summary |
Jetty9WebSocketConnection(org.eclipse.jetty.websocket.core.api.WebSocketConnection connection)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jetty9WebSocketConnection
public Jetty9WebSocketConnection(org.eclipse.jetty.websocket.core.api.WebSocketConnection connection)
- Constructor.
- Parameters:
connection - the jetty websocket connection
isOpen
public boolean isOpen()
- Specified by:
isOpen in interface IWebSocketConnection
close
public void close(int code,
String reason)
- Specified by:
close in interface IWebSocketConnection
sendMessage
public IWebSocketConnection sendMessage(String message)
throws IOException
- Specified by:
sendMessage in interface IWebSocketConnection
- Throws:
IOException
sendMessage
public IWebSocketConnection sendMessage(byte[] message,
int offset,
int length)
throws IOException
- Specified by:
sendMessage in interface IWebSocketConnection
- Throws:
IOException
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.