DatagramPacket using
the specified Buffer decoder. E.g.,
ChannelPipeline pipeline = ...;
pipeline.addLast("udpDecoder", new DatagramPacketDecoder(new ByteArrayDecoder(...));
| Modifier and Type | Field and Description |
|---|---|
| private final MessageToMessageDecoder |
| Access | Constructor and Description |
|---|---|
| public | DatagramPacketDecoder(MessageToMessageDecoder<Buffer>
the specified decoder)Buffer decoderCreate a |
| decoder | back to summary |
|---|---|
| private final MessageToMessageDecoder<Buffer> decoder | |
| DatagramPacketDecoder | back to summary |
|---|---|
| public DatagramPacketDecoder(MessageToMessageDecoder<Buffer> decoder) Create a
| |
| acceptInboundMessage | back to summary |
|---|---|
| public boolean acceptInboundMessage(Object msg) throws Exception Overrides io. Doc from io. Returns
| |
| channelActive | back to summary |
|---|---|
| public void channelActive(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. The
| |
| channelExceptionCaught | back to summary |
|---|---|
| public void channelExceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception Overrides default io. Doc from io. Gets called if a
| |
| channelInactive | back to summary |
|---|---|
| public void channelInactive(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. The
| |
| channelInboundEvent | back to summary |
|---|---|
| public void channelInboundEvent(ChannelHandlerContext ctx, Object evt) throws Exception Overrides default io. Doc from io. Gets called if a custom inbound event happened.
| |
| channelReadComplete | back to summary |
|---|---|
| public void channelReadComplete(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Invoked when the last message read by the current read operation has been consumed by
| |
| channelRegistered | back to summary |
|---|---|
| public void channelRegistered(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. The
| |
| channelUnregistered | back to summary |
|---|---|
| public void channelUnregistered(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. The
| |
| channelWritabilityChanged | back to summary |
|---|---|
| public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called once the writable state of a
| |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, DatagramPacket msg) throws Exception Overrides io. Doc from io. Decode from one message to another. This method will be called for each written message that can be handled by this decoder. The message will be disposed of after this call.
Subclasses that wish to sometimes pass messages through, should instead override the
| |
| handlerAdded | back to summary |
|---|---|
| public void handlerAdded(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called after the
| |
| handlerRemoved | back to summary |
|---|---|
| public void handlerRemoved(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called after the
| |
| isSharable | back to summary |
|---|---|
| public boolean isSharable() Overrides default io. Doc from io. Returns
| |