| Modifier and Type | Field and Description |
|---|---|
| private final DnsRecordEncoder |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | encode(ChannelHandlerContext
the ctx, DnsResponse ChannelHandlerContext which this MessageToMessageEncoder belongs to.the message to encode to another one. response, List<Object> the out)List into which produced output messages should be added.Overrides io. |
| public boolean | isSharable()
Overrides default io. true if this handler is sharable and thus can be added
to more than one ChannelPipeline.
|
| encoder | back to summary |
|---|---|
| private final DnsRecordEncoder encoder | |
| TcpDnsResponseEncoder | back to summary |
|---|---|
| public TcpDnsResponseEncoder() Creates a new encoder with the default record encoder. | |
| TcpDnsResponseEncoder | back to summary |
|---|---|
| public TcpDnsResponseEncoder(DnsRecordEncoder encoder) Creates a new encoder with the specified | |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, DnsResponse response, List<Object> out) throws Exception Overrides io. Doc from io. Encode from one message to another. This method will be called for each written message that can be handled by this encoder. The message will be disposed of after this call.
Subclasses that wish to sometimes pass messages through, should instead override the
| |
| isSharable | back to summary |
|---|---|
| public boolean isSharable() Overrides default io. Doc from io. Returns
| |