org.apache.clerezza.triaxrs.util
Class URITemplate

java.lang.Object
  extended by org.apache.clerezza.triaxrs.util.URITemplate
All Implemented Interfaces:
Comparable<URITemplate>

public class URITemplate
extends Object
implements Comparable<URITemplate>


Constructor Summary
URITemplate(String rawTemplateString)
           
 
Method Summary
 int compareTo(URITemplate o)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 PathMatching match(String uriPath)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URITemplate

public URITemplate(String rawTemplateString)
Method Detail

match

public PathMatching match(String uriPath)
Parameters:
uriPath -
Returns:
a instance of PathMatching allowing access to params and remaining path or null if uriPath didn't match

compareTo

public int compareTo(URITemplate o)
Specified by:
compareTo in interface Comparable<URITemplate>

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.