Uses of Interface
io.netty.channel.ChannelHandler
-
Packages that use ChannelHandler Package Description io.netty.bootstrap The helper classes with fluent API which enable an easy implementation of typical client side and server side channel initialization.io.netty.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty.channel.embedded A virtualChannelthat helps wrapping a series of handlers to unit test the handlers or use them in non-I/O context. -
-
Uses of ChannelHandler in io.netty.bootstrap
Methods in io.netty.bootstrap that return ChannelHandler Modifier and Type Method Description ChannelHandlerServerBootstrapConfig. childHandler()Returns the configuredChannelHandlerbe used for the child channels ornullif non is configured yet.ChannelHandlerAbstractBootstrapConfig. handler()Returns the configuredChannelHandlerornullif non is configured yet.Methods in io.netty.bootstrap with parameters of type ChannelHandler Modifier and Type Method Description ServerBootstrapServerBootstrap. childHandler(ChannelHandler childHandler)Set theChannelHandlerwhich is used to serve the request for theChannel's.BAbstractBootstrap. handler(ChannelHandler handler)theChannelHandlerto use for serving the requests. -
Uses of ChannelHandler in io.netty.channel
Subinterfaces of ChannelHandler in io.netty.channel Modifier and Type Interface Description interfaceChannelInboundHandlerChannelHandlerwhich adds callbacks for state changes.interfaceChannelOutboundHandlerChannelHandlerwhich will get notified for IO-outbound-operations.Classes in io.netty.channel that implement ChannelHandler Modifier and Type Class Description classChannelDuplexHandlerChannelHandlerimplementation which represents a combination out of aChannelInboundHandlerand theChannelOutboundHandler.classChannelHandlerAdapterSkeleton implementation of aChannelHandler.classChannelInboundHandlerAdapterAbstract base class forChannelInboundHandlerimplementations which provide implementations of all of their methods.classChannelInitializer<C extends Channel>A specialChannelInboundHandlerwhich offers an easy way to initialize aChannelonce it was registered to itsEventLoop.classChannelOutboundHandlerAdapterSkeleton implementation of aChannelOutboundHandler.classCombinedChannelDuplexHandler<I extends ChannelInboundHandler,O extends ChannelOutboundHandler>classSimpleChannelInboundHandler<I>ChannelInboundHandlerAdapterwhich allows to explicit only handle a specific type of messages.classSimpleUserEventChannelHandler<I>ChannelInboundHandlerAdapterwhich allows to conveniently only handle a specific type of user events.Methods in io.netty.channel with type parameters of type ChannelHandler Modifier and Type Method Description <T extends ChannelHandler>
TChannelPipeline. get(Class<T> handlerType)Returns theChannelHandlerof the specified type in this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline. get(Class<T> handlerType)<T extends ChannelHandler>
TChannelPipeline. remove(Class<T> handlerType)Removes theChannelHandlerof the specified type from this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline. remove(Class<T> handlerType)<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(ChannelHandler handler)<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(Class<T> handlerType)<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(String name)<T extends ChannelHandler>
TChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)Replaces theChannelHandlerof the specified type with a new handler in this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)Methods in io.netty.channel that return ChannelHandler Modifier and Type Method Description ChannelHandlerChannelPipeline. first()Returns the firstChannelHandlerin this pipeline.ChannelHandlerDefaultChannelPipeline. first()ChannelHandlerChannelPipeline. get(String name)Returns theChannelHandlerwith the specified name in this pipeline.ChannelHandlerDefaultChannelPipeline. get(String name)ChannelHandlerChannelHandlerContext. handler()TheChannelHandlerthat is bound thisChannelHandlerContext.ChannelHandlerChannelPipeline. last()Returns the lastChannelHandlerin this pipeline.ChannelHandlerDefaultChannelPipeline. last()ChannelHandlerChannelPipeline. remove(String name)Removes theChannelHandlerwith the specified name from this pipeline.ChannelHandlerDefaultChannelPipeline. remove(String name)ChannelHandlerChannelPipeline. removeFirst()Removes the firstChannelHandlerin this pipeline.ChannelHandlerDefaultChannelPipeline. removeFirst()ChannelHandlerChannelPipeline. removeLast()Removes the lastChannelHandlerin this pipeline.ChannelHandlerDefaultChannelPipeline. removeLast()ChannelHandlerChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)Replaces theChannelHandlerof the specified name with a new handler in this pipeline.ChannelHandlerDefaultChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)Methods in io.netty.channel that return types with arguments of type ChannelHandler Modifier and Type Method Description Iterator<Map.Entry<String,ChannelHandler>>DefaultChannelPipeline. iterator()Map<String,ChannelHandler>ChannelPipeline. toMap()Converts this pipeline into an orderedMapwhose keys are handler names and whose values are handlers.Map<String,ChannelHandler>DefaultChannelPipeline. toMap()Methods in io.netty.channel with parameters of type ChannelHandler Modifier and Type Method Description ChannelPipelineChannelPipeline. addAfter(io.netty.util.concurrent.EventExecutorGroup group, String baseName, String name, ChannelHandler handler)Deprecated.ChannelPipelineChannelPipeline. addAfter(String baseName, String name, ChannelHandler handler)Inserts aChannelHandlerafter an existing handler of this pipeline.ChannelPipelineDefaultChannelPipeline. addAfter(io.netty.util.concurrent.EventExecutorGroup group, String baseName, String name, ChannelHandler handler)ChannelPipelineDefaultChannelPipeline. addAfter(String baseName, String name, ChannelHandler handler)ChannelPipelineChannelPipeline. addBefore(io.netty.util.concurrent.EventExecutorGroup group, String baseName, String name, ChannelHandler handler)Deprecated.ChannelPipelineChannelPipeline. addBefore(String baseName, String name, ChannelHandler handler)Inserts aChannelHandlerbefore an existing handler of this pipeline.ChannelPipelineDefaultChannelPipeline. addBefore(io.netty.util.concurrent.EventExecutorGroup group, String baseName, String name, ChannelHandler handler)ChannelPipelineDefaultChannelPipeline. addBefore(String baseName, String name, ChannelHandler handler)ChannelPipelineChannelPipeline. addFirst(ChannelHandler... handlers)InsertsChannelHandlers at the first position of this pipeline.ChannelPipelineChannelPipeline. addFirst(io.netty.util.concurrent.EventExecutorGroup group, ChannelHandler... handlers)Deprecated.ChannelPipelineChannelPipeline. addFirst(io.netty.util.concurrent.EventExecutorGroup group, String name, ChannelHandler handler)Deprecated.ChannelPipelineChannelPipeline. addFirst(String name, ChannelHandler handler)Inserts aChannelHandlerat the first position of this pipeline.ChannelPipelineDefaultChannelPipeline. addFirst(ChannelHandler handler)ChannelPipelineDefaultChannelPipeline. addFirst(ChannelHandler... handlers)ChannelPipelineDefaultChannelPipeline. addFirst(io.netty.util.concurrent.EventExecutorGroup executor, ChannelHandler... handlers)ChannelPipelineDefaultChannelPipeline. addFirst(io.netty.util.concurrent.EventExecutorGroup group, String name, ChannelHandler handler)ChannelPipelineDefaultChannelPipeline. addFirst(String name, ChannelHandler handler)ChannelPipelineChannelPipeline. addLast(ChannelHandler... handlers)InsertsChannelHandlers at the last position of this pipeline.ChannelPipelineChannelPipeline. addLast(io.netty.util.concurrent.EventExecutorGroup group, ChannelHandler... handlers)Deprecated.ChannelPipelineChannelPipeline. addLast(io.netty.util.concurrent.EventExecutorGroup group, String name, ChannelHandler handler)Deprecated.ChannelPipelineChannelPipeline. addLast(String name, ChannelHandler handler)Appends aChannelHandlerat the last position of this pipeline.ChannelPipelineDefaultChannelPipeline. addLast(ChannelHandler handler)ChannelPipelineDefaultChannelPipeline. addLast(ChannelHandler... handlers)ChannelPipelineDefaultChannelPipeline. addLast(io.netty.util.concurrent.EventExecutorGroup executor, ChannelHandler... handlers)ChannelPipelineDefaultChannelPipeline. addLast(io.netty.util.concurrent.EventExecutorGroup group, String name, ChannelHandler handler)ChannelPipelineDefaultChannelPipeline. addLast(String name, ChannelHandler handler)ChannelHandlerContextChannelPipeline. context(ChannelHandler handler)Returns the context object of the specifiedChannelHandlerin this pipeline.ChannelHandlerContextDefaultChannelPipeline. context(ChannelHandler handler)ChannelPipelineChannelPipeline. remove(ChannelHandler handler)Removes the specifiedChannelHandlerfrom this pipeline.ChannelPipelineDefaultChannelPipeline. remove(ChannelHandler handler)<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(ChannelHandler handler)ChannelPipelineChannelPipeline. replace(ChannelHandler oldHandler, String newName, ChannelHandler newHandler)Replaces the specifiedChannelHandlerwith a new handler in this pipeline.<T extends ChannelHandler>
TChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)Replaces theChannelHandlerof the specified type with a new handler in this pipeline.ChannelHandlerChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)Replaces theChannelHandlerof the specified name with a new handler in this pipeline.ChannelPipelineDefaultChannelPipeline. replace(ChannelHandler oldHandler, String newName, ChannelHandler newHandler)<T extends ChannelHandler>
TDefaultChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)ChannelHandlerDefaultChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)Method parameters in io.netty.channel with type arguments of type ChannelHandler Modifier and Type Method Description ChannelHandlerContextChannelPipeline. context(Class<? extends ChannelHandler> handlerType)Returns the context object of theChannelHandlerof the specified type in this pipeline.ChannelHandlerContextDefaultChannelPipeline. context(Class<? extends ChannelHandler> handlerType) -
Uses of ChannelHandler in io.netty.channel.embedded
Methods in io.netty.channel.embedded with parameters of type ChannelHandler Modifier and Type Method Description EmbeddedChannel.BuilderEmbeddedChannel.Builder. handlers(ChannelHandler... handlers)TheChannelHandlers which will be added to theChannelPipeline.Constructors in io.netty.channel.embedded with parameters of type ChannelHandler Constructor Description EmbeddedChannel(boolean register, boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the pipeline initialized with the specified handlers.EmbeddedChannel(boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelHandler... handlers)Create a new instance with the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelConfig config, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(Channel parent, ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.
-