Class XmppWebSocket
- java.lang.Object
-
- org.jivesoftware.openfire.websocket.XmppWebSocket
-
@WebSocket public class XmppWebSocket extends Object
This class handles all WebSocket events for the corresponding connection with a remote peer. Specifically the XMPP session is managed concurrently with the WebSocket session, including all framing and authentication requirements. Packets received from the remote peer are forwarded as needed via aSessionPacketRouter
, and packets destined for the remote peer are forwarded via the correspondingRemoteEndpoint
.
-
-
Constructor Summary
Constructors Constructor Description XmppWebSocket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onClose(int statusCode, String reason)
void
onConnect(org.eclipse.jetty.websocket.api.Session session)
void
onError(Throwable error)
void
onTextMethod(String stanza)
void
setXmppSession(LocalClientSession session)
-
-
-
Method Detail
-
onConnect
@OnWebSocketConnect public void onConnect(org.eclipse.jetty.websocket.api.Session session)
-
onClose
@OnWebSocketClose public void onClose(int statusCode, String reason)
-
onTextMethod
@OnWebSocketMessage public void onTextMethod(String stanza)
-
onError
@OnWebSocketError public void onError(Throwable error)
-
setXmppSession
public void setXmppSession(LocalClientSession session)
-
-