com.acsinet_solutions.cetia4.http
Class ActionCommand

java.lang.Object
  extended by com.acsinet_solutions.cetia4.http.ActionCommand
All Implemented Interfaces:
HttpCommand, java.io.Serializable
Direct Known Subclasses:
DeleteCommand, PostCommand, PutCommand

public abstract class ActionCommand
extends java.lang.Object
implements HttpCommand

Superclass for POST, PUT and DELETE commands

Author:
Santiago Arriaga
See Also:
Serialized Form

Constructor Summary
protected ActionCommand(HttpMethod method, java.lang.String page)
          Protected 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

ActionCommand

protected ActionCommand(HttpMethod method,
                        java.lang.String page)
Protected 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