Package org.jboss.resteasy.core.registry
Class SegmentNode
- java.lang.Object
-
- org.jboss.resteasy.core.registry.SegmentNode
-
public class SegmentNode extends java.lang.Object
- Version:
- $Revision: 1 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SegmentNode.Match
protected class
SegmentNode.SortEntry
static class
SegmentNode.SortFactor
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description SegmentNode(java.lang.String segment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addExpression(MethodExpression expression)
static SegmentNode.SortFactor
createSortFactor(javax.ws.rs.core.MediaType client, javax.ws.rs.core.MediaType server)
SegmentNode.Match
match(java.util.List<SegmentNode.Match> matches, java.lang.String httpMethod, HttpRequest request)
ResourceInvoker
match(HttpRequest request, int start)
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)
-
-
-
Field Detail
-
RESTEASY_CHOSEN_ACCEPT
public static final java.lang.String RESTEASY_CHOSEN_ACCEPT
- See Also:
- Constant Field Values
-
RESTEASY_SERVER_HAS_PRODUCES
public static final java.lang.String RESTEASY_SERVER_HAS_PRODUCES
- See Also:
- Constant Field Values
-
WILDCARD_ARRAY
public static final javax.ws.rs.core.MediaType[] WILDCARD_ARRAY
-
DEFAULT_ACCEPTS
public static final java.util.List<javax.ws.rs.core.MediaType> DEFAULT_ACCEPTS
-
segment
protected java.lang.String segment
-
children
protected java.util.Map<java.lang.String,SegmentNode> children
-
targets
protected java.util.List<MethodExpression> targets
-
requestMatchingSet
protected boolean requestMatchingSet
-
looseStep2RequestMatching
protected boolean looseStep2RequestMatching
-
widerRequestMatching
protected boolean widerRequestMatching
-
-
Method Detail
-
match
public ResourceInvoker match(HttpRequest request, int start)
-
potentials
public void potentials(java.lang.String path, int start, java.util.List<MethodExpression> matches)
-
createSortFactor
public static SegmentNode.SortFactor createSortFactor(javax.ws.rs.core.MediaType client, javax.ws.rs.core.MediaType server)
-
match
public SegmentNode.Match match(java.util.List<SegmentNode.Match> matches, java.lang.String httpMethod, HttpRequest request)
-
addExpression
protected void addExpression(MethodExpression expression)
-
requestToString
private java.lang.String requestToString(HttpRequest request)
-
matchingMethods
private java.lang.String[] matchingMethods(java.util.List<SegmentNode.SortEntry> sortList)
-
-