org.codehaus.plexus.summit.pipeline
Class AbstractPipeline
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.summit.AbstractSummitComponent
org.codehaus.plexus.summit.pipeline.AbstractPipeline
- All Implemented Interfaces:
- org.codehaus.plexus.personality.plexus.lifecycle.phase.Configurable, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled, Pipeline, SummitComponent
- Direct Known Subclasses:
- SummitPipeline
- public abstract class AbstractPipeline
- extends AbstractSummitComponent
- implements Pipeline, org.codehaus.plexus.personality.plexus.lifecycle.phase.Configurable
Flexible implementation of a Pipeline
.
- Author:
- Jason van Zyl, Pete Kazmier
Field Summary |
protected java.lang.String |
name
|
protected boolean |
nocache
|
protected java.util.List |
valves
|
Method Summary |
void |
configure(org.codehaus.plexus.configuration.PlexusConfiguration config)
|
protected void |
configureValve(org.codehaus.plexus.configuration.PlexusConfiguration config)
|
java.lang.String |
getName()
|
java.util.List |
getValves()
|
void |
invoke(RunData data)
Cause the specified request and response to be processed by
the sequence of Valves associated with this pipeline, until one
of these Valves decides to end the processing. |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
valves
protected java.util.List valves
nocache
protected boolean nocache
AbstractPipeline
public AbstractPipeline()
getName
public java.lang.String getName()
invoke
public void invoke(RunData data)
throws java.io.IOException,
ValveInvocationException
- Description copied from interface:
Pipeline
Cause the specified request and response to be processed by
the sequence of Valves associated with this pipeline, until one
of these Valves decides to end the processing.
The implementation must ensure that multiple simultaneous
requests (on different threads) can be processed through the
same Pipeline without interfering with each other's control
flow.
- Specified by:
invoke
in interface Pipeline
- Parameters:
data
- The run-time information, including the servlet
request and response we are processing.
- Throws:
java.io.IOException
- an input/output error occurred.
ValveInvocationException
getValves
public java.util.List getValves()
- Specified by:
getValves
in interface Pipeline
configure
public void configure(org.codehaus.plexus.configuration.PlexusConfiguration config)
throws org.codehaus.plexus.configuration.PlexusConfigurationException
- Specified by:
configure
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Configurable
- Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException
configureValve
protected void configureValve(org.codehaus.plexus.configuration.PlexusConfiguration config)
throws org.codehaus.plexus.configuration.PlexusConfigurationException
- Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException
Copyright © 2001-2007 Codehaus. All Rights Reserved.