Class WebServiceFactory

java.lang.Object
com.polarion.alm.ws.client.WebServiceFactory

public class WebServiceFactory extends Object
The WebServiceFactory class is a factory class for getting instances of Polarion Web Services stubs.

You create new instance of WebServiceFactory by calling its constructor WebServiceFactory(String). For example:

     WebServiceFactory factory = new WebServiceFactory("http://hostname:8888/polarion/ws/services/");
 

You can access individual stubs by calling appropriate factory method then. E.g.:

     SessionWebService sessionService = factory.getSessionService();
 

Each call to a factory method creates new instance of a stub.

Note that stubs are not thread safe. If Multiple threads are accessing single stub instance, the results can be unpredictable. Hence always properly synchronize access from multiple threads to a stub instances. You can also use Thread Confinement to make sure only one thread is accessing an instance at a given time.

  • Constructor Details

  • Method Details

    • getTrackerService

      public TrackerWebService getTrackerService() throws javax.xml.rpc.ServiceException
      Throws:
      javax.xml.rpc.ServiceException
    • getProjectService

      public ProjectWebService getProjectService() throws javax.xml.rpc.ServiceException
      Throws:
      javax.xml.rpc.ServiceException
    • getSessionService

      public SessionWebService getSessionService() throws javax.xml.rpc.ServiceException
      Throws:
      javax.xml.rpc.ServiceException
    • getSecurityService

      public SecurityWebService getSecurityService() throws javax.xml.rpc.ServiceException
      Throws:
      javax.xml.rpc.ServiceException
    • getBuilderService

      public BuilderWebService getBuilderService() throws javax.xml.rpc.ServiceException
      Throws:
      javax.xml.rpc.ServiceException
    • getTestManagementService

      public TestManagementWebService getTestManagementService() throws javax.xml.rpc.ServiceException
      Throws:
      javax.xml.rpc.ServiceException
      Since:
      3.6.0
    • getPlanningService

      public PlanningWebService getPlanningService() throws javax.xml.rpc.ServiceException
      Throws:
      javax.xml.rpc.ServiceException
      Since:
      3.8.0