org.jpublish.action
Class PathAction

java.lang.Object
  |
  +--org.jpublish.action.PathAction
All Implemented Interfaces:
Action

public class PathAction
extends java.lang.Object
implements Action

An action which is executed when a particular path is matched. PathAction actually wraps another action. The current algorithm for matching is contained in the PathUtilities.match() method.

Author:
Anthony Eden
See Also:
PathUtilities

Constructor Summary
PathAction(java.lang.String path, Action action)
          Construct a new PathAction.
 
Method Summary
 void execute(org.apache.velocity.VelocityContext context)
          Execute the script.
 java.lang.String getPath()
          Get the path for matching.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathAction

public PathAction(java.lang.String path,
                  Action action)
Construct a new PathAction.
Parameters:
path - The path to match for execution
action - The action which will be executed
Method Detail

getPath

public java.lang.String getPath()
Get the path for matching.
Returns:
The path

execute

public void execute(org.apache.velocity.VelocityContext context)
             throws java.lang.Exception
Execute the script.
Specified by:
execute in interface Action
Parameters:
context - The velocity context


Copyright (C) 2001 Anthony Eden. All Rights Reserved.