com.acsinet_solutions.cetia4.http
Class GetCommand

java.lang.Object
  extended by com.acsinet_solutions.cetia4.http.GetCommand
All Implemented Interfaces:
HttpCommand, java.io.Serializable

public final class GetCommand
extends java.lang.Object
implements HttpCommand

Impementation of a GET Command that may be feed later to an HttpCommandProcessor.

Author:
Santiago Arriaga
See Also:
HttpCommandProcessor, Serialized Form

Constructor Summary
GetCommand(java.lang.String page)
          Public constructor
 
Method Summary
 void addParam(java.lang.String key, java.lang.String value)
          Add a parameter to the current command.
 HttpMethod getMethod()
          Get the HTTP command method for the current command.
 java.lang.String getPage()
          Get the page of the command.
 java.util.Map<java.lang.String,java.lang.String> getParams()
          Get the parameters of the command to be executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetCommand

public GetCommand(java.lang.String page)
Public constructor

Method Detail

getMethod

public HttpMethod getMethod()
Description copied from interface: HttpCommand
Get the HTTP command method for the current command.

Specified by:
getMethod in interface HttpCommand

getPage

public java.lang.String getPage()
Description copied from interface: HttpCommand
Get the page of the command.

Specified by:
getPage in interface HttpCommand

addParam

public void addParam(java.lang.String key,
                     java.lang.String value)
Description copied from interface: HttpCommand
Add a parameter to the current command.

Specified by:
addParam in interface HttpCommand

getParams

public final java.util.Map<java.lang.String,java.lang.String> getParams()
Description copied from interface: HttpCommand
Get the parameters of the command to be executed.

Specified by:
getParams in interface HttpCommand