|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.http.Status
public class Status
This class descibes HTTP response status.
Field Summary | |
---|---|
static Status |
BAD_REQUEST
|
protected String |
code
Response code |
static Status |
CONFLICT
|
static Status |
CONTINUE
|
static Status |
CREATED
|
static Status |
EXPECTATION_FAILED
|
static Status |
FORBIDDEN
|
static Status |
FOUND
|
static Status |
GONE
|
static Status |
INTERNAL_SERVER_ERROR
|
static Status |
LENGTH_REQUIRED
|
protected String |
message
Response message |
static Status |
METHOD_NOT_ALLOWED
|
static Status |
MOVED_PERMANENTLY
|
static Status |
NO_CONTENT
|
static Status |
NOT_FOUND
|
static Status |
NOT_IMPLEMENTED
|
static Status |
OK
|
static Status |
PARTIAL_CONTENT
|
static Status |
PRECONDITION_FAILED
|
static Status |
RANGE_NOT_SATISFIABLE
|
static Status |
SEE_OTHER
|
static Status |
UNAUTHORIZED
|
static Status |
UNSUPPORTED_MEDIA_TYPE
|
Constructor Summary | |
---|---|
Status()
Constructor |
|
Status(String statusCode,
String statusMessage)
Constructor |
Method Summary | |
---|---|
String |
getCode()
Returns status code |
String |
getFullStatus()
Returns full status (code, space, message) |
String |
getMessage()
Returns status message |
String |
toString()
Returns status as a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Status CONTINUE
public static final Status OK
public static final Status CREATED
public static final Status NO_CONTENT
public static final Status PARTIAL_CONTENT
public static final Status MOVED_PERMANENTLY
public static final Status FOUND
public static final Status SEE_OTHER
public static final Status BAD_REQUEST
public static final Status UNAUTHORIZED
public static final Status FORBIDDEN
public static final Status NOT_FOUND
public static final Status METHOD_NOT_ALLOWED
public static final Status CONFLICT
public static final Status GONE
public static final Status LENGTH_REQUIRED
public static final Status PRECONDITION_FAILED
public static final Status UNSUPPORTED_MEDIA_TYPE
public static final Status RANGE_NOT_SATISFIABLE
public static final Status EXPECTATION_FAILED
public static final Status INTERNAL_SERVER_ERROR
public static final Status NOT_IMPLEMENTED
protected String code
protected String message
Constructor Detail |
---|
public Status()
public Status(String statusCode, String statusMessage)
statusCode
- status codestatusMessage
- status messageMethod Detail |
---|
public String getCode()
public String getMessage()
public String getFullStatus()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |