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 classSegmentNode.Matchprotected classSegmentNode.SortEntrystatic classSegmentNode.SortFactor
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,SegmentNode>childrenstatic java.util.List<javax.ws.rs.core.MediaType>DEFAULT_ACCEPTSprotected booleanlooseStep2RequestMatchingprotected booleanrequestMatchingSetstatic java.lang.StringRESTEASY_CHOSEN_ACCEPTstatic java.lang.StringRESTEASY_SERVER_HAS_PRODUCESprotected java.lang.Stringsegmentprotected java.util.List<MethodExpression>targetsprotected booleanwiderRequestMatchingstatic 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 voidaddExpression(MethodExpression expression)static SegmentNode.SortFactorcreateSortFactor(javax.ws.rs.core.MediaType client, javax.ws.rs.core.MediaType server)SegmentNode.Matchmatch(java.util.List<SegmentNode.Match> matches, java.lang.String httpMethod, HttpRequest request)ResourceInvokermatch(HttpRequest request, int start)private java.lang.String[]matchingMethods(java.util.List<SegmentNode.SortEntry> sortList)voidpotentials(java.lang.String path, int start, java.util.List<MethodExpression> matches)private java.lang.StringrequestToString(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)
-
-