public class WBEMListenerFactory extends Object
WBEMListener
implementation for a specified protocol. An example of how to use the factory
is included below.
... class MyListener implements IndicationListener { public void indicationOccured(String pIndicationURL, CIMInstance pIndication) { System.out.println(pIndication); } } String protocol = WBEMClientConstants.PROTOCOL_CIMXML; WBEMListener api = WBEMListenerFactory.getListener(protocol); int port = api.addListener(MyListener, 1234, protocol);
Constructor and Description |
---|
WBEMListenerFactory() |
Modifier and Type | Method and Description |
---|---|
static WBEMListener |
getListener(String pProtocol)
Get a WBEM Listener implementation for the specified protocol.
|
static String[] |
getProtocols()
Get the names of the supported protocols.
|
public static WBEMListener getListener(String pProtocol) throws IllegalArgumentException
pProtocol
- The protocol name.WBEMListener
.IllegalArgumentException
- Could not load protocol implementation.public static String[] getProtocols()
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.