Package com.aquima.web.util
Class WebServicesLinkHelper
- java.lang.Object
-
- com.aquima.web.util.WebServicesLinkHelper
-
- All Implemented Interfaces:
LinkHelper
,PathHelper
public class WebServicesLinkHelper extends Object implements LinkHelper
A helper which can be used to build links to webservice related endpoints. SeeLinkHelper
for the general contract of link helpers.- Since:
- 10.0
- Author:
- Petru Galanton
-
-
Constructor Summary
Constructors Constructor Description WebServicesLinkHelper(String base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getWsdlPath(String shortcutName, String serviceName)
Returns the path to the endpoint which displays the WSDL of a SOAP web service.String
getWsdlPath(String applicationName, String branchName, String serviceName)
Returns the path to the endpoint which displays the WSDL of a SOAP web service.String
getWsdlPathForShortcutTemplate(String serviceName)
Returns the (templated) path to the endpoint which displays the WSDL of a SOAP web service.
-
-
-
Constructor Detail
-
WebServicesLinkHelper
public WebServicesLinkHelper(String base)
-
-
Method Detail
-
getWsdlPath
public String getWsdlPath(String applicationName, String branchName, String serviceName)
Returns the path to the endpoint which displays the WSDL of a SOAP web service. This variant can be used when the application name and branch name are know. The branch name can be retrieved from aVersion
usingVersion.getPatch()
.- Parameters:
applicationName
- the name of the application which contains the web servicebranchName
- the branch name of the application (eg, if version = 0.0-Trunk, the branch name is Trunk)serviceName
- the name of the webservice- Returns:
- the path to the endpoint which displays the WSDL of the webservice
-
getWsdlPath
public String getWsdlPath(String shortcutName, String serviceName)
Returns the path to the endpoint which displays the WSDL of a SOAP web service. This variant can be used when a shortcut to the application containing the webservice is known.- Parameters:
shortcutName
- the name of the shortcut to the applicationserviceName
- the name of the webservice- Returns:
- the path to the endpoint which displays the WSDL of the webservice
-
getWsdlPathForShortcutTemplate
public String getWsdlPathForShortcutTemplate(String serviceName)
Returns the (templated) path to the endpoint which displays the WSDL of a SOAP web service. This variant can be used when an URI template for a shortcut to the application containing the webservice is needed.- Parameters:
serviceName
- the name of the webservice- Returns:
- the (templated) path to the endpoint which displays the WSDL of the webservice
-
-