gpt4 book ai didi

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

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

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

Zone.oneRRset介绍

暂无

代码示例

代码示例来源: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

RRset ns = oneRRset(types, Type.NS);
  if (ns != null)
    return new SetResponse(SetResponse.DELEGATION,
  rrset = oneRRset(types, type);
  if (rrset != null) {
    sr = new SetResponse(SetResponse.SUCCESSFUL);
    return sr;
  rrset = oneRRset(types, Type.CNAME);
  if (rrset != null)
    return new SetResponse(SetResponse.CNAME,
            rrset);
} else {
  rrset = oneRRset(types, Type.DNAME);
  if (rrset != null)
    return new SetResponse(SetResponse.DNAME,
    continue;
  rrset = oneRRset(types, type);
  if (rrset != null) {
    sr = new SetResponse(SetResponse.SUCCESSFUL);

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

RRset ns = oneRRset(types, Type.NS);
  if (ns != null)
    return new SetResponse(SetResponse.DELEGATION,
  rrset = oneRRset(types, type);
  if (rrset != null) {
    sr = new SetResponse(SetResponse.SUCCESSFUL);
    return sr;
  rrset = oneRRset(types, Type.CNAME);
  if (rrset != null)
    return new SetResponse(SetResponse.CNAME,
            rrset);
} else {
  rrset = oneRRset(types, Type.DNAME);
  if (rrset != null)
    return new SetResponse(SetResponse.DNAME,
    continue;
  rrset = oneRRset(types, type);
  if (rrset != null) {
    sr = new SetResponse(SetResponse.SUCCESSFUL);

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

RRset ns = oneRRset(types, Type.NS);
  if (ns != null)
    return new SetResponse(SetResponse.DELEGATION,
  rrset = oneRRset(types, type);
  if (rrset != null) {
    sr = new SetResponse(SetResponse.SUCCESSFUL);
    return sr;
  rrset = oneRRset(types, Type.CNAME);
  if (rrset != null)
    return new SetResponse(SetResponse.CNAME,
            rrset);
} else {
  rrset = oneRRset(types, Type.DNAME);
  if (rrset != null)
    return new SetResponse(SetResponse.DNAME,
    continue;
  rrset = oneRRset(types, type);
  if (rrset != null) {
    sr = new SetResponse(SetResponse.SUCCESSFUL);

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

RRset ns = oneRRset(types, Type.NS);
  if (ns != null)
    return new SetResponse(SetResponse.DELEGATION,
  rrset = oneRRset(types, type);
  if (rrset != null) {
    sr = new SetResponse(SetResponse.SUCCESSFUL);
    return sr;
  rrset = oneRRset(types, Type.CNAME);
  if (rrset != null)
    return new SetResponse(SetResponse.CNAME,
            rrset);
} else {
  rrset = oneRRset(types, Type.DNAME);
  if (rrset != null)
    return new SetResponse(SetResponse.DNAME,
    continue;
  rrset = oneRRset(types, type);
  if (rrset != null) {
    sr = new SetResponse(SetResponse.SUCCESSFUL);

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