Class HttpScheme


  • public final class HttpScheme
    extends java.lang.Object
    Defines the common schemes used for the HTTP protocol as defined by rfc7230.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private HttpScheme​(int port, java.lang.String name)  
    • Field Detail

      • HTTP

        public static final HttpScheme HTTP
        Scheme for non-secure HTTP connection.
      • HTTPS

        public static final HttpScheme HTTPS
        Scheme for secure HTTP connection.
      • port

        private final int port
    • Constructor Detail

      • HttpScheme

        private HttpScheme​(int port,
                           java.lang.String name)
    • Method Detail

      • port

        public int port()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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