Package org.eblocker.server.http.service
Class AccessDeniedRequestHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>
org.eblocker.server.http.service.AccessDeniedRequestHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable
public class AccessDeniedRequestHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionAccessDeniedRequestHandler(BaseURLs baseURLs, DeviceService deviceService, DomainBlockingService domainBlockingService, MalwareFilterService malwareFilterService, ParentalControlFilterListsService listsService, ParentalControlAccessRestrictionsService restrictionsService, SessionStore sessionStore, UserService userService, String parentalControlRedirectPage, String adsTrackerRedirectPage, String malwareRedirectPage, String whitelistedRedirectPage) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest request) getMalwareLocation(DomainBlockingService.Decision decision, List<String> malware, String url) Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
AccessDeniedRequestHandler
@Inject public AccessDeniedRequestHandler(BaseURLs baseURLs, DeviceService deviceService, DomainBlockingService domainBlockingService, MalwareFilterService malwareFilterService, ParentalControlFilterListsService listsService, ParentalControlAccessRestrictionsService restrictionsService, SessionStore sessionStore, UserService userService, String parentalControlRedirectPage, String adsTrackerRedirectPage, String malwareRedirectPage, String whitelistedRedirectPage)
-
-
Method Details
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest request) - Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>
-
getMalwareLocation
public String getMalwareLocation(DomainBlockingService.Decision decision, List<String> malware, String url)
-