com.sapportals.wcm.protocol.webdav

Class UriContext

java.lang.Object
  extended by com.sapportals.wcm.protocol.webdav.UriContext

public class UriContext
extends Object

Maps uri references to WCM Paths (RID) in a context of a base Uri.

Copyright (c) SAP AG 2001-2004


Constructor Summary
UriContext(RID basePath, IUriMapper mapper)
          Create a new UriContext which follows the given mapping and has the given WCM Path as base.
 
Method Summary
 RID getBasePath()
          Retrieve the base WCM Path of this context
 IUriReference getBaseReference()
          Retrieve the base uri as reference without scheme and host name
 IHierarchicalUri getBaseUri()
          Retrieve the base uri of this context
 RID mapWcmPath(IUriReference ref)
          Maps the uri reference to the the local WCM Path.
 RID mapWcmPath(IUriReference ref, boolean systemWide)
          Maps the uri reference to the the local WCM Path.
 RID mapWcmPath(String externalForm)
          Maps the external string representation of an uri reference to the the local WCM Path.
 RID mapWcmPath(String externalForm, boolean systemWide)
          Maps the external string representation of an uri reference to the the local WCM Path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriContext

public UriContext(RID basePath,
                  IUriMapper mapper)
Create a new UriContext which follows the given mapping and has the given WCM Path as base.

Parameters:
basePath - anchor for mapping in WCM Path space
mapper - for general mapping between WCM Path and Uri space
Method Detail

getBasePath

public RID getBasePath()
Retrieve the base WCM Path of this context

Returns:
base WCM Path of this context

getBaseReference

public IUriReference getBaseReference()
Retrieve the base uri as reference without scheme and host name

Returns:
base uri as reference without scheme and host name

getBaseUri

public IHierarchicalUri getBaseUri()
Retrieve the base uri of this context

Returns:
the base uri of this context

mapWcmPath

public RID mapWcmPath(String externalForm)
Maps the external string representation of an uri reference to the the local WCM Path.

Parameters:
externalForm - of uri reference
Returns:
mapped WCM Path or null if no mapping possible

mapWcmPath

public RID mapWcmPath(String externalForm,
                      boolean systemWide)
Maps the external string representation of an uri reference to the the local WCM Path.

Parameters:
externalForm - of uri reference
systemWide - if true, uses all installed uri mappers to map the uri to a rid
Returns:
mapped WCM Path or null if no mapping possible

mapWcmPath

public RID mapWcmPath(IUriReference ref)
Maps the uri reference to the the local WCM Path.

Parameters:
ref - uri reference
Returns:
mapped WCM Path or null if no mapping possible

mapWcmPath

public RID mapWcmPath(IUriReference ref,
                      boolean systemWide)
Maps the uri reference to the the local WCM Path.

Parameters:
ref - uri reference
systemWide - if true, uses all installed uri mappers to map the uri to a rid
Returns:
mapped WCM Path or null if no mapping possible
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