|
|||||||||||
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.HttpRequestLine
Field Summary | |
private static org.apache.log4j.Logger |
LOG
Log4j logger. |
private HttpMethod |
method
Request method. |
private HttpUri |
uri
Request URI. |
private HttpVersion |
version
Http version. |
Constructor Summary | |
HttpRequestLine()
Constructs empty request line. |
|
HttpRequestLine(java.lang.String lineString)
|
Method Summary | |
void |
clear()
Clears the object. |
HttpMethod |
getMethod()
Returns the method. |
HttpUri |
getUri()
Returns the URI. |
HttpVersion |
getVersion()
Returns the version. |
void |
parse(java.lang.String lineString)
Parses given string into the object. |
void |
setMethod(HttpMethod method)
Sets the method. |
void |
setUri(HttpUri uri)
Sets the URI. |
void |
setVersion(HttpVersion version)
Sets the version. |
java.lang.String |
toString()
Converts the request 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 HttpMethod method
private HttpUri uri
private HttpVersion version
Constructor Detail |
public HttpRequestLine()
public HttpRequestLine(java.lang.String lineString) throws HttpRequestLineFormatException, HttpUriFormatException, HttpVersionFormatException
Method Detail |
public void clear()
HttpObject
public HttpMethod getMethod()
public HttpUri getUri()
public HttpVersion getVersion()
public void parse(java.lang.String lineString) throws HttpRequestLineFormatException, HttpUriFormatException, HttpVersionFormatException
HttpObject
lineString
- input string
HttpRequestLineFormatException
HttpUriFormatException
HttpVersionFormatException
public void setMethod(HttpMethod method)
method
- The method to set.public void setUri(HttpUri uri)
uri
- The uri to set.public void setVersion(HttpVersion version)
version
- The version to set.public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |