com.sun.ws.rest.spi.uri.rules
Interface UriRuleContext

All Superinterfaces:
HttpContext

public interface UriRuleContext
extends HttpContext


Method Summary
 java.util.List<java.lang.String> getGroupValues()
          Get the list to store the values of a pattern's capturing groups.
 java.lang.Object getResource(java.lang.Class resourceClass)
          Get the resource instance from a resource class.
 UriRules<UriRule> getRules(java.lang.Class resourceClass)
          Get the rules for a resource class.
 void pushResource(java.lang.Object resource, UriTemplate template)
          Push the resource and matching URI template associated with the resource.
 void pushRightHandPathLength(int rhpathlen)
          Push the right hand path length to calculate the entry for the list of matching (ancestor) URI paths.
 void setTemplateValues(java.util.List<java.lang.String> names)
          Set template values that are the values of a pattern's capturing groups.
 
Methods inherited from interface com.sun.ws.rest.api.core.HttpContext
getRequest, getResponse, getUriInfo
 

Method Detail

getResource

java.lang.Object getResource(java.lang.Class resourceClass)
Get the resource instance from a resource class.

Parameters:
resourceClass - the resource class
Returns:
the resource instance

getRules

UriRules<UriRule> getRules(java.lang.Class resourceClass)
Get the rules for a resource class.

Parameters:
resourceClass - the resource class that has rules
Returns:
the rules

getGroupValues

java.util.List<java.lang.String> getGroupValues()
Get the list to store the values of a pattern's capturing groups.

Returns:
the list to store capturing group values.

setTemplateValues

void setTemplateValues(java.util.List<java.lang.String> names)
Set template values that are the values of a pattern's capturing groups.

Parameters:
names - the template names associated with the capturing group values.

pushResource

void pushResource(java.lang.Object resource,
                  UriTemplate template)
Push the resource and matching URI template associated with the resource.

Parameters:
resource -

pushRightHandPathLength

void pushRightHandPathLength(int rhpathlen)
Push the right hand path length to calculate the entry for the list of matching (ancestor) URI paths.

Parameters:
rhpathlen - the right hand length