public class UcmdbServiceFactory extends Object
getServiceProvider
methods.connect
methods.
Example:
final String HOST_NAME = "localhost"; final int PORT = 8080; UcmdbServiceProvider provider = UcmdbServiceFactory.getServiceProvider(HOST_NAME, PORT); final String USERNAME = "integration_user"; final String PASSWORD = "integration_password"; Credentials credentials = provider.createCredentials(USERNAME, PASSWORD), ClientContext clientContext = provider.createClientContext("Example"); UcmdbService ucmdbService = provider.connect(credentials, clientContext);
UcmdbServiceProvider
Modifier and Type | Class and Description |
---|---|
static class |
UcmdbServiceFactory.AllHostAcceptedVerifier
Disables host name verfication (used in case of NAT networks)
|
static interface |
UcmdbServiceFactory.ConnectionProperties
Internal implementation.
|
static class |
UcmdbServiceFactory.DefaultTruststoreManger
The X509TrustManager implementation.
|
static interface |
UcmdbServiceFactory.HttpBootstrap
Internal implementation.
|
static interface |
UcmdbServiceFactory.HttpUcmdbServiceProviderFactory
Internal implementation.
|
Modifier and Type | Method and Description |
---|---|
static String |
getClientVersion() |
static UcmdbServiceProvider |
getServiceProvider(String host,
int port)
Returns an instance of a UCMDB service provider from the specified host and port.
|
static UcmdbServiceProvider |
getServiceProvider(String protocol,
String host,
int port) |
static UcmdbServiceProvider |
getServiceProvider(String protocol,
String host,
int port,
String rootContext)
Returns an instance of a UCMDB service provider from the specified host port using the specified protocol.
|
static void |
initSSL()
Initializes the secure socket layer.
|
public static String getClientVersion()
public static UcmdbServiceProvider getServiceProvider(String host, int port) throws MalformedURLException, IncompatibleVersionException
host
- name of the web server host.port
- port the web server listens on. Generally 80 or 8080.MalformedURLException
- if the host name results in an invalid URL.IncompatibleVersionException
- if the version of the client is unsupported by the version
running on the server.public static UcmdbServiceProvider getServiceProvider(String protocol, String host, int port, String rootContext) throws MalformedURLException, IncompatibleVersionException
protocol
- either "http" or "https".host
- name of the web server host.port
- port the web server listens on. Generally 80 or 8080 for http, 443 for https.MalformedURLException
- if the host name results in an invalid URL.IncompatibleVersionException
- if the version of the client is unsupported by the version
running on the server.public static UcmdbServiceProvider getServiceProvider(String protocol, String host, int port) throws MalformedURLException, IncompatibleVersionException
public static void initSSL()
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.