public class WBEMListenerSBLIM extends java.lang.Object implements WBEMListener
| Modifier and Type | Class and Description |
|---|---|
class |
WBEMListenerSBLIM.WBEMListenerImpl
The real implementation of a listener that starts a HTTP server and
processes incoming indications
|
| Modifier and Type | Field and Description |
|---|---|
protected WBEMConfiguration |
iConfiguration |
| Constructor and Description |
|---|
WBEMListenerSBLIM()
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addListener(IndicationListener pListener,
int pPort,
java.lang.String pTransport)
Add a new listener using the specified port.
|
int |
addListener(IndicationListener pListener,
int pPort,
java.lang.String pTransport,
java.lang.String pLocalAddr)
Add a new listener using the specified port.
|
int |
addListener(IndicationListener pListener,
int pPort,
java.lang.String pTransport,
java.lang.String pLocalAddr,
java.util.Properties pConfigurationProperties)
Add a new listener using the specified port.
|
int |
addListener(IndicationListenerSBLIM pListener,
int pPort,
java.lang.String pTransport)
Add a new listener using the specified port.
|
int |
addListener(IndicationListenerSBLIM pListener,
int pPort,
java.lang.String pTransport,
java.lang.String pLocalAddr)
Add a new listener using the specified port and local address.
|
int |
addListener(IndicationListenerSBLIM pListener,
int pPort,
java.lang.String pTransport,
java.lang.String pLocalAddr,
java.util.Properties pConfigurationProperties)
Add a new listener using the specified port, local address and
properties.
|
java.lang.String |
getBlockedIPs(int pPort)
Get the IPs blocked by the listener associated with the specified port.
|
java.lang.String |
getProperty(java.lang.String pName)
Get a property value.
|
void |
removeListener(int pPort)
Remove the listener associated with the specified port.
|
void |
setBlockedIPs(int pPort,
java.lang.String pIPs)
Set the IPs to be blocked by the listener associated with the specified
port.
|
void |
setProperty(java.lang.String pName,
java.lang.String pValue)
Set a property for the WBEM Listener.
|
protected final WBEMConfiguration iConfiguration
public int addListener(IndicationListener pListener, int pPort, java.lang.String pTransport) throws java.io.IOException
WBEMListeneraddListener in interface WBEMListenerpListener - The Indication Listener that will be called when an indication
is received.pPort - The port to listen on. Use 0 to specify any available port.pTransport - The transport to use (e.g. HTTP or HTTPS).java.io.IOException - If the port is already in use.public int addListener(IndicationListener pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr) throws java.io.IOException
WBEMListeneraddListener in interface WBEMListenerpListener - The Indication Listener that will be called when an indication
is received.pPort - The port to listen on. Use 0 to specify any available port.pTransport - The transport to use (e.g. HTTP or HTTPS).pLocalAddr - The local IP address to bind to. This is only needed in
multi-homed systems.java.io.IOException - If the port is already in use.public int addListener(IndicationListener pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr, java.util.Properties pConfigurationProperties) throws java.io.IOException
pListener - The Indication Listener that will be called when an indication
is received.pPort - The port to listen on. Use 0 to specify any available port.pTransport - The transport to use (e.g. HTTP or HTTPS).pLocalAddr - The local IP address to bind to. This is only needed in
multi-homed systems. A value of null will bind to
all IP addresses.pConfigurationProperties - The individual configuration properties for this listener.java.io.IOException - This exception is thrown when binding to pPort fails.public int addListener(IndicationListenerSBLIM pListener, int pPort, java.lang.String pTransport) throws java.io.IOException
pListener - The SBLIM Indication Listener that will be called when an
indication is received.pPort - The port to listen on. Use 0 to specify any available port.pTransport - The transport to use (e.g. HTTP or HTTPS).java.io.IOException - This exception is thrown when binding to pPort fails.public int addListener(IndicationListenerSBLIM pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr) throws java.io.IOException
pListener - The SBLIM Indication Listener that will be called when an
indication is received.pPort - The port to listen on. Use 0 to specify any available port.pTransport - The transport to use (e.g. HTTP or HTTPS).pLocalAddr - The local IP address to bind to. This is only needed in
multi-homed systems. A value of null will bind to
all IP addresses.java.io.IOException - This exception is thrown when binding to pPort fails.public int addListener(IndicationListenerSBLIM pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr, java.util.Properties pConfigurationProperties) throws java.io.IOException
pListener - The SBLIM Indication Listener that will be called when an
indication is received.pPort - The port to listen on. Use 0 to specify any available port.pTransport - The transport to use (e.g. HTTP or HTTPS).pLocalAddr - The local IP address to bind to. This is only needed in
multi-homed systems. A value of null will bind to
all IP addresses.pConfigurationProperties - The individual configuration properties for this listener.java.io.IOException - This exception is thrown when binding to pPort fails.public java.lang.String getBlockedIPs(int pPort)
pPort - The port.public java.lang.String getProperty(java.lang.String pName)
WBEMListenergetProperty in interface WBEMListenerpName - The name of the property.public void removeListener(int pPort)
WBEMListenerremoveListener in interface WBEMListenerpPort - The port.public void setBlockedIPs(int pPort,
java.lang.String pIPs)
pPort - The port.pIPs - The comma-separated list of blocked IPs.public void setProperty(java.lang.String pName,
java.lang.String pValue)
WBEMListenersetProperty in interface WBEMListenerpName - The name of the property.pValue - The value of the property.Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.