public class WBEMClientFactory
extends java.lang.Object
WBEMClient factory,
which is used to retrieve a WBEMClient for a specified protocol.
An example of how to use the factory is included below.
...
WBEMClient cc = null;
try {
cc = WBEMClientFactory.getClient(WBEMClientConstants.PROTOCOL_CIMXML);
} catch (Exception e) {
System.out.println("Received error when trying to retrieve client handle");
System.exit(-1);
}
// initialize the client
cc.initialize(cns, s, null);
...
| Constructor | Description |
|---|---|
WBEMClientFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
static WBEMClient |
getClient(java.lang.String pProtocol) |
Get a
WBEMClient for a protocol. |
static java.lang.String[] |
getSupportedProtocols() |
Get the names of the supported protocols.
|
public static WBEMClient getClient(java.lang.String pProtocol) throws WBEMException
WBEMClient for a protocol.pProtocol - The protocol name (e.g. "CIM-XML").WBEMClient implementation for the protocol
specified.java.lang.IllegalArgumentException - null or empty.WBEMException - If the protocol implementation could not be loaded.public static java.lang.String[] getSupportedProtocols()
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.