Class WBEMListenerSBLIM

java.lang.Object
org.sblim.cimclient.WBEMListenerSBLIM
All Implemented Interfaces:
WBEMListener

public class WBEMListenerSBLIM extends java.lang.Object implements WBEMListener
Class WBEMListenerSBLIM is the SBLIM implementation of the WBEMListener interface.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    The real implementation of a listener that starts a HTTP server and processes incoming indications
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final WBEMConfiguration
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ctor.
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • WBEMListenerSBLIM

      public WBEMListenerSBLIM()
      Ctor.
  • Method Details

    • addListener

      public int addListener(IndicationListener pListener, int pPort, java.lang.String pTransport) throws java.io.IOException
      Description copied from interface: WBEMListener
      Add a new listener using the specified port.
      Specified by:
      addListener in interface WBEMListener
      Parameters:
      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).
      Returns:
      The port that was used.
      Throws:
      java.io.IOException - If the port is already in use.
    • addListener

      public int addListener(IndicationListener pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr) throws java.io.IOException
      Description copied from interface: WBEMListener
      Add a new listener using the specified port.
      Specified by:
      addListener in interface WBEMListener
      Parameters:
      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.
      Returns:
      The port that was used.
      Throws:
      java.io.IOException - If the port is already in use.
    • addListener

      public int addListener(IndicationListener pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr, java.util.Properties pConfigurationProperties) throws java.io.IOException
      Add a new listener using the specified port.
      Parameters:
      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.
      Returns:
      The port that was used.
      Throws:
      java.io.IOException - This exception is thrown when binding to pPort fails.
    • addListener

      public int addListener(IndicationListenerSBLIM pListener, int pPort, java.lang.String pTransport) throws java.io.IOException
      Add a new listener using the specified port.
      Parameters:
      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).
      Returns:
      The port that was used.
      Throws:
      java.io.IOException - This exception is thrown when binding to pPort fails.
    • addListener

      public int addListener(IndicationListenerSBLIM pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr) throws java.io.IOException
      Add a new listener using the specified port and local address.
      Parameters:
      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.
      Returns:
      The port that was used.
      Throws:
      java.io.IOException - This exception is thrown when binding to pPort fails.
    • addListener

      public int addListener(IndicationListenerSBLIM pListener, int pPort, java.lang.String pTransport, java.lang.String pLocalAddr, java.util.Properties pConfigurationProperties) throws java.io.IOException
      Add a new listener using the specified port, local address and properties.
      Parameters:
      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.
      Returns:
      The port that was used.
      Throws:
      java.io.IOException - This exception is thrown when binding to pPort fails.
    • getBlockedIPs

      public java.lang.String getBlockedIPs(int pPort)
      Get the IPs blocked by the listener associated with the specified port.
      Parameters:
      pPort - The port.
      Returns:
      The comma-separated list of blocked IPs.
    • getProperty

      public java.lang.String getProperty(java.lang.String pName)
      Description copied from interface: WBEMListener
      Get a property value.
      Specified by:
      getProperty in interface WBEMListener
      Parameters:
      pName - The name of the property.
      Returns:
      The value of the property.
    • removeListener

      public void removeListener(int pPort)
      Description copied from interface: WBEMListener
      Remove the listener associated with the specified port.
      Specified by:
      removeListener in interface WBEMListener
      Parameters:
      pPort - The port.
    • setBlockedIPs

      public void setBlockedIPs(int pPort, java.lang.String pIPs)
      Set the IPs to be blocked by the listener associated with the specified port.
      Parameters:
      pPort - The port.
      pIPs - The comma-separated list of blocked IPs.
    • setProperty

      public void setProperty(java.lang.String pName, java.lang.String pValue)
      Description copied from interface: WBEMListener
      Set a property for the WBEM Listener.
      Specified by:
      setProperty in interface WBEMListener
      Parameters:
      pName - The name of the property.
      pValue - The value of the property.