public class SegmentNode
extends java.lang.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 java.util.Map<java.lang.String,SegmentNode> |
children |
static java.util.List<javax.ws.rs.core.MediaType> |
DEFAULT_ACCEPTS |
protected boolean |
looseStep2RequestMatching |
protected boolean |
requestMatchingSet |
static java.lang.String |
RESTEASY_CHOSEN_ACCEPT |
static java.lang.String |
RESTEASY_SERVER_HAS_PRODUCES |
protected java.lang.String |
segment |
protected java.util.List<MethodExpression> |
targets |
protected boolean |
widerRequestMatching |
static javax.ws.rs.core.MediaType[] |
WILDCARD_ARRAY |
Constructor and Description |
---|
SegmentNode(java.lang.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(java.util.List<SegmentNode.Match> matches,
java.lang.String httpMethod,
HttpRequest request) |
private java.lang.String[] |
matchingMethods(java.util.List<SegmentNode.SortEntry> sortList) |
void |
potentials(java.lang.String path,
int start,
java.util.List<MethodExpression> matches) |
private java.lang.String |
requestToString(HttpRequest request) |
public static final java.lang.String RESTEASY_CHOSEN_ACCEPT
public static final java.lang.String RESTEASY_SERVER_HAS_PRODUCES
public static final javax.ws.rs.core.MediaType[] WILDCARD_ARRAY
public static final java.util.List<javax.ws.rs.core.MediaType> DEFAULT_ACCEPTS
protected java.lang.String segment
protected java.util.Map<java.lang.String,SegmentNode> children
protected java.util.List<MethodExpression> targets
protected boolean requestMatchingSet
protected boolean looseStep2RequestMatching
protected boolean widerRequestMatching
public ResourceInvoker match(HttpRequest request, int start)
public void potentials(java.lang.String path, int start, java.util.List<MethodExpression> matches)
public static SegmentNode.SortFactor createSortFactor(javax.ws.rs.core.MediaType client, javax.ws.rs.core.MediaType server)
public SegmentNode.Match match(java.util.List<SegmentNode.Match> matches, java.lang.String httpMethod, HttpRequest request)
protected void addExpression(MethodExpression expression)
private java.lang.String requestToString(HttpRequest request)
private java.lang.String[] matchingMethods(java.util.List<SegmentNode.SortEntry> sortList)