com.fusesource.fmc.restjmx.util
Class UriInfoHelper

java.lang.Object
  extended by com.fusesource.fmc.restjmx.util.UriInfoHelper

public final class UriInfoHelper
extends java.lang.Object


Method Summary
static java.lang.String getUriPath(javax.ws.rs.core.UriInfo info, java.lang.String endingSegmentPath)
          Equivalent to calling getUriPath(info, endingSegmentPath, true).
static java.lang.String getUriPath(javax.ws.rs.core.UriInfo info, java.lang.String endingSegmentPath, boolean decode)
          Assuming the endingSegmentPath is unique within the given URI, compose a URI up to and including the endingSegmentPath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUriPath

public static java.lang.String getUriPath(javax.ws.rs.core.UriInfo info,
                                          java.lang.String endingSegmentPath)
Equivalent to calling getUriPath(info, endingSegmentPath, true).

See Also:
getUriPath(UriInfo, String, boolean)

getUriPath

public static java.lang.String getUriPath(javax.ws.rs.core.UriInfo info,
                                          java.lang.String endingSegmentPath,
                                          boolean decode)
Assuming the endingSegmentPath is unique within the given URI, compose a URI up to and including the endingSegmentPath.

For example getUriPath(UriInfo info, String endingSegmentPath) where info.getPath() = "x/y/z" and endingSegmentPath = "y", would yield "x/y".

Parameters:
info - The source URI.
endingSegmentPath - The path used as the test for the last segment. to be included composed URI
decode - Controls whether sequences of escaped octets in path segments and matrix parameter values are decoded (true) or not (false).
Returns:
The composed URI


Copyright © 2012 FuseSource. All Rights Reserved.