|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norther.tammi.spray.loader.task.Action
public abstract class Action
Action is an abstract base class for tasks.
Based on Action
in the Apache Jakarta Turbine project.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.norther.tammi.spray.loader.task.Task |
---|
Task.Control |
Constructor Summary | |
---|---|
Action()
Constructs a new action. |
Method Summary | ||
---|---|---|
abstract Task.Control |
execute(ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
Executes customized functionality. |
|
protected
|
find(Class<V> clazz,
FilterChain chain)
Finds the default MBean. |
|
protected Object |
find(ObjectName name,
FilterChain chain)
Finds the named MBean. |
|
protected
|
getFilter(Class<F> clazz,
FilterChain chain)
Gets the specified filter. |
|
protected MBeanServer |
getMBeanServer(FilterChain chain)
Gets the current MBean server. |
|
void |
initialize(ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
Initializes customized functionality after construction but before the first execution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Action()
Method Detail |
---|
public void initialize(ServletRequest request, ServletResponse response, FilterChain chain, Object context)
Task
initialize
in interface Task
request
- the request.response
- the response.chain
- the filter chain.context
- a task specific context.public abstract Task.Control execute(ServletRequest request, ServletResponse response, FilterChain chain, Object context) throws Exception
Task
execute
in interface Task
request
- the request.response
- the response.chain
- the filter chain.context
- a task specific context.
Exception
- on errors.protected <V> V find(Class<V> clazz, FilterChain chain)
V
- the class type.clazz
- the class.chain
- the filter chain.
protected Object find(ObjectName name, FilterChain chain)
name
- the object name.chain
- the filter chain.
protected <F extends Filter> F getFilter(Class<F> clazz, FilterChain chain)
F
- the filter type.clazz
- the class of the filter.chain
- the filter chain.
protected MBeanServer getMBeanServer(FilterChain chain)
chain
- the filter chain.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |