Class AccessControlFilter<A extends ProtocolServerConfiguration>
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.infinispan.server.core.transport.AccessControlFilter<A>
- All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
@Sharable
public class AccessControlFilter<A extends ProtocolServerConfiguration>
extends io.netty.channel.ChannelInboundHandlerAdapter
This class provides the functionality to either accept or reject new
Channels based on their IP address.- Since:
- 12.1
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAccessControlFilter(A configuration) AccessControlFilter(A configuration, boolean onRegistration) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaccept(InetSocketAddress remoteAddress) voidchannelActive(io.netty.channel.ChannelHandlerContext ctx) voidchannelRegistered(io.netty.channel.ChannelHandlerContext ctx) voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaughtMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
EVENT
-
-
Constructor Details
-
AccessControlFilter
-
AccessControlFilter
-
-
Method Details
-
userEventTriggered
-
accept
- Throws:
Exception
-
channelRegistered
-
channelActive
-