toolbox.web
Interface WebAction

Package class diagram package WebAction
All Known Implementing Classes:
AbstractStringWebAction, AbstractXMLWebAction, Dir2WSILAction, InvalidateSessionAction, Sync2AsyncAction, WSILAction, XMLHttpLoggingAction

public interface WebAction

Defines an interface for developing web application actions. An action implementation should handle one form at the most.


Method Summary
 void create(java.lang.String name, Controller controller, javax.servlet.ServletContext context)
          Create the action and initialise all required resources.
 void execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context)
          Execute the action.
 

Method Detail

create

void create(java.lang.String name,
            Controller controller,
            javax.servlet.ServletContext context)
            throws ConfException
Create the action and initialise all required resources.

Parameters:
name - String containing the name of this action.
controller - Controller that created this action.
context - Current servlet context.
Throws:
ConfException - if the action cannot be created.

execute

void execute(javax.servlet.http.HttpServletRequest request,
             javax.servlet.http.HttpServletResponse response,
             javax.servlet.ServletContext context)
             throws javax.servlet.ServletException,
                    java.io.IOException
Execute the action. Implementers will implement this method to execute a web application action. The outcome of the action must be forwarded to one of the action's configured views.

Parameters:
request - HTTP request received.
response - HTTP response to be used.
context - Current servlet context.
Throws:
javax.servlet.ServletException
java.io.IOException