com.sun.jersey.api.uri
Interface ExtendedUriInfo

All Superinterfaces:
javax.ws.rs.core.UriInfo

public interface ExtendedUriInfo
extends javax.ws.rs.core.UriInfo

Extentions to UriInfo.


Method Summary
 java.util.List<UriTemplate> getAncestorTemplates()
          Get a read-only list of UriTemplate for ancestor resources.
 javax.ws.rs.core.PathSegment getPathSegment(java.lang.String templateVariable)
          Get a path segment that contains a template variable.
 javax.ws.rs.core.PathSegment getPathSegment(java.lang.String name, boolean decode)
          Get a path segment that contains a template variable.
 
Methods inherited from interface javax.ws.rs.core.UriInfo
getAbsolutePath, getAbsolutePathBuilder, getAncestorResources, getAncestorResourceURIs, getAncestorResourceURIs, getBaseUri, getBaseUriBuilder, getPath, getPath, getPathExtension, getPathParameters, getPathParameters, getPathSegments, getPathSegments, getPlatonicRequestUriBuilder, getQueryParameters, getQueryParameters, getRequestUri, getRequestUriBuilder
 

Method Detail

getAncestorTemplates

java.util.List<UriTemplate> getAncestorTemplates()
Get a read-only list of UriTemplate for ancestor resources. Each entry is a URI template that is the value of the Path that is a partial path that matched a resource class, a sub-resource method or a sub-resource locator. Entries are ordered in reverse request URI matching order, with the root resource URI last.

Returns:
a read-only list of URI templates for ancestor resources.

getPathSegment

javax.ws.rs.core.PathSegment getPathSegment(java.lang.String templateVariable)
Get a path segment that contains a template variable. All sequences of escaped octets are decoded, equivalent to getPathSegment(true).

Parameters:
templateVariable -
Returns:
the path segment or null if a there the matching path does not contain the template

getPathSegment

javax.ws.rs.core.PathSegment getPathSegment(java.lang.String name,
                                            boolean decode)
Get a path segment that contains a template variable.

Parameters:
name - the template variable name
decode - controls whether sequences of escaped octets are decoded (true) or not (false).
Returns:
the path segment or null if a there the matching path does not contain the template