org.sblim.cimclient.internal.http
Class HttpConnectionHandler

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

public class HttpConnectionHandler
extends Object

Class HttpConnectionHandler is responsible for handling an incoming connection


Field Summary
static int MAJOR_VERSION
          MAJOR_VERSION
static int MINOR_VERSION
          MINOR_VERSION
 
Constructor Summary
HttpConnectionHandler(HttpContentHandler pHandler, WBEMConfiguration pProperties)
          Ctor.
 
Method Summary
 void close()
          Closes the handler.
 String getBlockedIPs()
          Get the IPs blocked by the listener associated with the specified port.
 void handleConnection(Socket socket)
          Handles the incoming connection and forwards to the content handler
 void setBlockedIPs(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 Detail

MAJOR_VERSION

public static final int MAJOR_VERSION
MAJOR_VERSION

See Also:
Constant Field Values

MINOR_VERSION

public static final int MINOR_VERSION
MINOR_VERSION

See Also:
Constant Field Values
Constructor Detail

HttpConnectionHandler

public HttpConnectionHandler(HttpContentHandler pHandler,
                             WBEMConfiguration pProperties)
Ctor.

Parameters:
pHandler - The content handler
pProperties - The configuration properties
Method Detail

handleConnection

public void handleConnection(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 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(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.


Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.