public class StatusFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.String |
COPYRIGHT |
private static StatusFactory |
factory |
static int |
STATUS_ACCEPTED |
static int |
STATUS_AUTHENTICATION_FAILED |
static int |
STATUS_BAD_REQUEST |
static int |
STATUS_CONFLICT |
static int |
STATUS_FAILED_EXPECTATION |
static int |
STATUS_FAILED_PRECONDITION |
static int |
STATUS_FAILED_SIGNATURE_VERIFICATION |
static int |
STATUS_FORWARDED |
static int |
STATUS_FORWARDED_MORE_STATUS_EXPECTED |
static int |
STATUS_INTERNAL_SERVER_ERROR |
static int |
STATUS_NO_CONTENT |
static int |
STATUS_NOT_ACCEPTABLE |
static int |
STATUS_PAYMENT_REQUIRED |
static int |
STATUS_REQUEST_NOT_IMPLEMENTED |
static int |
STATUS_SIGNATURE_REQUIRED |
static int |
STATUS_SIGNATURE_UNACCEPTABLE |
static int |
STATUS_SUCCESS |
static int |
STATUS_TEMPORARY_SERVER_ERROR |
static int |
STATUS_UNABLE_TO_FORWARD_REQUEST |
static int |
STATUS_UNABLE_TO_REACH_SERVER |
static int |
STATUS_UNKNOWN |
| Modifier | Constructor and Description |
|---|---|
private |
StatusFactory()
Private ctor to prevent construction, this is a static class.
|
| Modifier and Type | Method and Description |
|---|---|
static Status |
getStatus(int theStatusId)
Builds a Status object given a status ID.
|
static final java.lang.String COPYRIGHT
public static final int STATUS_SUCCESS
public static final int STATUS_ACCEPTED
public static final int STATUS_NO_CONTENT
public static final int STATUS_FORWARDED_MORE_STATUS_EXPECTED
public static final int STATUS_FORWARDED
public static final int STATUS_BAD_REQUEST
public static final int STATUS_AUTHENTICATION_FAILED
public static final int STATUS_PAYMENT_REQUIRED
public static final int STATUS_NOT_ACCEPTABLE
public static final int STATUS_CONFLICT
public static final int STATUS_FAILED_PRECONDITION
public static final int STATUS_FAILED_EXPECTATION
public static final int STATUS_REQUEST_NOT_IMPLEMENTED
public static final int STATUS_SIGNATURE_REQUIRED
public static final int STATUS_FAILED_SIGNATURE_VERIFICATION
public static final int STATUS_SIGNATURE_UNACCEPTABLE
public static final int STATUS_INTERNAL_SERVER_ERROR
public static final int STATUS_UNABLE_TO_REACH_SERVER
public static final int STATUS_UNABLE_TO_FORWARD_REQUEST
public static final int STATUS_TEMPORARY_SERVER_ERROR
public static final int STATUS_UNKNOWN
private static StatusFactory factory
private StatusFactory()
public static Status getStatus(int theStatusId)
theStatusId - See static variables in this class