com.atlassian.seraph.util
Class PathMapper

java.lang.Object
  extended by com.atlassian.seraph.util.PathMapper
All Implemented Interfaces:
IPathMapper, java.io.Serializable

public class PathMapper
extends java.lang.Object
implements java.io.Serializable, IPathMapper

Author:
Joe Walnes, Mike Cannon-Brookes, Hani Suleiman
See Also:
Serialized Form

Constructor Summary
PathMapper()
           
 
Method Summary
 java.lang.String get(java.lang.String path)
          Retrieve appropriate key by matching patterns with supplied path.
 java.util.Collection<java.lang.String> getAll(java.lang.String path)
          Retrieve all mappings which match a supplied path.
 void put(java.lang.String key, java.lang.String pattern)
          Add a key and appropriate matching pattern.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathMapper

public PathMapper()
Method Detail

put

public void put(java.lang.String key,
                java.lang.String pattern)
Description copied from interface: IPathMapper
Add a key and appropriate matching pattern.

Specified by:
put in interface IPathMapper

get

public java.lang.String get(java.lang.String path)
Description copied from interface: IPathMapper
Retrieve appropriate key by matching patterns with supplied path.

Specified by:
get in interface IPathMapper

getAll

public java.util.Collection<java.lang.String> getAll(java.lang.String path)
Description copied from interface: IPathMapper
Retrieve all mappings which match a supplied path.

Specified by:
getAll in interface IPathMapper

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 Atlassian. All Rights Reserved.