com.sap.netweaver.bc.rf.common

Interface IHierarchicalUri

All Superinterfaces:
IAbsoluteUri
All Known Implementing Classes:
HttpUrl

public interface IHierarchicalUri
extends IAbsoluteUri

A RFC2396 URI interface.

    remainder   ::= '//' authority abspath query
    abspath     ::= '/' pathsegment | empty
    pathsegment ::= name | name '/' pathsegment | empty
    query       ::= '?' uri-characters | empty
 

Copyright (c) SAP AG 2001-2003


Method Summary
 IHierarchicalUri appendPath(String path)
          Append the given path segment to the current path of this uri.
 String getAuthority()
          Return authority part of this hierarchical Uri.
 String getPath()
          Return path of this Uri or, if not there, the empty string
 String[] getPathSegments()
          Return the segments of the uri path
 String getQuery()
          Return query of this Uri in RFC 2396 encoded form or, if not there, null
 IHierarchicalUri getRoot()
          Returns the uri of the root collection (path = "/").
 boolean isAncestorOf(IHierarchicalUri other)
          Determine if this Uri is ancestor of other uri
 IUriReference mapToAbsolutePath(IUriReference ref)
          Given this Uri as the base, map the uri reference to a uri reference with absolute path component.
 IUriReference mapToAbsolutePath(Rid wcmPath)
          TBD: Description of the Method.
 IUriReference mapToAbsolutePath(Rid wcmPath, UriCodec codec)
          TBD: Description of the Method.
 IHierarchicalUri mapToAbsoluteUri(Rid wcmPath)
          TBD: Description of the Method.
 IHierarchicalUri mapToAbsoluteUri(Rid wcmPath, UriCodec codec)
          TBD: Description of the Method.
 IRid mapToResourceID(IUriReference ref)
          TBD: Description of the Method.
 IRid mapToResourceID(IUriReference ref, UriCodec codec)
          TBD: Description of the Method.
 IHierarchicalUri setPath(String path)
          Construct a new object of same type with the given path.
 IHierarchicalUri setQuery(String query)
          Construct a new object of same type with the given query.
 IUriReference unresolve(IHierarchicalUri other, String fragment)
          Convert the given uri to a relative uri reference with this uri as base.
 
Methods inherited from interface com.sap.netweaver.bc.rf.common.IAbsoluteUri
getRemainder, getScheme, resolve, toExternalForm
 

Method Detail

appendPath

IHierarchicalUri appendPath(String path)
Append the given path segment to the current path of this uri. Takes care of leading, trailing slashes. Note that the path must be uri encoded or the resulting uri is not valid.

Parameters:
path - TBD: Description of the incoming method parameter
Returns:
new uri with concatenated path

getAuthority

String getAuthority()
Return authority part of this hierarchical Uri.

Returns:
authority part of this hierarchical Uri

getPath

String getPath()
Return path of this Uri or, if not there, the empty string

Returns:
path of this uri

getPathSegments

String[] getPathSegments()
Return the segments of the uri path

Returns:
segments of uri path

getQuery

String getQuery()
Return query of this Uri in RFC 2396 encoded form or, if not there, null

Returns:
query of this uri in RFC 2396 encoded form or null

getRoot

IHierarchicalUri getRoot()
Returns the uri of the root collection (path = "/").

Returns:
uri of server root

isAncestorOf

boolean isAncestorOf(IHierarchicalUri other)
Determine if this Uri is ancestor of other uri

Parameters:
other - TBD: Description of the incoming method parameter
Returns:
if this Uri is ancestor of other uri

unresolve

IUriReference unresolve(IHierarchicalUri other,
                        String fragment)
Convert the given uri to a relative uri reference with this uri as base. If this uri is no ancestor of the other uri, an absolute uri reference is returned.

Parameters:
other - uri to unresolve
fragment - to add to result uri reference
Returns:
uri reference relative to this uri

mapToResourceID

IRid mapToResourceID(IUriReference ref)
TBD: Description of the Method.

Parameters:
ref - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

mapToResourceID

IRid mapToResourceID(IUriReference ref,
                     UriCodec codec)
TBD: Description of the Method.

Parameters:
ref - TBD: Description of the incoming method parameter
codec - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

mapToAbsolutePath

IUriReference mapToAbsolutePath(Rid wcmPath)
TBD: Description of the Method.

Parameters:
wcmPath - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

mapToAbsolutePath

IUriReference mapToAbsolutePath(Rid wcmPath,
                                UriCodec codec)
TBD: Description of the Method.

Parameters:
wcmPath - TBD: Description of the incoming method parameter
codec - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

mapToAbsolutePath

IUriReference mapToAbsolutePath(IUriReference ref)
Given this Uri as the base, map the uri reference to a uri reference with absolute path component.
 Example: "http://host/docs" + "test%203", gives "/docs/test%203"
 Example: "http://host/docs" + "http://another/fs/test", gives "http://another/fs/test"
 

Parameters:
ref - TBD: Description of the incoming method parameter
Returns:
the mapped uri reference

mapToAbsoluteUri

IHierarchicalUri mapToAbsoluteUri(Rid wcmPath)
TBD: Description of the Method.

Parameters:
wcmPath - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

mapToAbsoluteUri

IHierarchicalUri mapToAbsoluteUri(Rid wcmPath,
                                  UriCodec codec)
TBD: Description of the Method.

Parameters:
wcmPath - TBD: Description of the incoming method parameter
codec - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

setQuery

IHierarchicalUri setQuery(String query)
Construct a new object of same type with the given query. If query is null , the new uri will be without query. The query string must be in RFC 2396 encoded form. See UriQuery for manipulation of query strings.

Parameters:
query - encoded query string for returned object
Returns:
hierarchical uri of same type as this

setPath

IHierarchicalUri setPath(String path)
Construct a new object of same type with the given path. If path is null , the new uri will have the root path /. The path string must be in RFC 2396 encoded form. See UriCodec. The query of the resulting uri will always be empty.

Parameters:
path - encoded path string for returned object
Returns:
hierarchical uri of same type as this
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice