com.oroad.stxx.plugin
Class Pipeline

java.lang.Object
  extended bycom.oroad.stxx.plugin.Pipeline
All Implemented Interfaces:
java.io.Serializable

public class Pipeline
extends java.lang.Object
implements java.io.Serializable

Defines a pipeline

Author:
Don Brown
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_TRANSFORM
          The name given to the default transformation
 
Constructor Summary
Pipeline()
          Construct a new instance with default values.
 
Method Summary
 void addTransform(ActionTransform trans)
          Adds a transform to the pipeline
 java.lang.String getMatch()
          Gets the match string
 ActionTransform match(java.lang.String path, java.util.ArrayList possibleNames)
          Matches a path against this pipeline
 void setMatch(java.lang.String match)
          Set the match string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TRANSFORM

public static final java.lang.String DEFAULT_TRANSFORM
The name given to the default transformation

See Also:
Constant Field Values
Constructor Detail

Pipeline

public Pipeline()
Construct a new instance with default values.

Method Detail

match

public ActionTransform match(java.lang.String path,
                             java.util.ArrayList possibleNames)
Matches a path against this pipeline

Parameters:
path - The path of the request
possibleNames - A list of names the selector matched

setMatch

public void setMatch(java.lang.String match)
Set the match string.

Parameters:
match - The new match

getMatch

public java.lang.String getMatch()
Gets the match string


addTransform

public void addTransform(ActionTransform trans)
Adds a transform to the pipeline

Parameters:
trans - The transform to add