com.radekzitek.userver.http
Class HttpMethod

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

public class HttpMethod
extends java.lang.Object
implements HttpObject

Author:
rzitek

Field Summary
private static org.apache.log4j.Logger LOG
          Log4j logger.
private  java.lang.String method
          The method string.
 
Constructor Summary
HttpMethod()
          Constructs empty method.
HttpMethod(java.lang.String method)
          Constructs method from the given string.
 
Method Summary
 void clear()
          Clears the method.
 java.lang.String getMethod()
          Retrieves the method.
 void parse(java.lang.String method)
          Parses given string into the method.
 void setMethod(java.lang.String method)
          Sets the method.
 java.lang.String toString()
          Convertes the method to the 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 java.lang.String method
The method string.

Constructor Detail

HttpMethod

public HttpMethod()
Constructs empty method.


HttpMethod

public HttpMethod(java.lang.String method)
Constructs method from the given string.

Parameters:
method - the method string
Method Detail

clear

public void clear()
Clears the method.

Specified by:
clear in interface HttpObject

getMethod

public java.lang.String getMethod()
Retrieves the method.

Returns:
the method.

setMethod

public void setMethod(java.lang.String method)
Sets the method.

Parameters:
method - the method

toString

public java.lang.String toString()
Convertes the method to the string.

Specified by:
toString in interface HttpObject

parse

public void parse(java.lang.String method)
Parses given string into the method.

Specified by:
parse in interface HttpObject
Parameters:
method - method string