public abstract class StatusCode extends StatusCode implements LazyValueBytesRenderable
Constructor and Description |
---|
StatusCode() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
allowsEntity()
Returns if a response with this status-code is allowed to be accompanied with a non-empty
entity.
|
abstract java.lang.String |
defaultMessage()
Returns the default message to be included as the content of an Http response with this
status-code.
|
static StatusCode |
int2StatusCode(int code) |
abstract int |
intValue()
Returns the numeric code of this status code.
|
abstract boolean |
isFailure()
Returns if the status-code represents failure.
|
abstract boolean |
isRedirection()
Returns if the status-code is a redirection status code.
|
abstract boolean |
isSuccess()
Returns if the status-code represents success.
|
abstract java.lang.String |
reason()
Returns the reason message for this status code.
|
java.lang.String |
value() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
render, toString, valueBytes
public static StatusCode int2StatusCode(int code)
public abstract int intValue()
StatusCode
intValue
in class StatusCode
public java.lang.String value()
value
in interface LazyValueBytesRenderable
public abstract java.lang.String reason()
StatusCode
reason
in class StatusCode
public abstract java.lang.String defaultMessage()
StatusCode
defaultMessage
in class StatusCode
public abstract boolean isSuccess()
StatusCode
isSuccess
in class StatusCode
public abstract boolean isFailure()
StatusCode
isFailure
in class StatusCode
public abstract boolean isRedirection()
StatusCode
isRedirection
in class StatusCode
public abstract boolean allowsEntity()
StatusCode
allowsEntity
in class StatusCode