- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpStatus
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
static HttpStatus
create(int code, String phrase)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
static HttpStatus
from(int code)
int
hashCode()
Writer<?,?>
httpWriter(HttpWriter http)
static HttpStatus
parseHttp(String string)
String
phrase()
String
toString()
Writer<?,?>
writeHttp(Output<?> output, HttpWriter http)
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Field Detail
-
CONTINUE
public static final HttpStatus CONTINUE
-
SWITCHING_PROTOCOLS
public static final HttpStatus SWITCHING_PROTOCOLS
-
OK
public static final HttpStatus OK
-
CREATED
public static final HttpStatus CREATED
-
ACCEPTED
public static final HttpStatus ACCEPTED
-
NON_AUTHORITATIVE_INFORMATION
public static final HttpStatus NON_AUTHORITATIVE_INFORMATION
-
NO_CONTENT
public static final HttpStatus NO_CONTENT
-
RESET_CONTENT
public static final HttpStatus RESET_CONTENT
-
PARTIAL_CONTENT
public static final HttpStatus PARTIAL_CONTENT
-
MULTIPLE_CHOICES
public static final HttpStatus MULTIPLE_CHOICES
-
MOVED_PERMANENTLY
public static final HttpStatus MOVED_PERMANENTLY
-
FOUND
public static final HttpStatus FOUND
-
SEE_OTHER
public static final HttpStatus SEE_OTHER
-
NOT_MODIFIED
public static final HttpStatus NOT_MODIFIED
-
USE_PROXY
public static final HttpStatus USE_PROXY
-
TEMPORARY_REDIRECT
public static final HttpStatus TEMPORARY_REDIRECT
-
BAD_REQUEST
public static final HttpStatus BAD_REQUEST
-
UNAUTHORIZED
public static final HttpStatus UNAUTHORIZED
-
PAYMENT_REQUIRED
public static final HttpStatus PAYMENT_REQUIRED
-
FORBIDDEN
public static final HttpStatus FORBIDDEN
-
NOT_FOUND
public static final HttpStatus NOT_FOUND
-
METHOD_NOT_ALLOWED
public static final HttpStatus METHOD_NOT_ALLOWED
-
NOT_ACCEPTABLE
public static final HttpStatus NOT_ACCEPTABLE
-
PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
-
REQUEST_TIMEOUT
public static final HttpStatus REQUEST_TIMEOUT
-
CONFLICT
public static final HttpStatus CONFLICT
-
GONE
public static final HttpStatus GONE
-
LENGTH_REQUIRED
public static final HttpStatus LENGTH_REQUIRED
-
PRECONDITION_FAILED
public static final HttpStatus PRECONDITION_FAILED
-
PAYLOAD_TOO_LARGE
public static final HttpStatus PAYLOAD_TOO_LARGE
-
URI_TOO_LONG
public static final HttpStatus URI_TOO_LONG
-
UNSUPPORTED_MEDIA_TYPE
public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
-
RANGE_NOT_SATISFIABLE
public static final HttpStatus RANGE_NOT_SATISFIABLE
-
EXPECTATION_FAILED
public static final HttpStatus EXPECTATION_FAILED
-
UPGRADE_REQUIRED
public static final HttpStatus UPGRADE_REQUIRED
-
INTERNAL_SERVER_ERROR
public static final HttpStatus INTERNAL_SERVER_ERROR
-
NOT_IMPLEMENTED
public static final HttpStatus NOT_IMPLEMENTED
-
BAD_GATEWAY
public static final HttpStatus BAD_GATEWAY
-
SERVICE_UNAVAILABLE
public static final HttpStatus SERVICE_UNAVAILABLE
-
GATEWAY_TIMEOUT
public static final HttpStatus GATEWAY_TIMEOUT
-
HTTP_VERSION_NOT_SUPPORTED
public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
-
-
Method Detail
-
code
public int code()
-
phrase
public String phrase()
-
httpWriter
public Writer<?,?> httpWriter(HttpWriter http)
- Specified by:
httpWriter
in classHttpPart
-
writeHttp
public Writer<?,?> writeHttp(Output<?> output, HttpWriter http)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
from
public static HttpStatus from(int code)
-
create
public static HttpStatus create(int code, String phrase)
-
parseHttp
public static HttpStatus parseHttp(String string)
-
-