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

x33g5p2x  于2022-01-20 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(95)

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

Header.toStringWithRcode介绍

暂无

代码示例

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

/** Converts the header into a String */
public String
toString() {
  return toStringWithRcode(getRcode());
}

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

/** Converts the header into a String */
public String
toString() {
  return toStringWithRcode(getRcode());
}

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

/** Converts the header into a String */
public String
toString() {
  return toStringWithRcode(getRcode());
}

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

/** Converts the header into a String */
public String
toString() {
  return toStringWithRcode(getRcode());
}

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

/**
 * Converts the Message to a String.
 */
public String
toString() {
  StringBuffer sb = new StringBuffer();
  OPTRecord opt = getOPT();
  if (opt != null)
    sb.append(header.toStringWithRcode(getRcode()) + "\n");
  else
    sb.append(header + "\n");
  if (isSigned()) {
    sb.append(";; TSIG ");
    if (isVerified())
      sb.append("ok");
    else
      sb.append("invalid");
    sb.append('\n');
  }
  for (int i = 0; i < 4; i++) {
    if (header.getOpcode() != Opcode.UPDATE)
      sb.append(";; " + Section.longString(i) + ":\n");
    else
      sb.append(";; " + Section.updString(i) + ":\n");
    sb.append(sectionToString(i) + "\n");
  }
  sb.append(";; Message size: " + numBytes() + " bytes");
  return sb.toString();
}

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

/**
 * Converts the Message to a String.
 */
public String
toString() {
  StringBuffer sb = new StringBuffer();
  OPTRecord opt = getOPT();
  if (opt != null)
    sb.append(header.toStringWithRcode(getRcode()) + "\n");
  else
    sb.append(header + "\n");
  if (isSigned()) {
    sb.append(";; TSIG ");
    if (isVerified())
      sb.append("ok");
    else
      sb.append("invalid");
    sb.append('\n');
  }
  for (int i = 0; i < 4; i++) {
    if (header.getOpcode() != Opcode.UPDATE)
      sb.append(";; " + Section.longString(i) + ":\n");
    else
      sb.append(";; " + Section.updString(i) + ":\n");
    sb.append(sectionToString(i) + "\n");
  }
  sb.append(";; Message size: " + numBytes() + " bytes");
  return sb.toString();
}

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

/**
 * Converts the Message to a String.
 */
public String
toString() {
  StringBuffer sb = new StringBuffer();
  OPTRecord opt = getOPT();
  if (opt != null)
    sb.append(header.toStringWithRcode(getRcode()) + "\n");
  else
    sb.append(header + "\n");
  if (isSigned()) {
    sb.append(";; TSIG ");
    if (isVerified())
      sb.append("ok");
    else
      sb.append("invalid");
    sb.append('\n');
  }
  for (int i = 0; i < 4; i++) {
    if (header.getOpcode() != Opcode.UPDATE)
      sb.append(";; " + Section.longString(i) + ":\n");
    else
      sb.append(";; " + Section.updString(i) + ":\n");
    sb.append(sectionToString(i) + "\n");
  }
  sb.append(";; Message size: " + numBytes() + " bytes");
  return sb.toString();
}

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

/**
 * Converts the Message to a String.
 */
public String
toString() {
  StringBuffer sb = new StringBuffer();
  OPTRecord opt = getOPT();
  if (opt != null)
    sb.append(header.toStringWithRcode(getRcode()) + "\n");
  else
    sb.append(header + "\n");
  if (isSigned()) {
    sb.append(";; TSIG ");
    if (isVerified())
      sb.append("ok");
    else
      sb.append("invalid");
    sb.append('\n');
  }
  for (int i = 0; i < 4; i++) {
    if (header.getOpcode() != Opcode.UPDATE)
      sb.append(";; " + Section.longString(i) + ":\n");
    else
      sb.append(";; " + Section.updString(i) + ":\n");
    sb.append(sectionToString(i) + "\n");
  }
  sb.append(";; Message size: " + numBytes() + " bytes");
  return sb.toString();
}

相关文章