Class ConnectionRejected


  • public class ConnectionRejected
    extends java.lang.Object
    A class used by IWebSocketConnectionFilters when they need to reject a connection
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionRejected​(int code, java.lang.String reason)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()  
      java.lang.String getReason()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectionRejected

        public ConnectionRejected​(int code,
                                  java.lang.String reason)
        Constructor
        Parameters:
        code - The error code
        reason - The reason to reject the connection
    • Method Detail

      • getCode

        public int getCode()
      • getReason

        public java.lang.String getReason()