com.acsinet_solutions.cetia4.http
Class HttpCommandFactory

java.lang.Object
  extended by com.acsinet_solutions.cetia4.http.HttpCommandFactory

public final class HttpCommandFactory
extends java.lang.Object

Simple factory class for commands.

Author:
Santiago Arriaga

Constructor Summary
HttpCommandFactory()
           
 
Method Summary
static HttpCommand getCommand(HttpMethod method, java.lang.String action)
          Create a command for an HTTP method and action page.
static HttpCommand getCommand(java.lang.String method, java.lang.String action)
          Create a command for an HTTP method name and action page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpCommandFactory

public HttpCommandFactory()
Method Detail

getCommand

public static final HttpCommand getCommand(HttpMethod method,
                                           java.lang.String action)
Create a command for an HTTP method and action page. Currently just GET, POST, PUT and DELETE HTTP methods are supported.


getCommand

public static final HttpCommand getCommand(java.lang.String method,
                                           java.lang.String action)
Create a command for an HTTP method name and action page. Currently just GET, POST, PUT and DELETE HTTP methods are supported.