public static final class StatusCodes.CustomStatusCode extends StatusCode implements scala.Product, java.io.Serializable
| Constructor and Description |
|---|
CustomStatusCode(int intValue,
java.lang.String reason,
java.lang.String defaultMessage,
boolean isSuccess,
boolean allowsEntity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsEntity()
Returns if a response with this status-code is allowed to be accompanied with a non-empty
entity.
|
java.lang.String |
defaultMessage()
Returns the default message to be included as the content of an Http response with this
status-code.
|
int |
intValue()
Returns the numeric code of this status code.
|
boolean |
isFailure()
Returns if the status-code represents failure.
|
boolean |
isRedirection()
Returns if the status-code is a redirection status code.
|
boolean |
isSuccess()
Returns if the status-code represents success.
|
java.lang.String |
reason()
Returns the reason message for this status code.
|
int2StatusCode, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait$init$, productArity, productElement, productElementName, productElementNames, productIterator, productPrefixrender, toString, valueBytespublic CustomStatusCode(int intValue,
java.lang.String reason,
java.lang.String defaultMessage,
boolean isSuccess,
boolean allowsEntity)
public int intValue()
StatusCodeintValue in class StatusCodepublic java.lang.String reason()
StatusCodereason in class StatusCodepublic java.lang.String defaultMessage()
StatusCodedefaultMessage in class StatusCodepublic boolean isSuccess()
StatusCodeisSuccess in class StatusCodepublic boolean allowsEntity()
StatusCodeallowsEntity in class StatusCodepublic boolean isFailure()
StatusCodeisFailure in class StatusCodepublic boolean isRedirection()
StatusCodeisRedirection in class StatusCode