HttpStatusCode.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(HttpStatusCode
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| private int | |
| public boolean | is1xxInformational()
Implements org. Whether this status code is in the Informational class ( |
| public boolean | is2xxSuccessful()
Implements org. Whether this status code is in the Successful class ( |
| public boolean | is3xxRedirection()
Implements org. Whether this status code is in the Redirection class ( |
| public boolean | is4xxClientError()
Implements org. Whether this status code is in the Client Error class ( |
| public boolean | is5xxServerError()
Implements org. Whether this status code is in the Server Error class ( |
| public boolean | isError()
Implements org. Whether this status code is in the Client or Server Error class |
| public String | |
| public int | value()
Implements org. Return the integer value of this status code. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
| private final int value | |
| DefaultHttpStatusCode | back to summary |
|---|---|
| public DefaultHttpStatusCode(int value) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(HttpStatusCode o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hundreds | back to summary |
|---|---|
| private int hundreds() | |
| is1xxInformational | back to summary |
|---|---|
| public boolean is1xxInformational() Implements org. Doc from org. Whether this status code is in the Informational class (
| |
| is2xxSuccessful | back to summary |
|---|---|
| public boolean is2xxSuccessful() Implements org. Doc from org. Whether this status code is in the Successful class (
| |
| is3xxRedirection | back to summary |
|---|---|
| public boolean is3xxRedirection() Implements org. Doc from org. Whether this status code is in the Redirection class (
| |
| is4xxClientError | back to summary |
|---|---|
| public boolean is4xxClientError() Implements org. Doc from org. Whether this status code is in the Client Error class (
| |
| is5xxServerError | back to summary |
|---|---|
| public boolean is5xxServerError() Implements org. Doc from org. Whether this status code is in the Server Error class (
| |
| isError | back to summary |
|---|---|
| public boolean isError() Implements org. Doc from org. Whether this status code is in the Client or Server Error class
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| value | back to summary |
|---|---|
| public int value() Implements org. Doc from org. Return the integer value of this status code.
| |