|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.wbem.listener.WBEMListenerFactory
public class WBEMListenerFactory
The WBEMListenerFactory class is a factory for getting a
WBEMListener implementation for a specific protocol.
An example of how to use the factory is included below.
class MyListener implements IndicationListener {
public void indicationOccured(CIMInstance e) {
System.out.println(e);
}
}
String protocol = WBEMClientConstants.PROTOCOL_CIMXML;
WBEMListener api = WBEMListenerFactory.getListener(protocol);
int port = api.addListener(MyListener, 1234, protocol);
| Constructor Summary | |
|---|---|
WBEMListenerFactory()
Ctor. |
|
| Method Summary | |
|---|---|
static WBEMListener |
getListener(java.lang.String protocol)
Get a WBEM Listener implementation for the specified protocol. |
static java.lang.String[] |
getProtocols()
Get the names of the supported PROTOCOLS. |
static java.lang.String[] |
getPROTOCOLS()
Deprecated. : Typo in method name, use getProtocols() instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WBEMListenerFactory()
| Method Detail |
|---|
public static WBEMListener getListener(java.lang.String protocol)
throws java.lang.IllegalArgumentException
protocol - - the protocol name
WBEMListener.
java.lang.IllegalArgumentException - - Could not load protocol implementation.@Deprecated public static java.lang.String[] getPROTOCOLS()
public static java.lang.String[] getProtocols()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||