| Modifier and Type | Field and Description |
|---|---|
| private final DnsQueryEncoder |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DatagramDnsQueryEncoder(DnsRecordEncoder recordEncoder)
Creates a new encoder with the specified |
| Modifier and Type | Method and Description |
|---|---|
| protected Buffer | allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsQuery, InetSocketAddress> msg)
Allocate a |
| protected void | encode(ChannelHandlerContext
the ctx, AddressedEnvelope<DnsQuery, InetSocketAddress> ChannelHandlerContext which this MessageToMessageEncoder belongs to.the message to encode to another one. in, 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 DnsQueryEncoder encoder | |
| DatagramDnsQueryEncoder | back to summary |
|---|---|
| public DatagramDnsQueryEncoder() Creates a new encoder with the default record encoder. | |
| DatagramDnsQueryEncoder | back to summary |
|---|---|
| public DatagramDnsQueryEncoder(DnsRecordEncoder recordEncoder) Creates a new encoder with the specified | |
| allocateBuffer | back to summary |
|---|---|
| protected Buffer allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsQuery, InetSocketAddress> msg) throws Exception Allocate a | |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, AddressedEnvelope<DnsQuery, InetSocketAddress> in, 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
| |