public class HttpStatusCode
Represents an HTTP status code and description.
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpStatusCode.Companion |
| Modifier and Type | Field and Description |
|---|---|
static HttpStatusCode.Companion |
Companion |
| Constructor and Description |
|---|
HttpStatusCode(int value,
java.lang.String description)
Represents an HTTP status code and description.
|
| Modifier and Type | Method and Description |
|---|---|
int |
component1()
is a numeric code.
|
java.lang.String |
component2()
is free form description of a status.
|
HttpStatusCode |
copy(int value,
java.lang.String description)
Represents an HTTP status code and description.
|
HttpStatusCode |
description(java.lang.String value)
Returns a copy of
this code with a description changed to value. |
boolean |
equals(java.lang.Object p) |
java.lang.String |
getDescription()
is free form description of a status.
|
int |
getValue()
is a numeric code.
|
int |
hashCode() |
java.lang.String |
toString() |
public static HttpStatusCode.Companion Companion
public HttpStatusCode(int value,
java.lang.String description)
Represents an HTTP status code and description.
value - is a numeric code.description - is free form description of a status.value - is a numeric code.description - is free form description of a status.public java.lang.String toString()
public HttpStatusCode description(java.lang.String value)
Returns a copy of this code with a description changed to value.
public int getValue()
is a numeric code.
public java.lang.String getDescription()
is free form description of a status.
public int component1()
is a numeric code.
public java.lang.String component2()
is free form description of a status.
public HttpStatusCode copy(int value, java.lang.String description)
Represents an HTTP status code and description.
value - is a numeric code.description - is free form description of a status.public int hashCode()
public boolean equals(java.lang.Object p)