com.sapportals.wcm.service.urlgenerator

Interface IPlaceholderResolver


public interface IPlaceholderResolver

Used by the URL Generator Service to resolve placeholders within URIs.

Copyright (c) SAP AG


Method Summary
 String getPlaceholder()
          Returns the placeholder this instance of IPlaceholderResolver can handle.
 String resolvePlaceholder(String str, IResourceContext context)
          Replaces all occurrences of placeholder in str by the corresponding value.
 

Method Detail

getPlaceholder

String getPlaceholder()
Returns the placeholder this instance of IPlaceholderResolver can handle.

Returns:
the placeholder which can be resolved by this instance

resolvePlaceholder

String resolvePlaceholder(String str,
                          IResourceContext context)
                          throws ResourceException
Replaces all occurrences of placeholder in str by the corresponding value.

Parameters:
str - the String to resolve its contained placeholders
context - the IResourceContext
Returns:
a String containing the resolved version of the original string
Throws:
ResourceException - on error
Access Rights

This class can be accessed from:


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


Copyright 2011 SAP AG Complete Copyright Notice