javax.wbem.client
public class WBEMClientFactory extends Object
...
CIMClient cc = null;
try {
cc = WBEMClientFactory.getClient("CIM-XML");
} catch (Exception e) {
System.out.println("Received error when trying to retrieve client handle");
System.exit(-1);
}
cc.initialize(cns, s, null);
| Constructor Summary | |
|---|---|
| WBEMClientFactory()
Not used currently. | |
| Method Summary | |
|---|---|
| static WBEMClient | getClient(String pProtocol)
Get a WBEMClient for a protocol.
|
| static String[] | getSupportedProtocols()
Get the names of the supported protocols.
|
Parameters: pProtocol The protocol name (e.g. "CIM-XML")
Returns: the WBEMClient implementation for the protocol specified.
Throws: IllegalArgumentException -
Returns: a string array of the supported protocols