本文整理了Java中org.xbill.DNS.Lookup.setDefaultCache()
方法的一些代码示例,展示了Lookup.setDefaultCache()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lookup.setDefaultCache()
方法的具体详情如下:
包路径:org.xbill.DNS.Lookup
类名称:Lookup
方法名:setDefaultCache
暂无
代码示例来源:origin: naver/ngrinder
public LocalManagedDnsImpl() {
Cache cache = createCache();
Lookup.setDefaultCache(cache, DClass.IN);
}
代码示例来源:origin: naver/ngrinder
@After
public void after() {
Lookup.setDefaultCache(new Cache(), DClass.IN);
}
代码示例来源:origin: apache/james-project
Lookup.setDefaultCache(cache, DClass.IN);
Lookup.setDefaultSearchPath(searchPaths);
LOGGER.info("Registered cache, resolver and search paths as DNSJava defaults");
代码示例来源:origin: org.apache.james/james-server-dnsservice-dnsjava
Lookup.setDefaultCache(cache, DClass.IN);
Lookup.setDefaultSearchPath(searchPaths);
LOGGER.info("Registered cache, resolver and search paths as DNSJava defaults");
代码示例来源:origin: org.apache.james/james-server-dnsservice-dnsjava
@After
public void tearDown() throws Exception {
dnsServer.setCache(null);
dnsServer = null;
Lookup.setDefaultCache(defaultCache, DClass.IN);
Lookup.setDefaultResolver(defaultResolver);
Lookup.setDefaultSearchPath(defaultSearchPaths);
}
代码示例来源:origin: apache/james-project
@After
public void tearDown() throws Exception {
dnsServer.setCache(null);
dnsServer = null;
Lookup.setDefaultCache(defaultCache, DClass.IN);
Lookup.setDefaultResolver(defaultResolver);
Lookup.setDefaultSearchPath(defaultSearchPaths);
}
代码示例来源:origin: org.apache.james/james-server-dnsservice-dnsjava
@Before
public void setUp() throws Exception {
dnsServer = new TestableDNSServer();
DefaultConfigurationBuilder db = new DefaultConfigurationBuilder();
db.load(new ByteArrayInputStream(DNS_SERVER_CONFIG));
dnsServer.configure(db);
dnsServer.init();
defaultCache = Lookup.getDefaultCache(DClass.IN);
defaultResolver = Lookup.getDefaultResolver();
defaultSearchPaths = Lookup.getDefaultSearchPath();
Lookup.setDefaultCache(null, DClass.IN);
Lookup.setDefaultResolver(null);
Lookup.setDefaultSearchPath(new Name[]{});
dnsServer.setResolver(null);
mockedCache = mock(Cache.class);
}
代码示例来源:origin: apache/james-project
@Before
public void setUp() throws Exception {
dnsServer = new TestableDNSServer();
DefaultConfigurationBuilder db = new DefaultConfigurationBuilder();
db.load(new ByteArrayInputStream(DNS_SERVER_CONFIG));
dnsServer.configure(db);
dnsServer.init();
defaultCache = Lookup.getDefaultCache(DClass.IN);
defaultResolver = Lookup.getDefaultResolver();
defaultSearchPaths = Lookup.getDefaultSearchPath();
Lookup.setDefaultCache(null, DClass.IN);
Lookup.setDefaultResolver(null);
Lookup.setDefaultSearchPath(new Name[]{});
dnsServer.setResolver(null);
mockedCache = mock(Cache.class);
}
内容来源于网络,如有侵权,请联系作者删除!