Class CloseInfo


  • @Deprecated(since="2021-05-27")
    public class CloseInfo
    extends java.lang.Object
    Deprecated.
    • Constructor Detail

      • CloseInfo

        public CloseInfo()
        Deprecated.
      • CloseInfo

        public CloseInfo​(java.nio.ByteBuffer payload,
                         boolean validate)
        Deprecated.
        Parse the Close Frame payload.
        Parameters:
        payload - the raw close frame payload.
        validate - true if payload should be validated per WebSocket spec.
      • CloseInfo

        public CloseInfo​(Frame frame)
        Deprecated.
      • CloseInfo

        public CloseInfo​(Frame frame,
                         boolean validate)
        Deprecated.
      • CloseInfo

        public CloseInfo​(int statusCode)
        Deprecated.
      • CloseInfo

        public CloseInfo​(int statusCode,
                         java.lang.String reason)
        Deprecated.
        Create a CloseInfo, trimming the reason to CloseStatus.MAX_REASON_PHRASE UTF-8 bytes if needed.
        Parameters:
        statusCode - the status code
        reason - the raw reason code
    • Method Detail

      • asFrame

        public CloseFrame asFrame()
        Deprecated.
      • getReason

        public java.lang.String getReason()
        Deprecated.
      • getStatusCode

        public int getStatusCode()
        Deprecated.
      • isHarsh

        public boolean isHarsh()
        Deprecated.
      • isAbnormal

        public boolean isAbnormal()
        Deprecated.
      • toString

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