com.radekzitek.userver.http
Class HttpRequestLine

java.lang.Object
  extended bycom.radekzitek.userver.http.HttpStartLine
      extended bycom.radekzitek.userver.http.HttpRequestLine
All Implemented Interfaces:
HttpObject

public class HttpRequestLine
extends HttpStartLine

Author:
rzitek

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

LOG

private static final org.apache.log4j.Logger LOG
Log4j logger.


method

private HttpMethod method
Request method.


uri

private HttpUri uri
Request URI.


version

private HttpVersion version
Http version.

Constructor Detail

HttpRequestLine

public HttpRequestLine()
Constructs empty request line.


HttpRequestLine

public HttpRequestLine(java.lang.String lineString)
                throws HttpRequestLineFormatException,
                       HttpUriFormatException,
                       HttpVersionFormatException
Method Detail

clear

public void clear()
Description copied from interface: HttpObject
Clears the object.


getMethod

public HttpMethod getMethod()
Returns the method.

Returns:
Returns the method.

getUri

public HttpUri getUri()
Returns the URI.

Returns:
Returns the uri.

getVersion

public HttpVersion getVersion()
Returns the version.

Returns:
Returns the version.

parse

public void parse(java.lang.String lineString)
           throws HttpRequestLineFormatException,
                  HttpUriFormatException,
                  HttpVersionFormatException
Description copied from interface: HttpObject
Parses given string into the object.

Parameters:
lineString - input string
Throws:
HttpRequestLineFormatException
HttpUriFormatException
HttpVersionFormatException

setMethod

public void setMethod(HttpMethod method)
Sets the method.

Parameters:
method - The method to set.

setUri

public void setUri(HttpUri uri)
Sets the URI.

Parameters:
uri - The uri to set.

setVersion

public void setVersion(HttpVersion version)
Sets the version.

Parameters:
version - The version to set.

toString

public java.lang.String toString()
Converts the request line to string.

See Also:
Object.toString()