cybergarage-upnp
org.cybergarage.http.HTTPStatus Class Reference

Public Member Functions

 HTTPStatus ()
 
 HTTPStatus (String ver, int code, String reason)
 
 HTTPStatus (String lineStr)
 
void setVersion (String value)
 
void setStatusCode (int value)
 
void setReasonPhrase (String value)
 
String getVersion ()
 
int getStatusCode ()
 
String getReasonPhrase ()
 
boolean isSuccessful ()
 
void set (String lineStr)
 

Static Public Member Functions

static final String code2String (int code)
 
final static boolean isSuccessful (int statCode)
 

Static Public Attributes

static final int CONTINUE = 100
 
static final int OK = 200
 
static final int PARTIAL_CONTENT = 206
 
static final int BAD_REQUEST = 400
 
static final int NOT_FOUND = 404
 
static final int PRECONDITION_FAILED = 412
 
static final int INVALID_RANGE = 416
 
static final int INTERNAL_SERVER_ERROR = 500
 

Private Attributes

String version = ""
 
int statusCode = 0
 
String reasonPhrase = ""
 

Constructor & Destructor Documentation

◆ HTTPStatus() [1/3]

org.cybergarage.http.HTTPStatus.HTTPStatus ( )
inline

◆ HTTPStatus() [2/3]

org.cybergarage.http.HTTPStatus.HTTPStatus ( String ver,
int code,
String reason )
inline

◆ HTTPStatus() [3/3]

org.cybergarage.http.HTTPStatus.HTTPStatus ( String lineStr)
inline

Member Function Documentation

◆ code2String()

static final String org.cybergarage.http.HTTPStatus.code2String ( int code)
inlinestatic

◆ getReasonPhrase()

String org.cybergarage.http.HTTPStatus.getReasonPhrase ( )
inline

◆ getStatusCode()

int org.cybergarage.http.HTTPStatus.getStatusCode ( )
inline

◆ getVersion()

String org.cybergarage.http.HTTPStatus.getVersion ( )
inline

◆ isSuccessful() [1/2]

boolean org.cybergarage.http.HTTPStatus.isSuccessful ( )
inline

◆ isSuccessful() [2/2]

final static boolean org.cybergarage.http.HTTPStatus.isSuccessful ( int statCode)
inlinestatic

◆ set()

void org.cybergarage.http.HTTPStatus.set ( String lineStr)
inline

◆ setReasonPhrase()

void org.cybergarage.http.HTTPStatus.setReasonPhrase ( String value)
inline

◆ setStatusCode()

void org.cybergarage.http.HTTPStatus.setStatusCode ( int value)
inline

◆ setVersion()

void org.cybergarage.http.HTTPStatus.setVersion ( String value)
inline

Field Documentation

◆ BAD_REQUEST

final int org.cybergarage.http.HTTPStatus.BAD_REQUEST = 400
static

◆ CONTINUE

final int org.cybergarage.http.HTTPStatus.CONTINUE = 100
static

◆ INTERNAL_SERVER_ERROR

final int org.cybergarage.http.HTTPStatus.INTERNAL_SERVER_ERROR = 500
static

◆ INVALID_RANGE

final int org.cybergarage.http.HTTPStatus.INVALID_RANGE = 416
static

◆ NOT_FOUND

final int org.cybergarage.http.HTTPStatus.NOT_FOUND = 404
static

◆ OK

final int org.cybergarage.http.HTTPStatus.OK = 200
static

◆ PARTIAL_CONTENT

final int org.cybergarage.http.HTTPStatus.PARTIAL_CONTENT = 206
static

◆ PRECONDITION_FAILED

final int org.cybergarage.http.HTTPStatus.PRECONDITION_FAILED = 412
static

◆ reasonPhrase

String org.cybergarage.http.HTTPStatus.reasonPhrase = ""
private

◆ statusCode

int org.cybergarage.http.HTTPStatus.statusCode = 0
private

◆ version

String org.cybergarage.http.HTTPStatus.version = ""
private

The documentation for this class was generated from the following file: