Class HttpConnectionHandler

java.lang.Object
org.sblim.cimclient.internal.http.HttpConnectionHandler

public class HttpConnectionHandler extends java.lang.Object
Class HttpConnectionHandler is responsible for handling an incoming connection
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    MAJOR_VERSION
    static final int
    MINOR_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the handler.
    java.lang.String
    Get the IPs blocked by the listener associated with the specified port.
    void
    handleConnection(java.net.Socket socket)
    Handles the incoming connection and forwards to the content handler
    void
    setBlockedIPs(java.lang.String pIPs)
    Set the IPs to be blocked by the listener associated with the specified port.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • HttpConnectionHandler

      public HttpConnectionHandler(HttpContentHandler pHandler, WBEMConfiguration pProperties)
      Ctor.
      Parameters:
      pHandler - The content handler
      pProperties - The configuration properties
  • Method Details

    • handleConnection

      public void handleConnection(java.net.Socket socket)
      Handles the incoming connection and forwards to the content handler
      Parameters:
      socket - The socket of the connection
    • close

      public void close()
      Closes the handler. Will also close the content handler.
    • getBlockedIPs

      public java.lang.String getBlockedIPs()
      Get the IPs blocked by the listener associated with the specified port.
      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 associated with the specified port.
      Parameters:
      pIPs - The comma-separated list of blocked IPs.