Package com.linkedin.venice.router.acl
Class RouterStoreAclHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>
com.linkedin.venice.acl.handler.AbstractStoreAclHandler<RouterResourceType>
com.linkedin.venice.router.acl.RouterStoreAclHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
Store-level access control handler, which is being used by both Router and Server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Constructor Summary
ConstructorDescriptionRouterStoreAclHandler
(IdentityParser identityParser, DynamicAccessController accessController, ReadOnlyStoreRepository metadataRepository) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
extractStoreName
(RouterResourceType resourceType, String[] requestParts) Extract the store name from the incoming resource name.protected boolean
needsAclValidation
(RouterResourceType resourceType) protected RouterResourceType
validateRequest
(String[] requestParts) Validate the request and return the request type.Methods inherited from class com.linkedin.venice.acl.handler.AbstractStoreAclHandler
channelRead0, checkAccess, isAccessAlreadyApproved
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
RouterStoreAclHandler
public RouterStoreAclHandler(IdentityParser identityParser, DynamicAccessController accessController, ReadOnlyStoreRepository metadataRepository)
-
-
Method Details
-
needsAclValidation
- Specified by:
needsAclValidation
in classAbstractStoreAclHandler<RouterResourceType>
-
extractStoreName
Extract the store name from the incoming resource name.- Specified by:
extractStoreName
in classAbstractStoreAclHandler<RouterResourceType>
-
validateRequest
Description copied from class:AbstractStoreAclHandler
Validate the request and return the request type. If the request is invalid, returnnull
- Specified by:
validateRequest
in classAbstractStoreAclHandler<RouterResourceType>
- Parameters:
requestParts
- the parts of the request URI- Returns:
- the request type; null if the request is invalid
-