org.cruxframework.crux.core.server.rest.core.registry
Class RootSegment
java.lang.Object
org.cruxframework.crux.core.server.rest.core.registry.Segment
org.cruxframework.crux.core.server.rest.core.registry.RootSegment
- Direct Known Subclasses:
- SimpleSegment
public class RootSegment
- extends Segment
- Author:
- Thiago da Rosa de Bustamante
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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<ResourceMethod>> bounded
RootSegment
public RootSegment()
getBounded
public Map<String,List<ResourceMethod>> 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,
ResourceMethod invoker)
addPath
public void addPath(String path,
ResourceMethod invoker)
matchChildren
protected ResourceMethod matchChildren(HttpRequest request,
String path,
int start)
matchRoot
public ResourceMethod matchRoot(HttpRequest request)
matchRoot
public ResourceMethod matchRoot(HttpRequest request,
int start)
Copyright © 2015. All rights reserved.