Class DelegatingChannelHandlerContext
- java.lang.Object
-
- software.amazon.awssdk.http.nio.netty.internal.utils.DelegatingChannelHandlerContext
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandlerContext
,io.netty.channel.ChannelInboundInvoker
,io.netty.channel.ChannelOutboundInvoker
,io.netty.util.AttributeMap
- Direct Known Subclasses:
OrderedWriteChannelHandlerContext
public abstract class DelegatingChannelHandlerContext extends Object implements io.netty.channel.ChannelHandlerContext
An abstract implementation ofChannelHandlerContext
that delegates to another context for non-overridden methods.
-
-
Constructor Summary
Constructors Constructor Description DelegatingChannelHandlerContext(io.netty.channel.ChannelHandlerContext delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBufAllocator
alloc()
<T> io.netty.util.Attribute<T>
attr(io.netty.util.AttributeKey<T> key)
io.netty.channel.ChannelFuture
bind(SocketAddress localAddress)
io.netty.channel.ChannelFuture
bind(SocketAddress localAddress, io.netty.channel.ChannelPromise promise)
io.netty.channel.Channel
channel()
io.netty.channel.ChannelFuture
close()
io.netty.channel.ChannelFuture
close(io.netty.channel.ChannelPromise promise)
io.netty.channel.ChannelFuture
connect(SocketAddress remoteAddress)
io.netty.channel.ChannelFuture
connect(SocketAddress remoteAddress, io.netty.channel.ChannelPromise promise)
io.netty.channel.ChannelFuture
connect(SocketAddress remoteAddress, SocketAddress localAddress)
io.netty.channel.ChannelFuture
connect(SocketAddress remoteAddress, SocketAddress localAddress, io.netty.channel.ChannelPromise promise)
io.netty.channel.ChannelFuture
deregister()
io.netty.channel.ChannelFuture
deregister(io.netty.channel.ChannelPromise promise)
io.netty.channel.ChannelFuture
disconnect()
io.netty.channel.ChannelFuture
disconnect(io.netty.channel.ChannelPromise promise)
io.netty.util.concurrent.EventExecutor
executor()
io.netty.channel.ChannelHandlerContext
fireChannelActive()
io.netty.channel.ChannelHandlerContext
fireChannelInactive()
io.netty.channel.ChannelHandlerContext
fireChannelRead(Object msg)
io.netty.channel.ChannelHandlerContext
fireChannelReadComplete()
io.netty.channel.ChannelHandlerContext
fireChannelRegistered()
io.netty.channel.ChannelHandlerContext
fireChannelUnregistered()
io.netty.channel.ChannelHandlerContext
fireChannelWritabilityChanged()
io.netty.channel.ChannelHandlerContext
fireExceptionCaught(Throwable cause)
io.netty.channel.ChannelHandlerContext
fireUserEventTriggered(Object evt)
io.netty.channel.ChannelHandlerContext
flush()
io.netty.channel.ChannelHandler
handler()
<T> boolean
hasAttr(io.netty.util.AttributeKey<T> key)
boolean
isRemoved()
String
name()
io.netty.channel.ChannelFuture
newFailedFuture(Throwable cause)
io.netty.channel.ChannelProgressivePromise
newProgressivePromise()
io.netty.channel.ChannelPromise
newPromise()
io.netty.channel.ChannelFuture
newSucceededFuture()
io.netty.channel.ChannelPipeline
pipeline()
io.netty.channel.ChannelHandlerContext
read()
io.netty.channel.ChannelPromise
voidPromise()
io.netty.channel.ChannelFuture
write(Object msg)
io.netty.channel.ChannelFuture
write(Object msg, io.netty.channel.ChannelPromise promise)
io.netty.channel.ChannelFuture
writeAndFlush(Object msg)
io.netty.channel.ChannelFuture
writeAndFlush(Object msg, io.netty.channel.ChannelPromise promise)
-
-
-
Method Detail
-
channel
public io.netty.channel.Channel channel()
- Specified by:
channel
in interfaceio.netty.channel.ChannelHandlerContext
-
executor
public io.netty.util.concurrent.EventExecutor executor()
- Specified by:
executor
in interfaceio.netty.channel.ChannelHandlerContext
-
name
public String name()
- Specified by:
name
in interfaceio.netty.channel.ChannelHandlerContext
-
handler
public io.netty.channel.ChannelHandler handler()
- Specified by:
handler
in interfaceio.netty.channel.ChannelHandlerContext
-
isRemoved
public boolean isRemoved()
- Specified by:
isRemoved
in interfaceio.netty.channel.ChannelHandlerContext
-
fireChannelRegistered
public io.netty.channel.ChannelHandlerContext fireChannelRegistered()
- Specified by:
fireChannelRegistered
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
fireChannelRegistered
in interfaceio.netty.channel.ChannelInboundInvoker
-
fireChannelUnregistered
public io.netty.channel.ChannelHandlerContext fireChannelUnregistered()
- Specified by:
fireChannelUnregistered
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
fireChannelUnregistered
in interfaceio.netty.channel.ChannelInboundInvoker
-
fireChannelActive
public io.netty.channel.ChannelHandlerContext fireChannelActive()
- Specified by:
fireChannelActive
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
fireChannelActive
in interfaceio.netty.channel.ChannelInboundInvoker
-
fireChannelInactive
public io.netty.channel.ChannelHandlerContext fireChannelInactive()
- Specified by:
fireChannelInactive
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
fireChannelInactive
in interfaceio.netty.channel.ChannelInboundInvoker
-
fireExceptionCaught
public io.netty.channel.ChannelHandlerContext fireExceptionCaught(Throwable cause)
- Specified by:
fireExceptionCaught
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
fireExceptionCaught
in interfaceio.netty.channel.ChannelInboundInvoker
-
fireUserEventTriggered
public io.netty.channel.ChannelHandlerContext fireUserEventTriggered(Object evt)
- Specified by:
fireUserEventTriggered
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
fireUserEventTriggered
in interfaceio.netty.channel.ChannelInboundInvoker
-
fireChannelRead
public io.netty.channel.ChannelHandlerContext fireChannelRead(Object msg)
- Specified by:
fireChannelRead
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
fireChannelRead
in interfaceio.netty.channel.ChannelInboundInvoker
-
fireChannelReadComplete
public io.netty.channel.ChannelHandlerContext fireChannelReadComplete()
- Specified by:
fireChannelReadComplete
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
fireChannelReadComplete
in interfaceio.netty.channel.ChannelInboundInvoker
-
fireChannelWritabilityChanged
public io.netty.channel.ChannelHandlerContext fireChannelWritabilityChanged()
- Specified by:
fireChannelWritabilityChanged
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
fireChannelWritabilityChanged
in interfaceio.netty.channel.ChannelInboundInvoker
-
bind
public io.netty.channel.ChannelFuture bind(SocketAddress localAddress)
- Specified by:
bind
in interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress)
- Specified by:
connect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress)
- Specified by:
connect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
disconnect
public io.netty.channel.ChannelFuture disconnect()
- Specified by:
disconnect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
close
public io.netty.channel.ChannelFuture close()
- Specified by:
close
in interfaceio.netty.channel.ChannelOutboundInvoker
-
deregister
public io.netty.channel.ChannelFuture deregister()
- Specified by:
deregister
in interfaceio.netty.channel.ChannelOutboundInvoker
-
bind
public io.netty.channel.ChannelFuture bind(SocketAddress localAddress, io.netty.channel.ChannelPromise promise)
- Specified by:
bind
in interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress, io.netty.channel.ChannelPromise promise)
- Specified by:
connect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress remoteAddress, SocketAddress localAddress, io.netty.channel.ChannelPromise promise)
- Specified by:
connect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
disconnect
public io.netty.channel.ChannelFuture disconnect(io.netty.channel.ChannelPromise promise)
- Specified by:
disconnect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
close
public io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise promise)
- Specified by:
close
in interfaceio.netty.channel.ChannelOutboundInvoker
-
deregister
public io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise promise)
- Specified by:
deregister
in interfaceio.netty.channel.ChannelOutboundInvoker
-
read
public io.netty.channel.ChannelHandlerContext read()
- Specified by:
read
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
read
in interfaceio.netty.channel.ChannelOutboundInvoker
-
write
public io.netty.channel.ChannelFuture write(Object msg)
- Specified by:
write
in interfaceio.netty.channel.ChannelOutboundInvoker
-
write
public io.netty.channel.ChannelFuture write(Object msg, io.netty.channel.ChannelPromise promise)
- Specified by:
write
in interfaceio.netty.channel.ChannelOutboundInvoker
-
flush
public io.netty.channel.ChannelHandlerContext flush()
- Specified by:
flush
in interfaceio.netty.channel.ChannelHandlerContext
- Specified by:
flush
in interfaceio.netty.channel.ChannelOutboundInvoker
-
writeAndFlush
public io.netty.channel.ChannelFuture writeAndFlush(Object msg, io.netty.channel.ChannelPromise promise)
- Specified by:
writeAndFlush
in interfaceio.netty.channel.ChannelOutboundInvoker
-
writeAndFlush
public io.netty.channel.ChannelFuture writeAndFlush(Object msg)
- Specified by:
writeAndFlush
in interfaceio.netty.channel.ChannelOutboundInvoker
-
newPromise
public io.netty.channel.ChannelPromise newPromise()
- Specified by:
newPromise
in interfaceio.netty.channel.ChannelOutboundInvoker
-
newProgressivePromise
public io.netty.channel.ChannelProgressivePromise newProgressivePromise()
- Specified by:
newProgressivePromise
in interfaceio.netty.channel.ChannelOutboundInvoker
-
newSucceededFuture
public io.netty.channel.ChannelFuture newSucceededFuture()
- Specified by:
newSucceededFuture
in interfaceio.netty.channel.ChannelOutboundInvoker
-
newFailedFuture
public io.netty.channel.ChannelFuture newFailedFuture(Throwable cause)
- Specified by:
newFailedFuture
in interfaceio.netty.channel.ChannelOutboundInvoker
-
voidPromise
public io.netty.channel.ChannelPromise voidPromise()
- Specified by:
voidPromise
in interfaceio.netty.channel.ChannelOutboundInvoker
-
pipeline
public io.netty.channel.ChannelPipeline pipeline()
- Specified by:
pipeline
in interfaceio.netty.channel.ChannelHandlerContext
-
alloc
public io.netty.buffer.ByteBufAllocator alloc()
- Specified by:
alloc
in interfaceio.netty.channel.ChannelHandlerContext
-
attr
public <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> key)
- Specified by:
attr
in interfaceio.netty.util.AttributeMap
- Specified by:
attr
in interfaceio.netty.channel.ChannelHandlerContext
-
hasAttr
public <T> boolean hasAttr(io.netty.util.AttributeKey<T> key)
- Specified by:
hasAttr
in interfaceio.netty.util.AttributeMap
- Specified by:
hasAttr
in interfaceio.netty.channel.ChannelHandlerContext
-
-