Class HttpConnectionHandler
java.lang.Object
org.sblim.cimclient.internal.http.HttpConnectionHandler
Class HttpConnectionHandler is responsible for handling an incoming
connection
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMAJOR_VERSIONstatic final intMINOR_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionHttpConnectionHandler(HttpContentHandler pHandler, WBEMConfiguration pProperties) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the handler.Get the IPs blocked by the listener associated with the specified port.voidhandleConnection(Socket socket) Handles the incoming connection and forwards to the content handlervoidsetBlockedIPs(String pIPs) Set the IPs to be blocked by the listener associated with the specified port.
-
Field Details
-
MAJOR_VERSION
public static final int MAJOR_VERSIONMAJOR_VERSION- See Also:
-
MINOR_VERSION
public static final int MINOR_VERSIONMINOR_VERSION- See Also:
-
-
Constructor Details
-
HttpConnectionHandler
Ctor.- Parameters:
pHandler- The content handlerpProperties- The configuration properties
-
-
Method Details
-
handleConnection
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
Get the IPs blocked by the listener associated with the specified port.- Returns:
- The comma-separated list of blocked IPs.
-
setBlockedIPs
Set the IPs to be blocked by the listener associated with the specified port.- Parameters:
pIPs- The comma-separated list of blocked IPs.
-