Package org.cybergarage.http
Class HTTPStatus
java.lang.Object
org.cybergarage.http.HTTPStatus
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final String
code2String
(int code) int
boolean
static final boolean
isSuccessful
(int statCode) void
void
setReasonPhrase
(String value) void
setStatusCode
(int value) void
setVersion
(String value)
-
Field Details
-
CONTINUE
public static final int CONTINUE- See Also:
-
OK
public static final int OK- See Also:
-
PARTIAL_CONTENT
public static final int PARTIAL_CONTENT- See Also:
-
BAD_REQUEST
public static final int BAD_REQUEST- See Also:
-
NOT_FOUND
public static final int NOT_FOUND- See Also:
-
PRECONDITION_FAILED
public static final int PRECONDITION_FAILED- See Also:
-
INVALID_RANGE
public static final int INVALID_RANGE- See Also:
-
INTERNAL_SERVER_ERROR
public static final int INTERNAL_SERVER_ERROR- See Also:
-
-
Constructor Details
-
HTTPStatus
public HTTPStatus() -
HTTPStatus
-
HTTPStatus
-
-
Method Details
-
code2String
-
setVersion
-
setStatusCode
public void setStatusCode(int value) -
setReasonPhrase
-
getVersion
-
getStatusCode
public int getStatusCode() -
getReasonPhrase
-
isSuccessful
public static final boolean isSuccessful(int statCode) -
isSuccessful
public boolean isSuccessful() -
set
-