public class PathTemplate extends Object implements Comparable<PathTemplate>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PathTemplate o) |
static PathTemplate |
create(String inputPath) |
String |
getBase() |
Set<String> |
getParameterNames() |
String |
getTemplateString() |
boolean |
matches(String path,
Map<String,String> pathParameters)
Check if the given uri matches the template.
|
String |
toString() |
public static PathTemplate create(String inputPath)
public boolean matches(String path, Map<String,String> pathParameters)
path
- The request path, relative to the context rootpathParameters
- The path parameters map to fill outpublic int compareTo(PathTemplate o)
compareTo
in interface Comparable<PathTemplate>
public String getBase()
public String getTemplateString()
Copyright © 2014 JBoss by Red Hat. All rights reserved.