on 12-01-2014 10:15 AM
Hi Experts,
I am having one requirement of fetching / reading the current webdynpro application url and providing the same to other application as url link.
IWDRequest url = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
wdComponentAPI.getMessageManager().reportSuccess("Hi...."+url);
try {
String temp = WDURLGenerator.getAbsoluteWebResourceURL(wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart());
wdComponentAPI.getMessageManager().reportSuccess(""+temp);
}
catch (WDURLException e) {}
But, the link shows me the pcd link of the application. Whereas I want to read the Quicklink application url of the application like forexample:
http://<Portal-hostname>:<portNumber>/irj/portal/<quick-link-application-Name>
Regards,
Hanif
Hi Hanif,
haven't tryed it yet but this should return the app url according to the javadoc:
WDURLGenerator.getApplicationURL(wdComponentAPI.getApplication().getDeployableObjectPart());
Best Regards,
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tobias,
Thanks for the reply..
I have used following method to display the application url:
WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getApplication().getDeployableObjectPart());
The method getAbsoluteWebResourceURL() is deprecated, but still gives the application url.
But this url is the pcd url of the webdynpro application and not the portal quicklink url:
My requirement is to read following url:
http://jiql313.md-man.biz:51300/irj/portal/SITEgeturl?sap-language="EN"&sap-client="300"&XLIFNR=''0000000025"
Here, the important paramters for me to read are the url paramters after ? (question mark).
Regards,
Hanif
You can use this for the whole query string (everything after the question mark):
--> WDProtocolAdapter.getProtocolAdapter().getRequestObject().getQueryString();
or you can use this to get the parameter map which includes key and value of all params:
-->
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameterMap();
Hope this helps.
Tobias
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.