org.jboss.resteasy.core.registry
Class PathParamSegment
java.lang.Object
org.jboss.resteasy.core.registry.Segment
org.jboss.resteasy.core.registry.PathParamSegment
- All Implemented Interfaces:
- java.lang.Comparable<PathParamSegment>
public class PathParamSegment
- extends Segment
- implements java.lang.Comparable<PathParamSegment>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pathExpression
protected java.lang.String pathExpression
regex
protected java.lang.String regex
pattern
protected java.util.regex.Pattern pattern
groups
protected java.util.List<org.jboss.resteasy.core.registry.PathParamSegment.Group> groups
literalCharacters
protected int literalCharacters
numCapturingGroups
protected int numCapturingGroups
numNonDefaultGroups
protected int numNonDefaultGroups
GROUP
public static final java.util.regex.Pattern GROUP
PathParamSegment
public PathParamSegment(java.lang.String segment)
compareTo
public int compareTo(PathParamSegment pathParamSegment)
- Specified by:
compareTo
in interface java.lang.Comparable<PathParamSegment>
getRegex
public java.lang.String getRegex()
getPathExpression
public java.lang.String getPathExpression()
populatePathParams
protected void populatePathParams(HttpRequest request,
java.util.regex.Matcher matcher,
java.lang.String path)
matchPattern
public ResourceInvoker matchPattern(HttpRequest request,
java.lang.String path,
int start)
pathSegmentIndex
public static int pathSegmentIndex(java.lang.String string,
int start,
int stop)
Copyright © 2010. All Rights Reserved.