org.jboss.resteasy.core.registry
Class PathParamSegment

java.lang.Object
  extended by org.jboss.resteasy.core.registry.Segment
      extended by 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

Field Summary
static java.util.regex.Pattern GROUP
           
protected  java.util.List<org.jboss.resteasy.core.registry.PathParamSegment.Group> groups
           
protected  int literalCharacters
           
protected  int numCapturingGroups
           
protected  int numNonDefaultGroups
           
protected  java.lang.String pathExpression
           
protected  java.util.regex.Pattern pattern
           
protected  java.lang.String regex
           
 
Fields inherited from class org.jboss.resteasy.core.registry.Segment
locator, methods
 
Constructor Summary
PathParamSegment(java.lang.String segment)
           
 
Method Summary
 int compareTo(PathParamSegment pathParamSegment)
           
 java.lang.String getPathExpression()
           
 java.lang.String getRegex()
           
 ResourceInvoker matchPattern(HttpRequest request, java.lang.String path, int start)
           
static int pathSegmentIndex(java.lang.String string, int start, int stop)
           
protected  void populatePathParams(HttpRequest request, java.util.regex.Matcher matcher, java.lang.String path)
           
 
Methods inherited from class org.jboss.resteasy.core.registry.Segment
isEmpty, match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PathParamSegment

public PathParamSegment(java.lang.String segment)
Method Detail

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.