public class RootSegment extends Segment
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<ResourceMethod>> |
bounded |
protected Map<String,PathParamSegment> |
locatorExpressions |
protected Map<String,PathParamSegment> |
resourceExpressions |
protected Map<String,SimpleSegment> |
simpleSegments |
protected List<PathParamSegment> |
sortedLocatorExpressions |
protected List<PathParamSegment> |
sortedResourceExpressions |
| Constructor and Description |
|---|
RootSegment() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPath(String[] segments,
int index,
ResourceMethod invoker) |
void |
addPath(String path,
ResourceMethod invoker) |
Map<String,List<ResourceMethod>> |
getBounded()
Return a map of paths and what resource methods they are bound to
|
protected boolean |
isEmpty() |
protected ResourceMethod |
matchChildren(HttpRequest request,
String path,
int start) |
ResourceMethod |
matchRoot(HttpRequest request) |
ResourceMethod |
matchRoot(HttpRequest request,
int start) |
addMethod, isResponseMediaTypeAllowed, matchprotected Map<String,SimpleSegment> simpleSegments
protected Map<String,PathParamSegment> resourceExpressions
protected List<PathParamSegment> sortedResourceExpressions
protected Map<String,PathParamSegment> locatorExpressions
protected List<PathParamSegment> sortedLocatorExpressions
protected Map<String,List<ResourceMethod>> bounded
public Map<String,List<ResourceMethod>> getBounded()
protected void addPath(String[] segments, int index, ResourceMethod invoker)
public void addPath(String path, ResourceMethod invoker)
protected ResourceMethod matchChildren(HttpRequest request, String path, int start)
public ResourceMethod matchRoot(HttpRequest request)
public ResourceMethod matchRoot(HttpRequest request, int start)
Copyright © 2016. All rights reserved.