Class RestrictByIPConnectionListener
java.lang.Object
com.epam.common.transport.server.firewall.PassthroughConnectionListener
com.epam.common.transport.server.firewall.RestrictByIPConnectionListener
- All Implemented Interfaces:
ConnectionListener
-
Constructor Summary
ConstructorsConstructorDescriptionRestrictByIPConnectionListener
(ConnectionListener listener, Collection<String> allowedIPs) -
Method Summary
-
Constructor Details
-
RestrictByIPConnectionListener
-
RestrictByIPConnectionListener
-
-
Method Details
-
allow
-
restrict
-
onConnect
Description copied from interface:ConnectionListener
Invoked when a new connection occurred.- Specified by:
onConnect
in interfaceConnectionListener
- Overrides:
onConnect
in classPassthroughConnectionListener
- Parameters:
transport
- the transport
-