Class HttpScheme

java.lang.Object
io.netty.handler.codec.http.HttpScheme

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

    Fields
    Modifier and Type
    Field
    Description
    static final HttpScheme
    Scheme for non-secure HTTP connection.
    static final HttpScheme
    Scheme for secure HTTP connection.
    private final AsciiString
     
    private final int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    HttpScheme(int port, java.lang.String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(java.lang.Object o)
     
    int
     
     
    int
     
    java.lang.String
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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
    • name

      private final AsciiString name
  • Constructor Details

    • HttpScheme

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

    • name

      public AsciiString name()
    • 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