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:ConnectionListenerInvoked when a new connection occurred.- Specified by:
onConnectin interfaceConnectionListener- Overrides:
onConnectin classPassthroughConnectionListener- Parameters:
transport- the transport
-