com.atlassian.seraph.util
Class PathMapper

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

public class PathMapper
extends Object
implements Serializable, IPathMapper

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

Constructor Summary
PathMapper()
           
 
Method Summary
 String get(String path)
          Retrieve appropriate key by matching patterns with supplied path.
 Collection<String> getAll(String path)
          Retrieve all mappings which match a supplied path.
 void put(String key, String pattern)
          Add a key and appropriate matching pattern.
 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(String key,
                String pattern)
Description copied from interface: IPathMapper
Add a key and appropriate matching pattern.

Specified by:
put in interface IPathMapper

get

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

Specified by:
get in interface IPathMapper

getAll

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

Specified by:
getAll in interface IPathMapper

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Atlassian. All Rights Reserved.