Package ai.platon.pulsar.common.http
Class DefaultHttpStatusCode
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.http.HttpStatusCode,java.io.Serializable,kotlin.Comparable
public final class DefaultHttpStatusCode implements HttpStatusCode, Comparable<HttpStatusCode>, Serializable
Default implementation of HttpStatusCode.
- Since:
6.0
Arjen Poutsma
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpStatusCode(Integer value)
-
Method Summary
Modifier and Type Method Description IntegergetValue()Return the integer value of this status code. Booleanis1xxInformational()Whether this status code is in the Informational class ( 1xx).Booleanis2xxSuccessful()Whether this status code is in the Successful class ( 2xx).Booleanis3xxRedirection()Whether this status code is in the Redirection class ( 3xx).Booleanis4xxClientError()Whether this status code is in the Client Error class ( 4xx).Booleanis5xxServerError()Whether this status code is in the Server Error class ( 5xx).BooleanisError()Whether this status code is in the Client or Server Error class IntegercompareTo(HttpStatusCode o)IntegerhashCode()Booleanequals(Object obj)StringtoString()-
-
Constructor Detail
-
DefaultHttpStatusCode
DefaultHttpStatusCode(Integer value)
-
-
Method Detail
-
is1xxInformational
Boolean is1xxInformational()
Whether this status code is in the Informational class (
1xx).
-
is2xxSuccessful
Boolean is2xxSuccessful()
Whether this status code is in the Successful class (
2xx).
-
is3xxRedirection
Boolean is3xxRedirection()
Whether this status code is in the Redirection class (
3xx).
-
is4xxClientError
Boolean is4xxClientError()
Whether this status code is in the Client Error class (
4xx).
-
is5xxServerError
Boolean is5xxServerError()
Whether this status code is in the Server Error class (
5xx).
-
compareTo
Integer compareTo(HttpStatusCode o)
-
-
-
-