|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.radekzitek.userver.http.HttpStartLine
com.radekzitek.userver.http.HttpResponseLine
Field Summary | |
private static org.apache.log4j.Logger |
LOG
Log4j logger. |
private HttpStatusCode |
statusCode
Response status code. |
private HttpStatusReason |
statusReason
Response status reason string. |
private HttpVersion |
version
Http version. |
Constructor Summary | |
HttpResponseLine()
Default constructor for empty start line. |
|
HttpResponseLine(java.lang.String lineString)
Constructor for the start line using the given input string. |
Method Summary | |
void |
clear()
Empties the start line. |
HttpStatusCode |
getStatusCode()
Retrieves the status code. |
HttpStatusReason |
getStatusReason()
Retrieves the status reason. |
HttpVersion |
getVersion()
Retrieves the http version. |
void |
parse(java.lang.String lineString)
Parser for the start line using the given input string. |
void |
setStatusCode(HttpStatusCode statusCode)
Sets the status code. |
void |
setStatusReason(HttpStatusReason statusReason)
Sets the status reason. |
void |
setVersion(HttpVersion version)
Sets the http version. |
java.lang.String |
toString()
Converts the line 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 HttpStatusCode statusCode
private HttpStatusReason statusReason
private HttpVersion version
Constructor Detail |
public HttpResponseLine()
public HttpResponseLine(java.lang.String lineString) throws HttpVersionFormatException, HttpResponseLineFormatException, HttpStatusCodeFormatException
lineString
- input string
HttpVersionFormatException
- Http version string could not parse.
HttpResponseLineFormatException
- The input line string did not match the reponse line pattern.
HttpStatusCodeFormatException
- The status code did not parse.Method Detail |
public void clear()
public HttpStatusCode getStatusCode()
public HttpStatusReason getStatusReason()
public HttpVersion getVersion()
public void parse(java.lang.String lineString) throws HttpVersionFormatException, HttpResponseLineFormatException, HttpStatusCodeFormatException
lineString
- input string
HttpVersionFormatException
- Http version string could not parse.
HttpResponseLineFormatException
- The input line string did not match the reponse line pattern.
HttpStatusCodeFormatException
- The status code did not parse.public void setStatusCode(HttpStatusCode statusCode)
statusCode
- the status code to setpublic void setStatusReason(HttpStatusReason statusReason)
statusReason
- the status reason to setpublic void setVersion(HttpVersion version)
version
- the http version to setpublic java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |