org.codehaus.plexus.summit.pipeline
Class AbstractPipeline

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.codehaus.plexus.summit.AbstractSummitComponent
          extended byorg.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
           
 
Fields inherited from interface org.codehaus.plexus.summit.pipeline.Pipeline
ROLE, SELECTOR_ROLE
 
Constructor Summary
AbstractPipeline()
           
 
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.summit.AbstractSummitComponent
contextualize, getContainer, lookup, lookup
 
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
 
Methods inherited from interface org.codehaus.plexus.summit.SummitComponent
getContainer, lookup, lookup
 

Field Detail

name

protected java.lang.String name

valves

protected java.util.List valves

nocache

protected boolean nocache
Constructor Detail

AbstractPipeline

public AbstractPipeline()
Method Detail

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.