org.jboss.resteasy.core.registry
Class RootSegment

java.lang.Object
  extended by org.jboss.resteasy.core.registry.Segment
      extended by org.jboss.resteasy.core.registry.RootSegment
Direct Known Subclasses:
SimpleSegment

public class RootSegment
extends Segment

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  Map<String,List<ResourceInvoker>> bounded
           
protected  Map<String,PathParamSegment> locatorExpressions
           
protected  Map<String,PathParamSegment> resourceExpressions
           
protected  Map<String,SimpleSegment> simpleSegments
           
protected  List<PathParamSegment> sortedLocatorExpressions
           
protected  List<PathParamSegment> sortedResourceExpressions
           
 
Fields inherited from class org.jboss.resteasy.core.registry.Segment
locator, methods, RESTEASY_CHOSEN_ACCEPT
 
Constructor Summary
RootSegment()
           
 
Method Summary
protected  void addPath(String[] segments, int index, ResourceInvoker invoker)
           
 void addPath(String path, ResourceInvoker invoker)
           
 Map<String,List<ResourceInvoker>> getBounded()
          Return a map of paths and what resource methods they are bound to
protected  boolean isEmpty()
           
protected  boolean isLocator(Method method)
           
protected  ResourceInvoker matchChildren(HttpRequest request, String path, int start)
           
 ResourceInvoker matchRoot(HttpRequest request)
           
 ResourceInvoker matchRoot(HttpRequest request, int start)
           
protected  ResourceInvoker removePath(String[] segments, int index, Method method)
           
 ResourceInvoker removePath(String path, Method method)
           
 
Methods inherited from class org.jboss.resteasy.core.registry.Segment
match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

simpleSegments

protected Map<String,SimpleSegment> simpleSegments

resourceExpressions

protected Map<String,PathParamSegment> resourceExpressions

sortedResourceExpressions

protected List<PathParamSegment> sortedResourceExpressions

locatorExpressions

protected Map<String,PathParamSegment> locatorExpressions

sortedLocatorExpressions

protected List<PathParamSegment> sortedLocatorExpressions

bounded

protected Map<String,List<ResourceInvoker>> bounded
Constructor Detail

RootSegment

public RootSegment()
Method Detail

getBounded

public Map<String,List<ResourceInvoker>> getBounded()
Return a map of paths and what resource methods they are bound to

Returns:

isEmpty

protected boolean isEmpty()
Overrides:
isEmpty in class Segment

addPath

protected void addPath(String[] segments,
                       int index,
                       ResourceInvoker invoker)

isLocator

protected boolean isLocator(Method method)

removePath

protected ResourceInvoker removePath(String[] segments,
                                     int index,
                                     Method method)

addPath

public void addPath(String path,
                    ResourceInvoker invoker)

removePath

public ResourceInvoker removePath(String path,
                                  Method method)

matchChildren

protected ResourceInvoker matchChildren(HttpRequest request,
                                        String path,
                                        int start)

matchRoot

public ResourceInvoker matchRoot(HttpRequest request)

matchRoot

public ResourceInvoker matchRoot(HttpRequest request,
                                 int start)


Copyright © 2013. All Rights Reserved.