org.jboss.portal.common.path
Class SimplePathMapper

java.lang.Object
  extended by org.jboss.portal.common.path.SimplePathMapper
All Implemented Interfaces:
PathMapper

public class SimplePathMapper
extends java.lang.Object
implements PathMapper

A simple mapper implementation. The limitations is that only the root and its children can have children

Version:
$Revision: 5448 $
Author:
Julien Viet

Constructor Summary
SimplePathMapper()
           
 
Method Summary
 PathMapperResult map(PathMapperContext ctx, java.lang.String path)
          Map a path to a result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePathMapper

public SimplePathMapper()
Method Detail

map

public PathMapperResult map(PathMapperContext ctx,
                            java.lang.String path)
Description copied from interface: PathMapper
Map a path to a result.

Specified by:
map in interface PathMapper
Parameters:
ctx - the context of the mapping
path - the path to map
Returns:
returns a path mapper result