public interface StatusType
Modifier and Type | Interface and Description |
---|---|
static class |
StatusType.Family
Defines classes of status codes as described in
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, using the name Family since 'class'
is overloaded in Java.
|
Modifier and Type | Method and Description |
---|---|
int |
code() |
StatusType.Family |
family() |
String |
reasonPhrase() |
StatusType |
withReasonPhrase(String reasonPhrase)
Returns a StatusType instance with the same code value as the current instance, but
using the supplied reasonPhrase.
|
int code()
String reasonPhrase()
StatusType.Family family()
StatusType withReasonPhrase(String reasonPhrase)
reasonPhrase
- the reason phrase to useCopyright © 2016. All rights reserved.