de.innovationgate.wgaservices
public class ClientFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_PROVIDER_PATH |
Constructor and Description |
---|
ClientFactory() |
Modifier and Type | Method and Description |
---|---|
static ActionCaller |
createActionCaller(WGAServices services,
RemoteSession session,
String db)
Creates a helper object for calling remote actions on a WGA server.
|
static WGACoreServices |
createCoreServiceClient(String wgaRootURL)
Creates a client for core services
|
static WGACoreServices |
createCoreServiceClient(String wgaRootURL,
Map<String,Object> properties)
Creates a client for core services
|
static WGACustomServices |
createCustomServiceClient(String wgaRootURL)
Creates a client for custom services
|
static WGACustomServices |
createCustomServiceClient(String wgaRootURL,
Map<String,Object> properties)
Creates a client for custom services
|
static ClientFactoryService |
findService(ClassLoader loader)
Finds a client factory service on a class loader
|
public static final String SERVICE_PROVIDER_PATH
public static ClientFactoryService findService(ClassLoader loader) throws WGAServiceException
loader
- WGAServiceException
public static WGACoreServices createCoreServiceClient(String wgaRootURL) throws MalformedURLException, WGAServiceException
wgaRootURL
- The root url of the OpenWGA serverMalformedURLException
WGAServiceException
public static WGACustomServices createCustomServiceClient(String wgaRootURL) throws MalformedURLException, WGAServiceException
wgaRootURL
- The root url of the OpenWGA serverMalformedURLException
WGAServiceException
public static WGACoreServices createCoreServiceClient(String wgaRootURL, Map<String,Object> properties) throws MalformedURLException, WGAServiceException
wgaRootURL
- The root url of the OpenWGA serverproperties
- Properties passed to the client factory serviceMalformedURLException
WGAServiceException
public static WGACustomServices createCustomServiceClient(String wgaRootURL, Map<String,Object> properties) throws MalformedURLException, WGAServiceException
wgaRootURL
- The root url of the OpenWGA serverproperties
- Properties passed to the client factory serviceMalformedURLException
WGAServiceException
public static ActionCaller createActionCaller(WGAServices services, RemoteSession session, String db)
services
- The WGAServices object that the caller will usesession
- The remote session that the caller will need to login to the serverdb
- The database whose actions are to be called