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

x33g5p2x  于2022-01-29 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(65)

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

Record.getRRsetType介绍

暂无

代码示例

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

/**
 * Determines if two Records could be part of the same RRset.
 * This compares the name, type, and class of the Records; the ttl and
 * rdata are not compared.
 */
public boolean
sameRRset(Record rec) {
  return (getRRsetType() == rec.getRRsetType() &&
    dclass == rec.dclass &&
    name.equals(rec.name));
}

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

/**
 * Determines if two Records could be part of the same RRset.
 * This compares the name, type, and class of the Records; the ttl and
 * rdata are not compared.
 */
public boolean
sameRRset(Record rec) {
  return (getRRsetType() == rec.getRRsetType() &&
    dclass == rec.dclass &&
    name.equals(rec.name));
}

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

/**
 * Determines if two Records could be part of the same RRset.
 * This compares the name, type, and class of the Records; the ttl and
 * rdata are not compared.
 */
public boolean
sameRRset(Record rec) {
  return (getRRsetType() == rec.getRRsetType() &&
    dclass == rec.dclass &&
    name.equals(rec.name));
}

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

/**
 * Determines if two Records could be part of the same RRset.
 * This compares the name, type, and class of the Records; the ttl and
 * rdata are not compared.
 */
public boolean
sameRRset(Record rec) {
  return (getRRsetType() == rec.getRRsetType() &&
    dclass == rec.dclass &&
    name.equals(rec.name));
}

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

/**
 * Returns the type of the records
 * @see Type
 */
public int
getType() {
  return first().getRRsetType();
}

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

/**
 * Returns the type of the records
 * @see Type
 */
public int
getType() {
  return first().getRRsetType();
}

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

/**
 * Returns the type of the records
 * @see Type
 */
public int
getType() {
  return first().getRRsetType();
}

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

/**
 * Returns the type of the records
 * @see Type
 */
public int
getType() {
  return first().getRRsetType();
}

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

private static boolean
sameSet(Record r1, Record r2) {
  return (r1.getRRsetType() == r2.getRRsetType() &&
    r1.getDClass() == r2.getDClass() &&
    r1.getName().equals(r2.getName()));
}

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

private static boolean
sameSet(Record r1, Record r2) {
  return (r1.getRRsetType() == r2.getRRsetType() &&
    r1.getDClass() == r2.getDClass() &&
    r1.getName().equals(r2.getName()));
}

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

private static boolean
sameSet(Record r1, Record r2) {
  return (r1.getRRsetType() == r2.getRRsetType() &&
    r1.getDClass() == r2.getDClass() &&
    r1.getName().equals(r2.getName()));
}

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

private static boolean
sameSet(Record r1, Record r2) {
  return (r1.getRRsetType() == r2.getRRsetType() &&
    r1.getDClass() == r2.getDClass() &&
    r1.getName().equals(r2.getName()));
}

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

/**
 * Adds a Record to the Zone
 * @param r The record to be added
 * @see Record
 */
public void
addRecord(Record r) {
  Name name = r.getName();
  int rtype = r.getRRsetType();
  synchronized (this) {
    RRset rrset = findRRset(name, rtype);
    if (rrset == null) {
      rrset = new RRset(r);
      addRRset(name, rrset);
    } else {
      rrset.addRR(r);
    }
  }
}

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

/**
 * Adds a Record to the Zone
 * @param r The record to be added
 * @see Record
 */
public void
addRecord(Record r) {
  Name name = r.getName();
  int rtype = r.getRRsetType();
  synchronized (this) {
    RRset rrset = findRRset(name, rtype);
    if (rrset == null) {
      rrset = new RRset(r);
      addRRset(name, rrset);
    } else {
      rrset.addRR(r);
    }
  }
}

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

/**
 * Removes a record from the Zone
 * @param r The record to be removed
 * @see Record
 */
public void
removeRecord(Record r) {
  Name name = r.getName();
  int rtype = r.getRRsetType();
  synchronized (this) {
    RRset rrset = findRRset(name, rtype);
    if (rrset == null)
      return;
    rrset.deleteRR(r);
    if (rrset.size() == 0)
      removeRRset(name, rtype);
  }
}

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

/**
 * Adds a Record to the Zone
 * @param r The record to be added
 * @see Record
 */
public void
addRecord(Record r) {
  Name name = r.getName();
  int rtype = r.getRRsetType();
  synchronized (this) {
    RRset rrset = findRRset(name, rtype);
    if (rrset == null) {
      rrset = new RRset(r);
      addRRset(name, rrset);
    } else {
      rrset.addRR(r);
    }
  }
}

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

/**
 * Adds a Record to the Zone
 * @param r The record to be added
 * @see Record
 */
public void
addRecord(Record r) {
  Name name = r.getName();
  int rtype = r.getRRsetType();
  synchronized (this) {
    RRset rrset = findRRset(name, rtype);
    if (rrset == null) {
      rrset = new RRset(r);
      addRRset(name, rrset);
    } else {
      rrset.addRR(r);
    }
  }
}

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

/**
 * Removes a record from the Zone
 * @param r The record to be removed
 * @see Record
 */
public void
removeRecord(Record r) {
  Name name = r.getName();
  int rtype = r.getRRsetType();
  synchronized (this) {
    RRset rrset = findRRset(name, rtype);
    if (rrset == null)
      return;
    if (rrset.size() == 1 && rrset.first().equals(r))
      removeRRset(name, rtype);
    else
      rrset.deleteRR(r);
  }
}

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

/**
 * Removes a record from the Zone
 * @param r The record to be removed
 * @see Record
 */
public void
removeRecord(Record r) {
  Name name = r.getName();
  int rtype = r.getRRsetType();
  synchronized (this) {
    RRset rrset = findRRset(name, rtype);
    if (rrset == null)
      return;
    if (rrset.size() == 1 && rrset.first().equals(r))
      removeRRset(name, rtype);
    else
      rrset.deleteRR(r);
  }
}

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

/**
 * Removes a record from the Zone
 * @param r The record to be removed
 * @see Record
 */
public void
removeRecord(Record r) {
  Name name = r.getName();
  int rtype = r.getRRsetType();
  synchronized (this) {
    RRset rrset = findRRset(name, rtype);
    if (rrset == null)
      return;
    if (rrset.size() == 1 && rrset.first().equals(r))
      removeRRset(name, rtype);
    else
      rrset.deleteRR(r);
  }
}

相关文章