Class WebSocketConnection

    • Method Detail

      • open

        public final CompletionStage<Void> open​(SessionOpen sessionOpen)
        Description copied from interface: Connection
        Opens the XML stream to the peer entity.
        Parameters:
        sessionOpen - The session open information.
        Returns:
        The completion stage, which is complete, if the session has been opened, i.e. the element has been sent.
      • send

        public final CompletionStage<Void> send​(StreamElement streamElement)
        Description copied from interface: Connection
        Sends an element to the peer entity. This is basically a short cut for write + flush.
        Parameters:
        streamElement - The element.
        Returns:
        The future representing the send process and which allows to cancel it.
      • isSecure

        public final boolean isSecure()
        Description copied from interface: Connection
        Indicates whether this connection is secured by TLS/SSL.
        Returns:
        True, if this connection is secured.
      • closeFuture

        public final CompletionStage<Void> closeFuture()
        Description copied from interface: Connection
        Returns a future which is complete, when the connection is closed.
        Returns:
        The close future.