@Test @Ignore public void resolveCustom() { final String nameserver = System.getProperty("SRVDNSResolverTest.nameserver"); final SRVDNSResolver resolver; if (nameserver == null) { resolver = new SRVDNSResolver(new DefaultDNSContextFactory()); } else { resolver = new SRVDNSResolver(new DefaultDNSContextFactory(nameserver)); } final String recordName = System.getProperty("SRVDNSResolverTest.name"); final Set<SRVRecord> records = resolver.resolve(recordName); Assert.assertTrue(records.size() > 0); }
@Override public Set<SRVRecord> resolve(final String name) { if (name == null) { return super.resolve(DEFAULT_RECORD_NAME); } return super.resolve(name); }
SRVDNSResolver extends AbstractDNSResolver<SRVRecord> { @Override public Set<SRVRecord> resolve(final String name) { if (name == null) { return super.resolve(DEFAULT_RECORD_NAME); } return super.resolve(name); } }
SRVDNSResolver extends AbstractDNSResolver<SRVRecord> { @Override public Set<SRVRecord> resolve(final String name) { if (name == null) { return super.resolve(DEFAULT_RECORD_NAME); } return super.resolve(name); } SRVDNSResolver();  SRVDNSResolver(final DNSContextFactory factory);  SRVDNSResolver(final DNSContextFactory factory, final boolean ssl); }
SRVDNSResolver extends AbstractDNSResolver<SRVRecord> { @Override public Set<SRVRecord> resolve(final String name) { if (name == null) { return super.resolve(DEFAULT_RECORD_NAME); } return super.resolve(name); } SRVDNSResolver();  SRVDNSResolver(final DNSContextFactory factory);  SRVDNSResolver(final DNSContextFactory factory, final boolean ssl); @Override Set<SRVRecord> resolve(final String name); @Override String toString(); }
SRVDNSResolver extends AbstractDNSResolver<SRVRecord> { @Override public Set<SRVRecord> resolve(final String name) { if (name == null) { return super.resolve(DEFAULT_RECORD_NAME); } return super.resolve(name); } SRVDNSResolver();  SRVDNSResolver(final DNSContextFactory factory);  SRVDNSResolver(final DNSContextFactory factory, final boolean ssl); @Override Set<SRVRecord> resolve(final String name); @Override String toString();  }