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


public interface UriRuleContext


Method Summary
 java.util.List<java.lang.String> getGroupValues()
          Get the list to store the values of a pattern's capturing groups.
 HttpContextAccess getHttpContext()
          Get the HTTP context.
 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 setTemplateValues(java.util.List<java.lang.String> names)
          Set template values that are the values of a pattern's capturing groups.
 

Method Detail

getHttpContext

HttpContextAccess getHttpContext()
Get the HTTP context.

Returns:
the HTTP context

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.


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.