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
FieldsModifier and TypeFieldDescriptionstatic final HttpSchemeScheme for non-secure HTTP connection.static final HttpSchemeScheme for secure HTTP connection.private final AsciiStringprivate final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
HTTP
Scheme for non-secure HTTP connection. -
HTTPS
Scheme for secure HTTP connection. -
port
private final int port -
name
-
-
Constructor Details
-
HttpScheme
private HttpScheme(int port, java.lang.String name)
-
-
Method Details
-
name
-
port
public int port() -
equals
public boolean equals(java.lang.Object o) - Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-