Class WBEMListenerSBLIM.WBEMListenerImpl

java.lang.Object
org.sblim.cimclient.WBEMListenerSBLIM.WBEMListenerImpl
Enclosing class:
WBEMListenerSBLIM

public class WBEMListenerSBLIM.WBEMListenerImpl extends java.lang.Object
The real implementation of a listener that starts a HTTP server and processes incoming indications
  • Constructor Summary

    Constructors
    Constructor
    Description
    WBEMListenerImpl(java.lang.String pLocalAddress, int pPort, boolean pSSL, java.util.EventListener pIndicationListener, java.util.Properties pProperties)
    Ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    java.lang.String
    Get the IPs blocked by the listener.
    Returns the listener we forward the indications to.
    Returns the listener we forward the indications to.
    int
    Returns the listener port.
    void
    setBlockedIPs(java.lang.String pIPs)
    Set the IPs to be blocked by the listener.
    void
    Starts the HTTP server connection receiving the indications.
    void
    Stops the HTTP server connection receiving the indications and the indication handler.

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WBEMListenerImpl

      public WBEMListenerImpl(java.lang.String pLocalAddress, int pPort, boolean pSSL, java.util.EventListener pIndicationListener, java.util.Properties pProperties) throws java.io.IOException
      Ctor.
      Parameters:
      pLocalAddress - The local address to bind the port to. If null the port is bound to all local addresses. For use on multi-homed systems.
      pPort - The port to listen on. If zero any free port will be chosen.
      pSSL - SSL secured connection?
      pIndicationListener - The indication listener to forward the incoming indications to (an instance of IndicationListener or IndicationListenerSBLIM).
      pProperties - The configuration.
      Throws:
      java.io.IOException
  • Method Details

    • finalize

      protected void finalize() throws java.lang.Throwable
      Overrides:
      finalize in class java.lang.Object
      Throws:
      java.lang.Throwable
    • start

      public void start()
      Starts the HTTP server connection receiving the indications.
    • stop

      public void stop()
      Stops the HTTP server connection receiving the indications and the indication handler.
    • getIndicationListener

      public IndicationListener getIndicationListener()
      Returns the listener we forward the indications to.
      Returns:
      The listener.
    • getIndicationListenerSBLIM

      public IndicationListenerSBLIM getIndicationListenerSBLIM()
      Returns the listener we forward the indications to.
      Returns:
      The listener.
    • getListenerPort

      public int getListenerPort()
      Returns the listener port.
      Returns:
      The listener port.
    • getBlockedIPs

      public java.lang.String getBlockedIPs()
      Get the IPs blocked by the listener.
      Returns:
      The comma-separated list of blocked IPs.
    • setBlockedIPs

      public void setBlockedIPs(java.lang.String pIPs)
      Set the IPs to be blocked by the listener.
      Parameters:
      pIPs - The comma-separated list of blocked IPs.