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:
Comparable<PathParamSegment>

public class PathParamSegment
extends Segment
implements Comparable<PathParamSegment>

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
static Pattern GROUP
           
protected  List<org.jboss.resteasy.core.registry.PathParamSegment.Group> groups
           
protected  int literalCharacters
           
protected  int numCapturingGroups
           
protected  int numNonDefaultGroups
           
protected  String pathExpression
           
protected  Pattern pattern
           
protected  String regex
           
 
Fields inherited from class org.jboss.resteasy.core.registry.Segment
locator, methods, RESTEASY_CHOSEN_ACCEPT
 
Constructor Summary
PathParamSegment(String segment)
           
 
Method Summary
 int compareTo(PathParamSegment pathParamSegment)
           
 String getPathExpression()
           
 String getRegex()
           
 ResourceInvoker matchPattern(HttpRequest request, String path, int start)
           
static int pathSegmentIndex(String string, int start, int stop)
           
protected  void populatePathParams(HttpRequest request, Matcher matcher, 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 String pathExpression

regex

protected String regex

pattern

protected Pattern pattern

groups

protected 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 Pattern GROUP
Constructor Detail

PathParamSegment

public PathParamSegment(String segment)
Method Detail

compareTo

public int compareTo(PathParamSegment pathParamSegment)
Specified by:
compareTo in interface Comparable<PathParamSegment>

getRegex

public String getRegex()

getPathExpression

public String getPathExpression()

populatePathParams

protected void populatePathParams(HttpRequest request,
                                  Matcher matcher,
                                  String path)

matchPattern

public ResourceInvoker matchPattern(HttpRequest request,
                                    String path,
                                    int start)

pathSegmentIndex

public static int pathSegmentIndex(String string,
                                   int start,
                                   int stop)


Copyright © 2012. All Rights Reserved.