Class ConnectionState


  • @Deprecated(since="2021-05-27")
    public class ConnectionState
    extends java.lang.Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    WebSocket Connection State.

    State can only go in one direction from HANDSHAKING to DISCONNECTED.

    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionState()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean canReadWebSocketFrames()
      Deprecated.
      Tests to see if state allows for reading of WebSocket frames
      boolean canWriteWebSocketFrames()
      Deprecated.
      Test to see if state allows writing of WebSocket frames
      boolean closing()
      Deprecated.
      The Local Endpoint wants to close.
      boolean disconnected()
      Deprecated.
      Final Terminal state indicating the connection is disconnected
      boolean opened()
      Deprecated.
      Requests that the connection migrate to OPENED state
      boolean opening()
      Deprecated.
      Requests that the connection migrate to OPENING state
      java.lang.String toString()
      Deprecated.
       
      boolean wasOpened()
      Deprecated.
      Tests to see if state got past the initial HANDSHAKING state
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConnectionState

        public ConnectionState()
        Deprecated.
    • Method Detail

      • canWriteWebSocketFrames

        public boolean canWriteWebSocketFrames()
        Deprecated.
        Test to see if state allows writing of WebSocket frames
        Returns:
        true if state allows for writing of websocket frames
      • canReadWebSocketFrames

        public boolean canReadWebSocketFrames()
        Deprecated.
        Tests to see if state allows for reading of WebSocket frames
        Returns:
        true if state allows for reading of websocket frames
      • wasOpened

        public boolean wasOpened()
        Deprecated.
        Tests to see if state got past the initial HANDSHAKING state
        Returns:
        true if the connection state was opened
      • opening

        public boolean opening()
        Deprecated.
        Requests that the connection migrate to OPENING state
        Returns:
        true if OPENING state attained
      • opened

        public boolean opened()
        Deprecated.
        Requests that the connection migrate to OPENED state
        Returns:
        true if OPENED state attained
      • closing

        public boolean closing()
        Deprecated.
        The Local Endpoint wants to close.
        Returns:
        true if this is the first local close
      • disconnected

        public boolean disconnected()
        Deprecated.
        Final Terminal state indicating the connection is disconnected
        Returns:
        true if disconnected reached for the first time
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object