gpt4 book ai didi

org.xbill.DNS.Zone.exactName()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 07:20:49 31 4
gpt4 key购买 nike

本文整理了Java中org.xbill.DNS.Zone.exactName()方法的一些代码示例,展示了Zone.exactName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zone.exactName()方法的具体详情如下:
包路径:org.xbill.DNS.Zone
类名称:Zone
方法名:exactName

Zone.exactName介绍

暂无

代码示例

代码示例来源:origin: dnsjava/dnsjava

private synchronized RRset
findRRset(Name name, int type) {
  Object types = exactName(name);
  if (types == null)
    return null;
  return oneRRset(types, type);
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

private synchronized RRset
findRRset(Name name, int type) {
  Object types = exactName(name);
  if (types == null)
    return null;
  return oneRRset(types, type);
}

代码示例来源:origin: org.littleshoot/dnsjava

private synchronized RRset
findRRset(Name name, int type) {
  Object types = exactName(name);
  if (types == null)
    return null;
  return oneRRset(types, type);
}

代码示例来源:origin: tiandawu/IotXmpp

private synchronized RRset
findRRset(Name name, int type) {
  Object types = exactName(name);
  if (types == null)
    return null;
  return oneRRset(types, type);
}

代码示例来源:origin: tiandawu/IotXmpp

/**
 * Looks up Records in the zone, finding exact matches only.
 * @param name The name to look up
 * @param type The type to look up
 * @return The matching RRset
 * @see RRset
 */ 
public RRset
findExactMatch(Name name, int type) {
  Object types = exactName(name);
  if (types == null)
    return null;
  return oneRRset(types, type);
}

代码示例来源:origin: dnsjava/dnsjava

/**
 * Looks up Records in the zone, finding exact matches only.
 * @param name The name to look up
 * @param type The type to look up
 * @return The matching RRset
 * @see RRset
 */ 
public RRset
findExactMatch(Name name, int type) {
  Object types = exactName(name);
  if (types == null)
    return null;
  return oneRRset(types, type);
}

代码示例来源:origin: org.littleshoot/dnsjava

/**
 * Looks up Records in the zone, finding exact matches only.
 * @param name The name to look up
 * @param type The type to look up
 * @return The matching RRset
 * @see RRset
 */ 
public RRset
findExactMatch(Name name, int type) {
  Object types = exactName(name);
  if (types == null)
    return null;
  return oneRRset(types, type);
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

/**
 * Looks up Records in the zone, finding exact matches only.
 * @param name The name to look up
 * @param type The type to look up
 * @return The matching RRset
 * @see RRset
 */ 
public RRset
findExactMatch(Name name, int type) {
  Object types = exactName(name);
  if (types == null)
    return null;
  return oneRRset(types, type);
}

代码示例来源:origin: org.littleshoot/dnsjava

private void
validate() throws IOException {
  originNode = exactName(origin);
  if (originNode == null)
    throw new IOException(origin + ": no data specified");

  RRset rrset = oneRRset(originNode, Type.SOA);
  if (rrset == null || rrset.size() != 1)
    throw new IOException(origin +
           ": exactly 1 SOA must be specified");
  Iterator it = rrset.rrs();
  SOA = (SOARecord) it.next();

  NS = oneRRset(originNode, Type.NS);
  if (NS == null)
    throw new IOException(origin + ": no NS set specified");
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

private void
validate() throws IOException {
  originNode = exactName(origin);
  if (originNode == null)
    throw new IOException(origin + ": no data specified");

  RRset rrset = oneRRset(originNode, Type.SOA);
  if (rrset == null || rrset.size() != 1)
    throw new IOException(origin +
           ": exactly 1 SOA must be specified");
  Iterator it = rrset.rrs();
  SOA = (SOARecord) it.next();

  NS = oneRRset(originNode, Type.NS);
  if (NS == null)
    throw new IOException(origin + ": no NS set specified");
}

代码示例来源:origin: dnsjava/dnsjava

private void
validate() throws IOException {
  originNode = exactName(origin);
  if (originNode == null)
    throw new IOException(origin + ": no data specified");

  RRset rrset = oneRRset(originNode, Type.SOA);
  if (rrset == null || rrset.size() != 1)
    throw new IOException(origin +
           ": exactly 1 SOA must be specified");
  Iterator it = rrset.rrs();
  SOA = (SOARecord) it.next();

  NS = oneRRset(originNode, Type.NS);
  if (NS == null)
    throw new IOException(origin + ": no NS set specified");
}

代码示例来源:origin: tiandawu/IotXmpp

private void
validate() throws IOException {
  originNode = exactName(origin);
  if (originNode == null)
    throw new IOException(origin + ": no data specified");

  RRset rrset = oneRRset(originNode, Type.SOA);
  if (rrset == null || rrset.size() != 1)
    throw new IOException(origin +
           ": exactly 1 SOA must be specified");
  Iterator it = rrset.rrs();
  SOA = (SOARecord) it.next();

  NS = oneRRset(originNode, Type.NS);
  if (NS == null)
    throw new IOException(origin + ": no NS set specified");
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

tname = new Name(name, labels - tlabels);
types = exactName(tname);
if (types == null)
  continue;
  tname = name.wild(i + 1);
  types = exactName(tname);
  if (types == null)
    continue;

代码示例来源:origin: dnsjava/dnsjava

tname = new Name(name, labels - tlabels);
types = exactName(tname);
if (types == null)
  continue;
  tname = name.wild(i + 1);
  types = exactName(tname);
  if (types == null)
    continue;

代码示例来源:origin: org.littleshoot/dnsjava

tname = new Name(name, labels - tlabels);
types = exactName(tname);
if (types == null)
  continue;
  tname = name.wild(i + 1);
  types = exactName(tname);
  if (types == null)
    continue;

代码示例来源:origin: tiandawu/IotXmpp

tname = new Name(name, labels - tlabels);
types = exactName(tname);
if (types == null)
  continue;
  tname = name.wild(i + 1);
  types = exactName(tname);
  if (types == null)
    continue;

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com