public abstract static class Status.WithReasonPhrase extends Object implements StatusType
StatusType.Family
Constructor and Description |
---|
WithReasonPhrase() |
Modifier and Type | Method and Description |
---|---|
abstract int |
code() |
static Status.WithReasonPhrase |
create(int statusCode,
String reasonPhrase) |
abstract StatusType.Family |
family() |
abstract String |
reasonPhrase() |
StatusType |
withReasonPhrase(String reasonPhrase)
Returns a StatusType instance with the same code value as the current instance, but
using the supplied reasonPhrase.
|
public abstract int code()
code
in interface StatusType
public abstract String reasonPhrase()
reasonPhrase
in interface StatusType
public abstract StatusType.Family family()
family
in interface StatusType
public static Status.WithReasonPhrase create(int statusCode, String reasonPhrase)
public StatusType withReasonPhrase(String reasonPhrase)
StatusType
withReasonPhrase
in interface StatusType
reasonPhrase
- the reason phrase to useCopyright © 2016. All rights reserved.