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.Submit
          extended by org.norther.tammi.spray.template.task.TemplateAction
All Implemented Interfaces:
Serializable, Task

public abstract class TemplateAction
extends Submit

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

Based on TemplateAction in the Apache Jakarta Turbine project.

Version:
$Id: TemplateAction.java,v 1.11 2010-05-28 12:52:22 cvsimp Exp $
Author:
Jon S. Stevens, Jason van Zyl, Ilkka Priha
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.norther.tammi.spray.loader.task.Task
Task.Control
 
Field Summary
 
Fields inherited from class org.norther.tammi.spray.loader.task.Submit
EXECUTE_METHOD, SUBMIT_PREFIX
 
Constructor Summary
TemplateAction()
          Constructs a new template action.
 
Method Summary
protected  Class<?>[] getSignature()
          Gets the action class specific signature.
 Task.Control submit(ServletRequest request, ServletResponse response, FilterChain chain, Object context)
          Implements the default submit method if the specific one is not implemented.
 Task.Control submit(ServletRequest request, ServletResponse response, FilterChain chain, TemplateContext context)
          Implements the default submit method if any of the specific ones doesn't match.
 
Methods inherited from class org.norther.tammi.spray.loader.task.Submit
execute, getAction, getAction, initialize, invoke
 
Methods inherited from class org.norther.tammi.spray.loader.task.Action
find, 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

submit

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

Overrides:
submit in class Submit
Parameters:
request - the request.
response - the response.
chain - the filter chain.
context - the context.
Returns:
the execution control.
Throws:
Exception - on errors.

submit

public Task.Control submit(ServletRequest request,
                           ServletResponse response,
                           FilterChain chain,
                           TemplateContext context)
                    throws Exception
Implements the default submit method if any of the specific ones doesn't match. The default implementation does nothing.

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

getSignature

protected Class<?>[] getSignature()
Description copied from class: Submit
Gets the action class specific signature.

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


Copyright © 2004 The Norther Organization. All rights reserved.