org.norther.tammi.spray.template.task
Class TemplateAction

java.lang.Object
  extended by org.norther.tammi.spray.loader.task.Action
      extended by org.norther.tammi.spray.loader.task.ActionEvent
          extended by org.norther.tammi.spray.template.task.TemplateAction
All Implemented Interfaces:
Serializable, Task

public abstract class TemplateAction
extends ActionEvent

Extends ActionEvent by providing a template context as the context parameter.

Based on TemplateAction in the Apache Jakarta Turbine project.

Author:
Jon S. Stevens, Jason van Zyl, Ilkka Priha
See Also:
Serialized Form

Constructor Summary
TemplateAction()
          Constructs a new template action.
 
Method Summary
 void execute(ServletRequest request, ServletResponse response, FilterChain chain, Object context)
          Executes the submitted event.
 void execute(ServletRequest request, ServletResponse response, FilterChain chain, TemplateContext context)
          Executes the submitted event.
protected  Class[] getSignature()
          Gets the signature.
 void submit(ServletRequest request, ServletResponse response, FilterChain chain, Object context)
          Implements the default submit method if the specific one is not implemented.
 void submit(ServletRequest request, ServletResponse response, FilterChain chain, TemplateContext context)
          Implements the default submit method if any of the specific ones fails.
 
Methods inherited from class org.norther.tammi.spray.loader.task.ActionEvent
getAction, getAction, getAction, initialize, invoke
 
Methods inherited from class org.norther.tammi.spray.loader.task.Action
find, getFilter, getMBeanServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateAction

public TemplateAction()
Constructs a new template action.

Method Detail

execute

public void execute(ServletRequest request,
                    ServletResponse response,
                    FilterChain chain,
                    Object context)
             throws Exception
Description copied from class: ActionEvent
Executes the submitted event.

Specified by:
execute in interface Task
Overrides:
execute in class ActionEvent
Parameters:
request - the request.
response - the response.
chain - the filter chain.
context - the context.
Throws:
Exception - on errors.

submit

public void submit(ServletRequest request,
                   ServletResponse response,
                   FilterChain chain,
                   Object context)
            throws Exception
Description copied from class: ActionEvent
Implements the default submit method if the specific one is not implemented. The default implementation does nothing.

Overrides:
submit in class ActionEvent
Parameters:
request - the request.
response - the response.
chain - the filter chain.
context - the template context.
Throws:
Exception - on errors.

execute

public void execute(ServletRequest request,
                    ServletResponse response,
                    FilterChain chain,
                    TemplateContext context)
             throws Exception
Executes the submitted event.

Parameters:
request - the request.
response - the response.
chain - the filter chain.
context - the template context.
Throws:
Exception - on errors.

submit

public void submit(ServletRequest request,
                   ServletResponse response,
                   FilterChain chain,
                   TemplateContext context)
            throws Exception
Implements the default submit method if any of the specific ones fails. The default implementation does nothing.

Parameters:
request - the request.
response - the response.
chain - the filter chain.
context - the template context.
Throws:
Exception - on errors.

getSignature

protected Class[] getSignature()
Gets the signature.

Overrides:
getSignature in class ActionEvent
Returns:
the action signature.


Copyright © 2004 The Norther Organization. All rights reserved.