|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.radekzitek.userver.http.HttpStatusCode
Field Summary | |
private static org.apache.log4j.Logger |
LOG
Log4j logger. |
private int |
statusCode
Status code. |
Constructor Summary | |
HttpStatusCode()
Creates empty status code. |
|
HttpStatusCode(java.lang.String codeString)
Creates status code from given string. |
Method Summary | |
void |
clear()
Clears the status code. |
int |
getStatusCode()
Retrieves the status code. |
void |
parse(java.lang.String codeString)
Parses given string into the object. |
void |
setStatusCode(int statusCode)
Sets the status code. |
java.lang.String |
toString()
Converts the status code to string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final org.apache.log4j.Logger LOG
private int statusCode
Constructor Detail |
public HttpStatusCode()
public HttpStatusCode(java.lang.String codeString) throws HttpStatusCodeFormatException
codeString
- the status code string
HttpStatusCodeFormatException
- Thrown if the given string can not be parsed into integer.Method Detail |
public void clear()
clear
in interface HttpObject
public int getStatusCode()
public void parse(java.lang.String codeString) throws HttpStatusCodeFormatException
HttpObject
parse
in interface HttpObject
codeString
- input string
HttpStatusCodeFormatException
public void setStatusCode(int statusCode)
statusCode
- the status code to setpublic java.lang.String toString()
toString
in interface HttpObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |