public static final class StatusCodes.Redirection extends StatusCodes.HttpSuccess implements scala.Product, java.io.Serializable
Constructor and Description |
---|
Redirection(int intValue,
java.lang.String reason,
java.lang.String defaultMessage,
java.lang.String htmlTemplate,
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.
|
java.lang.String |
htmlTemplate() |
int |
intValue()
Returns the numeric code of this status code.
|
boolean |
isRedirection()
Returns if the status-code is a redirection status code.
|
java.lang.String |
reason()
Returns the reason message for this status code.
|
isFailure, isSuccess
int2StatusCode, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
$init$, productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
render, toString, valueBytes
public Redirection(int intValue, java.lang.String reason, java.lang.String defaultMessage, java.lang.String htmlTemplate, boolean allowsEntity)
public int intValue()
StatusCode
intValue
in class StatusCode
public java.lang.String reason()
StatusCode
reason
in class StatusCode
public java.lang.String defaultMessage()
StatusCode
defaultMessage
in class StatusCode
public java.lang.String htmlTemplate()
public boolean allowsEntity()
StatusCode
allowsEntity
in class StatusCode
public boolean isRedirection()
StatusCode
isRedirection
in class StatusCode