Class 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. See LinkHelper for the general contract of link helpers.
    Since:
    10.0
    Author:
    Petru Galanton
    • 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 a Version using Version.getPatch().
        Parameters:
        applicationName - the name of the application which contains the web service
        branchName - 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 application
        serviceName - 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