public class SegmentNode extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SegmentNode.Match |
protected class |
SegmentNode.SortEntry |
static class |
SegmentNode.SortFactor |
Modifier and Type | Field and Description |
---|---|
protected Map<String,SegmentNode> |
children |
static List<javax.ws.rs.core.MediaType> |
DEFAULT_ACCEPTS |
static String |
RESTEASY_CHOSEN_ACCEPT |
protected String |
segment |
protected List<MethodExpression> |
targets |
static javax.ws.rs.core.MediaType[] |
WILDCARD_ARRAY |
Constructor and Description |
---|
SegmentNode(String segment) |
Modifier and Type | Method and Description |
---|---|
protected void |
addExpression(MethodExpression expression) |
static SegmentNode.SortFactor |
createSortFactor(javax.ws.rs.core.MediaType client,
javax.ws.rs.core.MediaType server) |
ResourceInvoker |
match(HttpRequest request,
int start) |
SegmentNode.Match |
match(List<SegmentNode.Match> matches,
String httpMethod,
HttpRequest request) |
void |
potentials(String path,
int start,
List<MethodExpression> matches) |
public static final String RESTEASY_CHOSEN_ACCEPT
public static final javax.ws.rs.core.MediaType[] WILDCARD_ARRAY
public static final List<javax.ws.rs.core.MediaType> DEFAULT_ACCEPTS
protected String segment
protected Map<String,SegmentNode> children
protected List<MethodExpression> targets
public SegmentNode(String segment)
public ResourceInvoker match(HttpRequest request, int start)
public void potentials(String path, int start, List<MethodExpression> matches)
public static SegmentNode.SortFactor createSortFactor(javax.ws.rs.core.MediaType client, javax.ws.rs.core.MediaType server)
public SegmentNode.Match match(List<SegmentNode.Match> matches, String httpMethod, HttpRequest request)
protected void addExpression(MethodExpression expression)
Copyright © 2015 JBoss by Red Hat. All rights reserved.