Package rocks.xmpp.websocket.net
Class WebSocketConnection
- java.lang.Object
-
- rocks.xmpp.core.net.AbstractConnection
-
- rocks.xmpp.websocket.net.WebSocketConnection
-
- All Implemented Interfaces:
AutoCloseable,Connection,StreamHandler
- Direct Known Subclasses:
JakartaWebSocketConnection
public abstract class WebSocketConnection extends AbstractConnection
Abstract base class for WebSocket connections.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>closeFuture()booleanisSecure()CompletionStage<Void>open(SessionOpen sessionOpen)CompletionStage<Void>send(StreamElement streamElement)-
Methods inherited from class rocks.xmpp.core.net.AbstractConnection
close, closeAsync, closeAsync, getConfiguration, getStreamId, handleElement, isClosed, isUsingAcknowledgements
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface rocks.xmpp.core.net.Connection
flush, getRemoteAddress, write
-
-
-
-
Method Detail
-
open
public final CompletionStage<Void> open(SessionOpen sessionOpen)
-
send
public final CompletionStage<Void> send(StreamElement streamElement)
-
isSecure
public final boolean isSecure()
-
closeFuture
public final CompletionStage<Void> closeFuture()
-
-