Tabnine Logo
HostInfo.getDNSReverseAddressRecord
Code IndexAdd Tabnine to your IDE (free)

How to use
getDNSReverseAddressRecord
method
in
javax.jmdns.impl.HostInfo

Best Java code snippets using javax.jmdns.impl.HostInfo.getDNSReverseAddressRecord (Showing top 4 results out of 315)

origin: javax.jmdns/jmdns

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  // find matching services
  for (ServiceInfo serviceInfo : jmDNSImpl.getServices().values()) {
    this.addAnswersForServiceInfo(jmDNSImpl, answers, (ServiceInfoImpl) serviceInfo);
  }
  if (this.isServicesDiscoveryMetaQuery()) {
    for (String serviceType : jmDNSImpl.getServiceTypes().keySet()) {
      ServiceTypeEntry typeEntry = jmDNSImpl.getServiceTypes().get(serviceType);
      answers.add(new DNSRecord.Pointer("_services._dns-sd._udp.local.", DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL, typeEntry.getType()));
    }
  } else if (this.isReverseLookup()) {
    String ipValue = this.getQualifiedNameMap().get(Fields.Instance);
    if ((ipValue != null) && (ipValue.length() > 0)) {
      InetAddress address = jmDNSImpl.getLocalHost().getInetAddress();
      String hostIPAddress = (address != null ? address.getHostAddress() : "");
      if (ipValue.equalsIgnoreCase(hostIPAddress)) {
        if (this.isV4ReverseLookup()) {
          answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_A, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
        }
        if (this.isV6ReverseLookup()) {
          answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_AAAA, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
        }
      }
    }
  } else if (this.isDomainDiscoveryQuery()) {
    // FIXME [PJYF Nov 16 2010] We do not currently support domain discovery
  }
}
origin: org.jmdns/jmdns

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  // find matching services
  for (ServiceInfo serviceInfo : jmDNSImpl.getServices().values()) {
    this.addAnswersForServiceInfo(jmDNSImpl, answers, (ServiceInfoImpl) serviceInfo);
  }
  if (this.isServicesDiscoveryMetaQuery()) {
    for (final ServiceTypeEntry typeEntry : jmDNSImpl.getServiceTypes().values()) {
      answers.add(new DNSRecord.Pointer("_services._dns-sd._udp.local.", DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL, typeEntry.getType()));
    }
  } else if (this.isReverseLookup()) {
    String ipValue = this.getQualifiedNameMap().get(Fields.Instance);
    if ((ipValue != null) && (ipValue.length() > 0)) {
      InetAddress address = jmDNSImpl.getLocalHost().getInetAddress();
      String hostIPAddress = (address != null ? address.getHostAddress() : "");
      if (ipValue.equalsIgnoreCase(hostIPAddress)) {
        if (this.isV4ReverseLookup()) {
          answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_A, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
        }
        if (this.isV6ReverseLookup()) {
          answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_AAAA, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
        }
      }
    }
  } else if (this.isDomainDiscoveryQuery()) {
    // FIXME [PJYF Nov 16 2010] We do not currently support domain discovery
  }
}
origin: org.jenkins-ci/jmdns

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  // find matching services
  for (ServiceInfo serviceInfo : jmDNSImpl.getServices().values()) {
    this.addAnswersForServiceInfo(jmDNSImpl, answers, (ServiceInfoImpl) serviceInfo);
  }
  if (this.isServicesDiscoveryMetaQuery()) {
    for (String serviceType : jmDNSImpl.getServiceTypes().keySet()) {
      ServiceTypeEntry typeEntry = jmDNSImpl.getServiceTypes().get(serviceType);
      answers.add(new DNSRecord.Pointer("_services._dns-sd._udp.local.", DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL, typeEntry.getType()));
    }
  } else if (this.isReverseLookup()) {
    String ipValue = this.getQualifiedNameMap().get(Fields.Instance);
    if ((ipValue != null) && (ipValue.length() > 0)) {
      InetAddress address = jmDNSImpl.getLocalHost().getInetAddress();
      String hostIPAddress = (address != null ? address.getHostAddress() : "");
      if (ipValue.equalsIgnoreCase(hostIPAddress)) {
        if (this.isV4ReverseLookup()) {
          answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_A, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
        }
        if (this.isV6ReverseLookup()) {
          answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_AAAA, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
        }
      }
    }
  } else if (this.isDomainDiscoveryQuery()) {
    // FIXME [PJYF Nov 16 2010] We do not currently support domain discovery
  }
}
origin: DeviceConnect/DeviceConnect-Android

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  // find matching services
  for (ServiceInfo serviceInfo : jmDNSImpl.getServices().values()) {
    this.addAnswersForServiceInfo(jmDNSImpl, answers, (ServiceInfoImpl) serviceInfo);
  }
  if (this.isServicesDiscoveryMetaQuery()) {
    for (String serviceType : jmDNSImpl.getServiceTypes().keySet()) {
      ServiceTypeEntry typeEntry = jmDNSImpl.getServiceTypes().get(serviceType);
      answers.add(new DNSRecord.Pointer("_services._dns-sd._udp.local.", DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL, typeEntry.getType()));
    }
  } else if (this.isReverseLookup()) {
    String ipValue = this.getQualifiedNameMap().get(Fields.Instance);
    if ((ipValue != null) && (ipValue.length() > 0)) {
      InetAddress address = jmDNSImpl.getLocalHost().getInetAddress();
      String hostIPAddress = (address != null ? address.getHostAddress() : "");
      if (ipValue.equalsIgnoreCase(hostIPAddress)) {
        if (this.isV4ReverseLookup()) {
          answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_A, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
        }
        if (this.isV6ReverseLookup()) {
          answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_AAAA, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
        }
      }
    }
  } else if (this.isDomainDiscoveryQuery()) {
    // FIXME [PJYF Nov 16 2010] We do not currently support domain discovery
  }
}
javax.jmdns.implHostInfogetDNSReverseAddressRecord

Popular methods of HostInfo

  • getInetAddress
  • getName
  • <init>
  • advanceState
  • answers
  • associateWithTask
  • cancelState
  • closeState
  • getDNS4AddressRecord
  • getDNS4ReverseAddressRecord
  • getDNS6AddressRecord
  • getDNS6ReverseAddressRecord
  • getDNS6AddressRecord,
  • getDNS6ReverseAddressRecord,
  • getDNSAddressRecord,
  • getInet4Address,
  • getInet6Address,
  • getInterface,
  • incrementHostName,
  • isAnnounced,
  • isAnnouncing

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now