All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.expershop.esapi.Action

java.lang.Object
   |
   +----com.expershop.esapi.Action

public abstract class Action
extends Object
implements ESAction
An Expershop Action. To be used by programmers (in the ExperShop API)


Constructor Index

 o Action()

Method Index

 o processRequest(ESClient, ESServletRequest, Object)
INTERNAL USE: DO NOT OVERRIDE THIS METHOD
 o serverSide()
Tells if the action is a server-side only action or not.
Server-side actions can only be invoked in the templates using $Action, and can't be passed as HTTP parameters.
 o service(Session, ServletRequest, Object)
This method should be overridden by programmers, to implement the action.

Constructors

 o Action
 public Action()

Methods

 o processRequest
 public boolean processRequest(ESClient session,
                               ESServletRequest req,
                               Object info) throws Exception
INTERNAL USE: DO NOT OVERRIDE THIS METHOD

 o service
 public abstract boolean service(Session s,
                                 ServletRequest r,
                                 Object info) throws Exception
This method should be overridden by programmers, to implement the action.

Parameters:
s - The user session
r - The servlet request that contains the parameters
info - An optional info parameter, default null
Returns:
true if the action succeeds, or false if the action fails.
 o serverSide
 public abstract boolean serverSide()
Tells if the action is a server-side only action or not.
Server-side actions can only be invoked in the templates using $Action, and can't be passed as HTTP parameters.

Returns:
true for server-side actions, false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index