com.sun.jersey.spi.uri.rules
Interface UriRuleContext

All Superinterfaces:
HttpContext, UriMatchResultContext

public interface UriRuleContext
extends HttpContext, UriMatchResultContext

The context for processing URI rules.

Author:
Paul.Sandoz@Sun.Com

Method Summary
 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 pushParameterValues(java.util.List<java.lang.String> names)
          Push parameter values that are the values of capturing groups in the current match result.
 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.
 
Methods inherited from interface com.sun.jersey.api.core.HttpContext
getProperties, getRequest, getResponse, getUriInfo
 
Methods inherited from interface com.sun.jersey.spi.uri.rules.UriMatchResultContext
getMatchResult, setMatchResult
 

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

pushParameterValues

void pushParameterValues(java.util.List<java.lang.String> names)
Push parameter values that are the values of capturing groups in the current match result.

Parameters:
names - the parameter 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 - the resource
template - the URI template associated with the 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


Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.