|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.tc.webdynpro.services.sal.url.api.WDURLGenerator
WDURLGenerator provides static methods which generated URLs for
any IWDWebResource objects that are referenced by Web Dynpro applications.
The interface provides methods which are responsible for the following:
IWDURLGenerator| Constructor Summary | |
WDURLGenerator()
|
|
| Method Summary | |
static java.lang.String |
getAbsoluteWebResourceURL(java.lang.String objectName)
Returns an absolute URL that points to the root of the public resources of the specified deployable object. |
static java.lang.String |
getAbsoluteWebResourceURL(java.lang.String objectName,
java.lang.String resourceName)
Returns an absolute URL for a specified web resource located in a specified deployable object. |
static java.lang.String |
getAbsoluteWebResourceURL(WDDeployableObjectPart deployableObjectPart)
Returns an absolute URL pointing to the root of the specified deployable object part. |
static java.lang.String |
getAbsoluteWebResourceURL(WDDeployableObjectPart deployableObjectPart,
java.lang.String resourceName)
Returns an absolute URL for a specified web resource of a specified deployable object part. |
static java.lang.String |
getApplicationURL(java.lang.String deployableObjectName,
java.lang.String applicationPartName)
Return is the application URL to the deployable object part supplied as input parameter. |
static java.lang.String |
getApplicationURL(java.lang.String objectName,
java.lang.String partName,
java.util.Map urlParameters)
Return is the application URL for the specified deployable object part with appended URL parameters given by urlParameters. |
static java.lang.String |
getApplicationURL(WDDeployableObjectPart deployableObjectPart)
Return is the application URL to the deployable object part supplied as input parameter. |
static java.lang.String |
getApplicationURL(WDDeployableObjectPart deployableObjectPart,
java.util.Map urlParameters)
Return is the application URL for the specified deployableObjectPart with appended
URL parameters given by urlParameters. |
static java.lang.String |
getDynamicApplicationURL(java.lang.String deployableObjectName,
java.lang.String applicationPartName)
Return is the dynamic part of the application URL for the application specified by applicationPartName and the deployable object deployableObjectName. |
static java.lang.String |
getDynamicApplicationURL(WDDeployableObjectPart deployableObjectPart)
Return is the dynamic part of the application URL for the application part specified by deployableObjectPart. |
static java.lang.String |
getPortalIconsResourcePath()
Return is the resource path to the Portal icons. |
static java.lang.String |
getPortalIconsWebResourcePath()
Return is the Web resource path to the Portal icons. |
static java.lang.String |
getPublicResourcePath(java.lang.String resourceName)
Returns the file system path to the resource specified by resourceName
that is expected to be in the "public" directory of the deployable object
(=development component) of the currently running Web Dynpro application. |
static java.lang.String |
getPublicResourcePath(WDDeployableObjectPart part,
java.lang.String resourceName)
Returns the file system path to the resource specified by resourceName
that is expected to be in the "public" directory of the deployable object part specified
b< part. |
static java.lang.String |
getResourcePath()
Deprecated. Method will throw a java.lang.UnsupportedOperationException in
the next release after NetWeaver 04. Use getResourcePath(String) instead. |
static java.lang.String |
getResourcePath(java.lang.String objectName)
Returns the real public resource path of a specified deployable object. |
static java.lang.String |
getResourcePath(java.lang.String objectName,
java.lang.String resourceName)
Returns the real public resource path of a specified deployable object. |
static java.lang.String |
getResourcePath(WDDeployableObjectPart deployableObjectPart)
Returns the real public resource path of a specified deployable object part. |
static java.lang.String |
getResourcePath(WDDeployableObjectPart deployableObjectPart,
java.lang.String resourceName)
Returns the real public resource path of a specified deployable object part. |
static java.lang.String |
getSAPIconsResourcePath()
Return is the resource path to the SAP icons. |
static java.lang.String |
getSAPIconsWebResourcePath()
Return is the Web resource path to the SAP icons. |
static java.lang.String |
getStaticApplicationURL()
Return is the static part of a Web Dynpro application URL. |
static java.lang.String |
getWebResourcePath()
Returns the web resource path, which is independent from any deployable object or application. |
static java.lang.String |
getWebResourcePath(java.lang.String objectName)
Returns the used web resource path of a specified deployable object. |
static java.lang.String |
getWebResourcePath(WDDeployableObjectPart deployableObjectPart)
Returns the used web resource path of a specified deployable object part. |
static java.lang.String |
getWebResourceURL(java.lang.String objectName)
Returns an URL that points to the root of the public resources of the specified deployable object. |
static java.lang.String |
getWebResourceURL(java.lang.String objectName,
java.lang.String resourceName)
Returns an URL for a specified web resource located in a specified deployable object. |
static java.lang.String |
getWebResourceURL(WDDeployableObjectPart deployableObjectPart)
Returns an URL pointing to the root of the specified deployable object part. |
static java.lang.String |
getWebResourceURL(WDDeployableObjectPart deployableObjectPart,
java.lang.String resourceName)
Returns an URL for a specified web resource of a specified deployable object part. |
static java.lang.String |
getWorkloadBalancedApplicationURL(java.lang.String deployableObjectName,
java.lang.String applicationPartName)
Return is the application URL of the application deployable object part supplied as input parameter. |
static java.lang.String |
getWorkloadBalancedApplicationURL(java.lang.String objectName,
java.lang.String partName,
java.util.Map urlParameters)
Return is the workload balanced application URL for the specified deployable object part with appended URL parameters given by urlParameters. |
static java.lang.String |
getWorkloadBalancedApplicationURL(WDDeployableObjectPart deployableObjectPart)
Return is the application URL of the application deployable object part supplied as input parameter. |
static java.lang.String |
getWorkloadBalancedApplicationURL(WDDeployableObjectPart deployableObjectPart,
java.util.Map urlParameters)
Return is the workload balanced application URL for the specified deployableObjectPart with appended
URL parameters given by urlParameters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WDURLGenerator()
| Method Detail |
public static java.lang.String getPublicResourcePath(java.lang.String resourceName)
resourceName
that is expected to be in the "public" directory of the deployable object
(=development component) of the currently running Web Dynpro application. The "public"
directory contains resources which are not accessible by others via URL.
Using this method, it is possible to access resources which are imported in the SAP NetWeaver Developer Studio under the "/src/configuration" folder of a Web Dynpro project and then deployed together with this project.
On SAP J2EE Engine 6.40, this is ".\temp\webdynpro\public\
public static java.lang.String getPublicResourcePath(WDDeployableObjectPart part,
java.lang.String resourceName)
resourceName
that is expected to be in the "public" directory of the deployable object part specified
b< part. The "public" directory contains resources which are not accessible
by others via URL. The specified part must belong to a referenced deployable
object (=development component) of the currently executed Web Dynpro application,
otherwise an IllegalArgumentException will be thrown.
Using this method, it is possible to access resources which are imported in
the SAP NetWeaver Developer Studio under the "/src/configuration/
On SAP J2EE Engine 6.40, this is ".\temp\webdynpro\public\
java.lang.IllegalArgumentException - if the specified part does not belong
to a referenced deployable object of the currently running application
public static java.lang.String getResourcePath()
java.lang.UnsupportedOperationException in
the next release after NetWeaver 04. Use getResourcePath(String) instead.
public static java.lang.String getResourcePath(java.lang.String objectName)
objectName - the name of an deployable object
public static java.lang.String getResourcePath(java.lang.String objectName,
java.lang.String resourceName)
objectName - the name of an deployable objectresourceName - the name of the resource for which the path should be
created. This parameter must not be null or unspecified. It
is interpreted as a relative path (relativ to the specified deployable object)public static java.lang.String getResourcePath(WDDeployableObjectPart deployableObjectPart)
objectName
is the name of the deployable object of the deployableObjectPart,
and partType is the type of the deployable object part.deployableObjectPart - a deployable object part
public static java.lang.String getResourcePath(WDDeployableObjectPart deployableObjectPart,
java.lang.String resourceName)
throws WDAliasResolvingException
objectName
is the name of the deployable object of the deployableObjectPart,
and partType is the type of the deployable object part.deployableObjectPart - a deployable object partresourceName - the name of the resource for which the path should be
created. This parameter must not be null or unspecified. It
is interpreted as a relative path (relativ to the specified deployable object).WDAliasResolvingException - if the specified resourceName
contains an alias that couldn't be resolvedpublic static java.lang.String getWebResourcePath()
public static java.lang.String getWebResourcePath(java.lang.String objectName)
objectName - the name of an deployable object.public static java.lang.String getWebResourcePath(WDDeployableObjectPart deployableObjectPart)
objectName is the name of the deployable object of the
deployableObjectPart, and partType is the type of the
deployable object part.deployableObjectPart - a deployable object part
public static java.lang.String getWebResourceURL(java.lang.String objectName,
java.lang.String resourceName)
throws WDURLException
objectName - the name of an deployable object. This parameter must not be
null or unspecified.resourceName - the name of the resource (inclusive any relative path information
like "pictures/myImage.gif"); This parameter must not be null or unspecified.WDURLException - if the URL to the web resource couldn't be generated
public static java.lang.String getWebResourceURL(java.lang.String objectName)
throws WDURLException
getWebResourcePath(String).objectName - the name of an deployable object. This parameter must not be
null or unspecified.WDURLException - if the URL to the web resource couldn't be generatedgetWebResourcePath(String)
public static java.lang.String getWebResourceURL(WDDeployableObjectPart deployableObjectPart,
java.lang.String resourceName)
throws WDURLException
objectName is the name of the deployable object of the
deployableObjectPart.deployableObjectPart - a deployable object partresourceName - the name of the resource (inclusive any relative path information
like "pictures/myImage.gif"). This parameter must not be null or unspecified.WDURLException - if the URL to the web resource couldn't be generated
public static java.lang.String getWebResourceURL(WDDeployableObjectPart deployableObjectPart)
throws WDURLException
getWebResourcePath(WDDeployableObjectPart).deployableObjectPart - a deployable object partWDURLException - if the URL to the web resource couldn't be generatedgetWebResourcePath(WDDeployableObjectPart)
public static java.lang.String getAbsoluteWebResourceURL(java.lang.String objectName,
java.lang.String resourceName)
throws WDURLException
getWebResourceURL(String, String).objectName - the name of an deployable object. This parameter must not be
null or unspecified.resourceName - the name of the resource (inclusive any relative path information
like "pictures/myImage.gif"). This parameter must not be null or unspecified.WDURLException - if the URL to the web resource couldn't be generatedgetWebResourceURL(String, String)
public static java.lang.String getAbsoluteWebResourceURL(java.lang.String objectName)
throws WDURLException
getWebResourceURL(String).objectName - the name of an deployable object. This parameter must not be
null or unspecified.WDURLException - if the URL to the web resource couldn't be generatedgetWebResourceURL(String)
public static java.lang.String getAbsoluteWebResourceURL(WDDeployableObjectPart deployableObjectPart)
throws WDURLException
getWebResourceURL(WDDeployableObjectPart).deployableObjectPart - a deployable object partWDURLException - if the URL to the web resource couldn't be generatedgetWebResourceURL(WDDeployableObjectPart)
public static java.lang.String getAbsoluteWebResourceURL(WDDeployableObjectPart deployableObjectPart,
java.lang.String resourceName)
throws WDURLException
getWebResourceURL(WDDeployableObjectPart, String).deployableObjectPart - a deployable object partresourceName - the name of the resource (inclusive any relative path information
like "pictures/myImage.gif"). This parameter must not be null or unspecified.WDURLException - if the URL to the web resource couldn't be generatedgetWebResourceURL(WDDeployableObjectPart, String)
public static java.lang.String getApplicationURL(WDDeployableObjectPart deployableObjectPart)
throws WDURLException
deployableObjectPart - a deployable object part representing a Web Dynpro applicationWDURLException - if the URL couldn't be generated
public static java.lang.String getApplicationURL(java.lang.String deployableObjectName,
java.lang.String applicationPartName)
throws WDURLException
WDDeployableObjectPartType.APPLICATION with
the given applicationPartName within the deployable object with
name deployableObjectName.deployableObjectName - the name of a deployable objectapplicationPartName - the name of a application deployable object partWDURLException - if the URL couldn't be generated
public static java.lang.String getDynamicApplicationURL(java.lang.String deployableObjectName,
java.lang.String applicationPartName)
throws WDURLException
applicationPartName and the deployable object deployableObjectName.deployableObjectName - the name of the deployable object to which the application belongsapplicationPartName - the (fully-qualified) name of the application partWDURLException - if the URL couldn't be generated
public static java.lang.String getDynamicApplicationURL(WDDeployableObjectPart deployableObjectPart)
throws WDURLException
deployableObjectPart. deployableObjectPart - the deployable object part of the applicationWDURLException - if the URL couldn't be generatedpublic static java.lang.String getStaticApplicationURL()
public static java.lang.String getWorkloadBalancedApplicationURL(WDDeployableObjectPart deployableObjectPart)
throws WDURLException
getApplicationURL(...).
deployableObjectPart - a deployable object part representing a Web Dynpro applicationWDURLException - if the URL couldn't be generated
public static java.lang.String getWorkloadBalancedApplicationURL(java.lang.String deployableObjectName,
java.lang.String applicationPartName)
throws WDURLException
getApplicationURL(...).
WDDeployableObjectPartType.APPLICATION with the given applicationPartName within
the deployable object with name deployableObjectName.deployableObjectName - the name of a deployable objectapplicationPartName - the name of a application deployable object partWDURLException - if the URL couldn't be generated
public static java.lang.String getApplicationURL(WDDeployableObjectPart deployableObjectPart,
java.util.Map urlParameters)
throws WDURLException
deployableObjectPart with appended
URL parameters given by urlParameters. All key/value pairs in the map must
be of type java.lang.String.deployableObjectPart - a deployable object part representing a Web Dynpro applicationurlParameters - key/value pairs added as URL parameters; they must be of type StringdeployableObjectPart with appended
URL parameters given by urlParametersWDURLException - if the URL couldn't be generatedgetApplicationURL(WDDeployableObjectPart)
public static java.lang.String getApplicationURL(java.lang.String objectName,
java.lang.String partName,
java.util.Map urlParameters)
throws WDURLException
urlParameters. All key/value pairs in the map must
be of type java.lang.String.objectName - name of a deployable object that contains the applicationpartName - the name of a application deployable object parturlParameters - key/value pairs added as URL parameters; they must be of type StringurlParametersWDURLException - if the URL couldn't be generatedgetApplicationURL(String, String)
public static java.lang.String getWorkloadBalancedApplicationURL(WDDeployableObjectPart deployableObjectPart,
java.util.Map urlParameters)
throws WDURLException
deployableObjectPart with appended
URL parameters given by urlParameters. All key/value pairs in the map must
be of type java.lang.String.deployableObjectPart - a deployable object part representing a Web Dynpro applicationurlParameters - key/value pairs added as URL parameters; they must be of type StringdeployableObjectPart with appended URL parameters given by urlParametersWDURLException - if the URL couldn't be generatedgetWorkloadBalancedApplicationURL(WDDeployableObjectPart)
public static java.lang.String getWorkloadBalancedApplicationURL(java.lang.String objectName,
java.lang.String partName,
java.util.Map urlParameters)
throws WDURLException
urlParameters. All key/value
pairs in the map must be of type java.lang.String.objectName - name of a deployable object that contains the applicationpartName - the name of a application deployable object parturlParameters - key/value pairs added as URL parameters; they must be of type StringurlParametersWDURLException - if the URL couldn't be generatedgetWorkloadBalancedApplicationURL(String, String)public static java.lang.String getSAPIconsResourcePath()
getResourcePath()public static java.lang.String getSAPIconsWebResourcePath()
getWebResourcePath()public static java.lang.String getPortalIconsResourcePath()
getResourcePath()public static java.lang.String getPortalIconsWebResourcePath()
getWebResourcePath()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||