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 virtual
Channel that helps wrapping a series of handlers to
unit test the handlers or use them in non-I/O context. |
Modifier and Type | Method and Description |
---|---|
ChannelHandler |
ServerBootstrapConfig.childHandler()
Returns the configured
ChannelHandler be used for the child channels or null
if non is configured yet. |
ChannelHandler |
AbstractBootstrapConfig.handler()
Returns the configured
ChannelHandler or null if non is configured yet. |
Modifier and Type | Method and Description |
---|---|
ServerBootstrap |
ServerBootstrap.childHandler(ChannelHandler childHandler)
Set the
ChannelHandler which is used to serve the request for the Channel 's. |
B |
AbstractBootstrap.handler(ChannelHandler handler)
the
ChannelHandler to use for serving the requests. |
Modifier and Type | Interface and Description |
---|---|
interface |
ChannelInboundHandler
ChannelHandler which adds callbacks for state changes. |
interface |
ChannelOutboundHandler
ChannelHandler which will get notified for IO-outbound-operations. |
Modifier and Type | Class and Description |
---|---|
class |
ChannelDuplexHandler
ChannelHandler implementation which represents a combination out of a ChannelInboundHandler and
the ChannelOutboundHandler . |
class |
ChannelHandlerAdapter
Skeleton implementation of a
ChannelHandler . |
class |
ChannelInboundHandlerAdapter
Abstract base class for
ChannelInboundHandler implementations which provide
implementations of all of their methods. |
class |
ChannelInitializer<C extends Channel>
A special
ChannelInboundHandler which offers an easy way to initialize a Channel once it was
registered to its EventLoop . |
class |
ChannelOutboundHandlerAdapter
Skeleton implementation of a
ChannelOutboundHandler . |
class |
CombinedChannelDuplexHandler<I extends ChannelInboundHandler,O extends ChannelOutboundHandler>
|
class |
SimpleChannelInboundHandler<I>
ChannelInboundHandlerAdapter which allows to explicit only handle a specific type of messages. |
class |
SimpleUserEventChannelHandler<I>
ChannelInboundHandlerAdapter which allows to conveniently only handle a specific type of user events. |
Modifier and Type | Method and Description |
---|---|
<T extends ChannelHandler> |
DefaultChannelPipeline.get(Class<T> handlerType) |
<T extends ChannelHandler> |
ChannelPipeline.get(Class<T> handlerType)
Returns the
ChannelHandler of the specified type in this
pipeline. |
<T extends ChannelHandler> |
DefaultChannelPipeline.remove(Class<T> handlerType) |
<T extends ChannelHandler> |
ChannelPipeline.remove(Class<T> handlerType)
Removes the
ChannelHandler of the specified type from this pipeline. |
<T extends ChannelHandler> |
DefaultChannelPipeline.removeIfExists(ChannelHandler handler) |
<T extends ChannelHandler> |
DefaultChannelPipeline.removeIfExists(Class<T> handlerType) |
<T extends ChannelHandler> |
DefaultChannelPipeline.removeIfExists(String name) |
<T extends ChannelHandler> |
DefaultChannelPipeline.replace(Class<T> oldHandlerType,
String newName,
ChannelHandler newHandler) |
<T extends ChannelHandler> |
ChannelPipeline.replace(Class<T> oldHandlerType,
String newName,
ChannelHandler newHandler)
Replaces the
ChannelHandler of the specified type with a new handler in this pipeline. |
Modifier and Type | Method and Description |
---|---|
ChannelHandler |
DefaultChannelPipeline.first() |
ChannelHandler |
ChannelPipeline.first()
Returns the first
ChannelHandler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.get(String name) |
ChannelHandler |
ChannelPipeline.get(String name)
Returns the
ChannelHandler with the specified name in this
pipeline. |
ChannelHandler |
ChannelHandlerContext.handler()
The
ChannelHandler that is bound this ChannelHandlerContext . |
ChannelHandler |
DefaultChannelPipeline.last() |
ChannelHandler |
ChannelPipeline.last()
Returns the last
ChannelHandler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.remove(String name) |
ChannelHandler |
ChannelPipeline.remove(String name)
Removes the
ChannelHandler with the specified name from this pipeline. |
ChannelHandler |
DefaultChannelPipeline.removeFirst() |
ChannelHandler |
ChannelPipeline.removeFirst()
Removes the first
ChannelHandler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.removeLast() |
ChannelHandler |
ChannelPipeline.removeLast()
Removes the last
ChannelHandler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.replace(String oldName,
String newName,
ChannelHandler newHandler) |
ChannelHandler |
ChannelPipeline.replace(String oldName,
String newName,
ChannelHandler newHandler)
Replaces the
ChannelHandler of the specified name with a new handler in this pipeline. |
Modifier and Type | Method and Description |
---|---|
Iterator<Map.Entry<String,ChannelHandler>> |
DefaultChannelPipeline.iterator() |
Map<String,ChannelHandler> |
DefaultChannelPipeline.toMap() |
Map<String,ChannelHandler> |
ChannelPipeline.toMap()
Converts this pipeline into an ordered
Map whose keys are
handler names and whose values are handlers. |
Modifier and Type | Method and Description |
---|---|
ChannelPipeline |
DefaultChannelPipeline.addAfter(io.netty.util.concurrent.EventExecutorGroup group,
String baseName,
String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addAfter(io.netty.util.concurrent.EventExecutorGroup group,
String baseName,
String name,
ChannelHandler handler)
Inserts a
ChannelHandler after an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addAfter(String baseName,
String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addAfter(String baseName,
String name,
ChannelHandler handler)
Inserts a
ChannelHandler after an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addBefore(io.netty.util.concurrent.EventExecutorGroup group,
String baseName,
String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addBefore(io.netty.util.concurrent.EventExecutorGroup group,
String baseName,
String name,
ChannelHandler handler)
Inserts a
ChannelHandler before an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addBefore(String baseName,
String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addBefore(String baseName,
String name,
ChannelHandler handler)
Inserts a
ChannelHandler before an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addFirst(ChannelHandler... handlers)
Inserts
ChannelHandler s at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(ChannelHandler handler) |
ChannelPipeline |
DefaultChannelPipeline.addFirst(io.netty.util.concurrent.EventExecutorGroup executor,
ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addFirst(io.netty.util.concurrent.EventExecutorGroup group,
ChannelHandler... handlers)
Inserts
ChannelHandler s at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(io.netty.util.concurrent.EventExecutorGroup group,
String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addFirst(io.netty.util.concurrent.EventExecutorGroup group,
String name,
ChannelHandler handler)
Inserts a
ChannelHandler at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addFirst(String name,
ChannelHandler handler)
Inserts a
ChannelHandler at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addLast(ChannelHandler... handlers)
Inserts
ChannelHandler s at the last position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(ChannelHandler handler) |
ChannelPipeline |
DefaultChannelPipeline.addLast(io.netty.util.concurrent.EventExecutorGroup executor,
ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addLast(io.netty.util.concurrent.EventExecutorGroup group,
ChannelHandler... handlers)
Inserts
ChannelHandler s at the last position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(io.netty.util.concurrent.EventExecutorGroup group,
String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addLast(io.netty.util.concurrent.EventExecutorGroup group,
String name,
ChannelHandler handler)
Appends a
ChannelHandler at the last position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addLast(String name,
ChannelHandler handler)
Appends a
ChannelHandler at the last position of this pipeline. |
ChannelHandlerContext |
DefaultChannelPipeline.context(ChannelHandler handler) |
ChannelHandlerContext |
ChannelPipeline.context(ChannelHandler handler)
Returns the context object of the specified
ChannelHandler in
this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.remove(ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.remove(ChannelHandler handler)
Removes the specified
ChannelHandler from this pipeline. |
<T extends ChannelHandler> |
DefaultChannelPipeline.removeIfExists(ChannelHandler handler) |
ChannelPipeline |
DefaultChannelPipeline.replace(ChannelHandler oldHandler,
String newName,
ChannelHandler newHandler) |
ChannelPipeline |
ChannelPipeline.replace(ChannelHandler oldHandler,
String newName,
ChannelHandler newHandler)
Replaces the specified
ChannelHandler with a new handler in this pipeline. |
<T extends ChannelHandler> |
DefaultChannelPipeline.replace(Class<T> oldHandlerType,
String newName,
ChannelHandler newHandler) |
<T extends ChannelHandler> |
ChannelPipeline.replace(Class<T> oldHandlerType,
String newName,
ChannelHandler newHandler)
Replaces the
ChannelHandler of the specified type with a new handler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.replace(String oldName,
String newName,
ChannelHandler newHandler) |
ChannelHandler |
ChannelPipeline.replace(String oldName,
String newName,
ChannelHandler newHandler)
Replaces the
ChannelHandler of the specified name with a new handler in this pipeline. |
Modifier and Type | Method and Description |
---|---|
ChannelHandlerContext |
DefaultChannelPipeline.context(Class<? extends ChannelHandler> handlerType) |
ChannelHandlerContext |
ChannelPipeline.context(Class<? extends ChannelHandler> handlerType)
Returns the context object of the
ChannelHandler of the
specified type in this pipeline. |
Constructor and 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(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.
|
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.
|
Copyright © 2008–2024 The Netty Project. All rights reserved.