Package com.polarion.alm.ws.client
Class WebServiceFactory
java.lang.Object
com.polarion.alm.ws.client.WebServiceFactory
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 Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
WebServiceFactory
- Throws:
MalformedURLException
-
-
Method Details
-
getTrackerService
- Throws:
javax.xml.rpc.ServiceException
-
getProjectService
- Throws:
javax.xml.rpc.ServiceException
-
getSessionService
- Throws:
javax.xml.rpc.ServiceException
-
getSecurityService
- Throws:
javax.xml.rpc.ServiceException
-
getBuilderService
- Throws:
javax.xml.rpc.ServiceException
-
getTestManagementService
- Throws:
javax.xml.rpc.ServiceException
- Since:
- 3.6.0
-
getPlanningService
- Throws:
javax.xml.rpc.ServiceException
- Since:
- 3.8.0
-