Uses of Interface
io.netty.handler.codec.dns.DnsResponse
Packages that use DnsResponse
Package
Description
DNS codec.
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
-
Uses of DnsResponse in io.netty.handler.codec.dns
Classes in io.netty.handler.codec.dns that implement DnsResponseModifier and TypeClassDescriptionclassADnsResponseimplementation for UDP/IP.classThe defaultDnsResponseimplementation.Subclasses with type arguments of type DnsResponse in io.netty.handler.codec.dnsModifier and TypeClassDescriptionclassfinal classMethods in io.netty.handler.codec.dns that return DnsResponseModifier and TypeMethodDescriptionDefaultDnsResponse.addRecord(DnsSection section, int index, DnsRecord record) DefaultDnsResponse.addRecord(DnsSection section, DnsRecord record) DnsResponse.addRecord(DnsSection section, int index, DnsRecord record) DnsResponse.addRecord(DnsSection section, DnsRecord record) DefaultDnsResponse.clear()DefaultDnsResponse.clear(DnsSection section) DnsResponse.clear()DnsResponse.clear(DnsSection section) (package private) final DnsResponseprotected DnsResponseDatagramDnsResponseDecoder.decodeResponse(ChannelHandlerContext ctx, DatagramPacket packet) protected abstract DnsResponseDnsResponseDecoder.newResponse(A sender, A recipient, int id, DnsOpCode opCode, DnsResponseCode responseCode) DefaultDnsResponse.retain()DefaultDnsResponse.retain(int increment) DnsResponse.retain()DnsResponse.retain(int increment) DefaultDnsResponse.setAuthoritativeAnswer(boolean authoritativeAnswer) DnsResponse.setAuthoritativeAnswer(boolean authoritativeAnswer) Set totrueif responding server is authoritative for the domain name in the query message.DefaultDnsResponse.setCode(DnsResponseCode code) DnsResponse.setCode(DnsResponseCode code) Sets the response code for this message.DefaultDnsResponse.setId(int id) DnsResponse.setId(int id) DefaultDnsResponse.setRecord(DnsSection section, DnsRecord record) DnsResponse.setRecord(DnsSection section, DnsRecord record) DefaultDnsResponse.setRecursionAvailable(boolean recursionAvailable) DnsResponse.setRecursionAvailable(boolean recursionAvailable) Set totrueif DNS server can handle recursive queries.DefaultDnsResponse.setRecursionDesired(boolean recursionDesired) DnsResponse.setRecursionDesired(boolean recursionDesired) DefaultDnsResponse.setTruncated(boolean truncated) DnsResponse.setTruncated(boolean truncated) Set totrueif response has been truncated (usually happens for responses over 512 bytes).DefaultDnsResponse.setZ(int z) DnsResponse.setZ(int z) DefaultDnsResponse.touch()DnsResponse.touch()Methods in io.netty.handler.codec.dns with parameters of type DnsResponseModifier and TypeMethodDescription(package private) static StringBuilderDnsMessageUtil.appendResponse(StringBuilder buf, DnsResponse response) private static voidDnsMessageUtil.appendResponseHeader(StringBuilder buf, DnsResponse msg) private voidDnsResponseDecoder.decodeQuestions(DnsResponse response, ByteBuf buf, int questionCount) private booleanDnsResponseDecoder.decodeRecords(DnsResponse response, DnsSection section, ByteBuf buf, int count) protected voidTcpDnsResponseEncoder.encode(ChannelHandlerContext ctx, DnsResponse response, List<Object> out) (package private) static voidDnsMessageUtil.encodeDnsResponse(DnsRecordEncoder encoder, DnsResponse response, ByteBuf buf) private static voidDnsMessageUtil.encodeHeader(DnsResponse response, ByteBuf buf) Encodes the header that is always 12 bytes long.private static voidDnsMessageUtil.encodeQuestions(DnsRecordEncoder encoder, DnsResponse response, ByteBuf buf) private static voidDnsMessageUtil.encodeRecords(DnsRecordEncoder encoder, DnsResponse response, DnsSection section, ByteBuf buf) Method parameters in io.netty.handler.codec.dns with type arguments of type DnsResponseModifier and TypeMethodDescriptionprotected ByteBufDatagramDnsResponseEncoder.allocateBuffer(ChannelHandlerContext ctx, AddressedEnvelope<DnsResponse, InetSocketAddress> msg) Allocate aByteBufwhich will be used for constructing a datagram packet.protected voidDatagramDnsResponseEncoder.encode(ChannelHandlerContext ctx, AddressedEnvelope<DnsResponse, InetSocketAddress> in, List<Object> out) -
Uses of DnsResponse in io.netty.resolver.dns
Classes in io.netty.resolver.dns that implement interfaces with type arguments of type DnsResponseModifier and TypeClassDescriptionprivate static final classFields in io.netty.resolver.dns declared as DnsResponseModifier and TypeFieldDescriptionprivate final DnsResponseDnsQueryContext.AddressedEnvelopeAdapter.responseFields in io.netty.resolver.dns with type parameters of type DnsResponseModifier and TypeFieldDescriptionprivate final Promise<AddressedEnvelope<DnsResponse, InetSocketAddress>> DnsQueryContext.promiseprivate final Set<Future<AddressedEnvelope<DnsResponse, InetSocketAddress>>> DnsResolveContext.queriesInProgressMethods in io.netty.resolver.dns that return DnsResponseMethods in io.netty.resolver.dns that return types with arguments of type DnsResponseModifier and TypeMethodDescriptionprivate static Promise<AddressedEnvelope<DnsResponse, InetSocketAddress>> (package private) final Future<AddressedEnvelope<DnsResponse, InetSocketAddress>> DnsNameResolver.doQuery(Channel channel, InetSocketAddress nameServerAddr, DnsQuestion question, DnsQueryLifecycleObserver queryLifecycleObserver, DnsRecord[] additionals, boolean flush, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) DnsNameResolver.query(DnsQuestion question) Sends a DNS query with the specified question.DnsNameResolver.query(DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) Sends a DNS query with the specified question.DnsNameResolver.query(DnsQuestion question, Iterable<DnsRecord> additionals) Sends a DNS query with the specified question with additional records.DnsNameResolver.query(InetSocketAddress nameServerAddr, DnsQuestion question) Sends a DNS query with the specified question using the specified name server list.DnsNameResolver.query(InetSocketAddress nameServerAddr, DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) Sends a DNS query with the specified question using the specified name server list.DnsNameResolver.query(InetSocketAddress nameServerAddr, DnsQuestion question, Iterable<DnsRecord> additionals) Sends a DNS query with the specified question with additional records using the specified name server list.DnsNameResolver.query(InetSocketAddress nameServerAddr, DnsQuestion question, Iterable<DnsRecord> additionals, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) Sends a DNS query with the specified question with additional records using the specified name server list.DnsQueryContext.AddressedEnvelopeAdapter.retain()DnsQueryContext.AddressedEnvelopeAdapter.retain(int increment) DnsQueryContext.AddressedEnvelopeAdapter.touch()Methods in io.netty.resolver.dns with parameters of type DnsResponseModifier and TypeMethodDescriptionDnsResolveContext.buildAliasMap(DnsResponse response, DnsCnameCache cache, EventLoop loop) private static DnsResolveContext.AuthoritativeNameServerListDnsResolveContext.extractAuthoritativeNameServers(String questionName, DnsResponse res) Returns the invalid input: '{@code {@link AuthoritativeNameServerList} which were included in {@link DnsSection#AUTHORITY} or {@code null} if non are found.'Method parameters in io.netty.resolver.dns with type arguments of type DnsResponseModifier and TypeMethodDescription(package private) final Future<AddressedEnvelope<DnsResponse, InetSocketAddress>> DnsNameResolver.doQuery(Channel channel, InetSocketAddress nameServerAddr, DnsQuestion question, DnsQueryLifecycleObserver queryLifecycleObserver, DnsRecord[] additionals, boolean flush, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) (package private) voidDnsQueryContext.finishSuccess(AddressedEnvelope<? extends DnsResponse, InetSocketAddress> envelope, boolean truncated) Notifies the originalPromisethat the response for the query was received.private booleanDnsResolveContext.handleRedirect(DnsQuestion question, AddressedEnvelope<DnsResponse, InetSocketAddress> envelope, DnsQueryLifecycleObserver queryLifecycleObserver, Promise<List<T>> promise) Handles a redirect answer if needed and returnstrueif a redirect query has been made.private voidDnsResolveContext.onExpectedResponse(DnsQuestion question, AddressedEnvelope<DnsResponse, InetSocketAddress> envelope, DnsQueryLifecycleObserver queryLifecycleObserver, Promise<List<T>> promise) private voidDnsResolveContext.onResponse(DnsServerAddressStream nameServerAddrStream, int nameServerAddrStreamIndex, DnsQuestion question, AddressedEnvelope<DnsResponse, InetSocketAddress> envelope, DnsQueryLifecycleObserver queryLifecycleObserver, Promise<List<T>> promise) DnsNameResolver.query(DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) Sends a DNS query with the specified question.DnsNameResolver.query(InetSocketAddress nameServerAddr, DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) Sends a DNS query with the specified question using the specified name server list.DnsNameResolver.query(InetSocketAddress nameServerAddr, DnsQuestion question, Iterable<DnsRecord> additionals, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) Sends a DNS query with the specified question with additional records using the specified name server list.private booleanDnsQueryContext.trySuccess(AddressedEnvelope<? extends DnsResponse, InetSocketAddress> envelope) Constructors in io.netty.resolver.dns with parameters of type DnsResponseModifierConstructorDescription(package private)AddressedEnvelopeAdapter(InetSocketAddress sender, InetSocketAddress recipient, DnsResponse response) Constructor parameters in io.netty.resolver.dns with type arguments of type DnsResponseModifierConstructorDescription(package private)DatagramDnsQueryContext(Channel channel, InetSocketAddress nameServerAddr, DnsQueryContextManager queryContextManager, int maxPayLoadSize, boolean recursionDesired, long queryTimeoutMillis, DnsQuestion question, DnsRecord[] additionals, Promise<AddressedEnvelope<DnsResponse, InetSocketAddress>> promise, Bootstrap socketBootstrap, boolean retryWithTcpOnTimeout) (package private)DnsQueryContext(Channel channel, InetSocketAddress nameServerAddr, DnsQueryContextManager queryContextManager, int maxPayLoadSize, boolean recursionDesired, long queryTimeoutMillis, DnsQuestion question, DnsRecord[] additionals, Promise<AddressedEnvelope<DnsResponse, InetSocketAddress>> promise, Bootstrap socketBootstrap, boolean retryWithTcpOnTimeout) (package private)TcpDnsQueryContext(Channel channel, InetSocketAddress nameServerAddr, DnsQueryContextManager queryContextManager, int maxPayLoadSize, boolean recursionDesired, long queryTimeoutMillis, DnsQuestion question, DnsRecord[] additionals, Promise<AddressedEnvelope<DnsResponse, InetSocketAddress>> promise)