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
@Sharable public class RouterStoreAclHandler extends AbstractStoreAclHandler<RouterResourceType>
Store-level access control handler, which is being used by both Router and Server.
-
-
Constructor Summary
Constructors Constructor Description RouterStoreAclHandler(IdentityParser identityParser, DynamicAccessController accessController, ReadOnlyStoreRepository metadataRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
extractStoreName(RouterResourceType resourceType, java.lang.String[] requestParts)
Extract the store name from the incoming resource name.protected boolean
needsAclValidation(RouterResourceType resourceType)
protected RouterResourceType
validateRequest(java.lang.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
-
-
-
-
Constructor Detail
-
RouterStoreAclHandler
public RouterStoreAclHandler(IdentityParser identityParser, DynamicAccessController accessController, ReadOnlyStoreRepository metadataRepository)
-
-
Method Detail
-
needsAclValidation
protected boolean needsAclValidation(RouterResourceType resourceType)
- Specified by:
needsAclValidation
in classAbstractStoreAclHandler<RouterResourceType>
-
extractStoreName
protected java.lang.String extractStoreName(RouterResourceType resourceType, java.lang.String[] requestParts)
Extract the store name from the incoming resource name.- Specified by:
extractStoreName
in classAbstractStoreAclHandler<RouterResourceType>
-
validateRequest
protected RouterResourceType validateRequest(java.lang.String[] requestParts)
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
-
-