org.apache.wicket.protocol.ws.tomcat7
Class TomcatWebSocketConnection

java.lang.Object
  extended by org.apache.wicket.protocol.ws.api.AbstractWebSocketConnection
      extended by org.apache.wicket.protocol.ws.tomcat7.TomcatWebSocketConnection
All Implemented Interfaces:
IWebSocketConnection

public class TomcatWebSocketConnection
extends AbstractWebSocketConnection

* A wrapper around Tomcat's native WsOutbound

Since:
6.0

Constructor Summary
TomcatWebSocketConnection(org.apache.catalina.websocket.WsOutbound connection, AbstractWebSocketProcessor webSocketProcessor)
           
 
Method Summary
 void close(int code, String reason)
           
 boolean isOpen()
           
 TomcatWebSocketConnection sendMessage(byte[] message, int offset, int length)
           
 IWebSocketConnection sendMessage(String message)
           
 
Methods inherited from class org.apache.wicket.protocol.ws.api.AbstractWebSocketConnection
sendMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatWebSocketConnection

public TomcatWebSocketConnection(org.apache.catalina.websocket.WsOutbound connection,
                                 AbstractWebSocketProcessor webSocketProcessor)
Method Detail

isOpen

public boolean isOpen()

close

public void close(int code,
                  String reason)

sendMessage

public IWebSocketConnection sendMessage(String message)
                                 throws IOException
Throws:
IOException

sendMessage

public TomcatWebSocketConnection sendMessage(byte[] message,
                                             int offset,
                                             int length)
                                      throws IOException
Throws:
IOException


Copyright © 2006–2016 Apache Software Foundation. All rights reserved.