本文整理了Java中org.xbill.DNS.Message.getOPT()
方法的一些代码示例,展示了Message.getOPT()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getOPT()
方法的具体详情如下:
包路径:org.xbill.DNS.Message
类名称:Message
方法名:getOPT
暂无
代码示例来源:origin: dnsjava/dnsjava
private int
maxUDPSize(Message query) {
OPTRecord opt = query.getOPT();
if (opt == null)
return DEFAULT_UDPSIZE;
else
return opt.getPayloadSize();
}
代码示例来源:origin: dnsjava/dnsjava
private void
applyEDNS(Message query) {
if (queryOPT == null || query.getOPT() != null)
return;
query.addRecord(queryOPT, Section.ADDITIONAL);
}
代码示例来源:origin: tiandawu/IotXmpp
private void
applyEDNS(Message query) {
if (queryOPT == null || query.getOPT() != null)
return;
query.addRecord(queryOPT, Section.ADDITIONAL);
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
private int
maxUDPSize(Message query) {
OPTRecord opt = query.getOPT();
if (opt == null)
return DEFAULT_UDPSIZE;
else
return opt.getPayloadSize();
}
代码示例来源:origin: org.littleshoot/dnsjava
private void
applyEDNS(Message query) {
if (queryOPT == null || query.getOPT() != null)
return;
query.addRecord(queryOPT, Section.ADDITIONAL);
}
代码示例来源:origin: org.littleshoot/dnsjava
private int
maxUDPSize(Message query) {
OPTRecord opt = query.getOPT();
if (opt == null)
return DEFAULT_UDPSIZE;
else
return opt.getPayloadSize();
}
代码示例来源:origin: tiandawu/IotXmpp
private int
maxUDPSize(Message query) {
OPTRecord opt = query.getOPT();
if (opt == null)
return DEFAULT_UDPSIZE;
else
return opt.getPayloadSize();
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
private void
applyEDNS(Message query) {
if (queryOPT == null || query.getOPT() != null)
return;
query.addRecord(queryOPT, Section.ADDITIONAL);
}
代码示例来源:origin: posicks/mdnsjava
protected void applyEDNS(final Message query)
{
if ((queryOPT == null) || (query.getOPT() != null))
{
return;
}
query.addRecord(queryOPT, Section.ADDITIONAL);
}
代码示例来源:origin: dnsjava/dnsjava
/**
* Returns the message's rcode (error code). This incorporates the EDNS
* extended rcode.
*/
public int
getRcode() {
int rcode = header.getRcode();
OPTRecord opt = getOPT();
if (opt != null)
rcode += (opt.getExtendedRcode() << 4);
return rcode;
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
/**
* Returns the message's rcode (error code). This incorporates the EDNS
* extended rcode.
*/
public int
getRcode() {
int rcode = header.getRcode();
OPTRecord opt = getOPT();
if (opt != null)
rcode += (opt.getExtendedRcode() << 4);
return rcode;
}
代码示例来源:origin: tiandawu/IotXmpp
/**
* Returns the message's rcode (error code). This incorporates the EDNS
* extended rcode.
*/
public int
getRcode() {
int rcode = header.getRcode();
OPTRecord opt = getOPT();
if (opt != null)
rcode += (opt.getExtendedRcode() << 4);
return rcode;
}
代码示例来源:origin: org.littleshoot/dnsjava
/**
* Returns the message's rcode (error code). This incorporates the EDNS
* extended rcode.
*/
public int
getRcode() {
int rcode = header.getRcode();
OPTRecord opt = getOPT();
if (opt != null)
rcode += (opt.getExtendedRcode() << 4);
return rcode;
}
代码示例来源: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: 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: 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();
}
代码示例来源:origin: posicks/mdnsjava
OPTRecord opt = message.getOPT();
if (opt != null)
代码示例来源:origin: OpenNMS/opennms
final OPTRecord queryOPT = query.getOPT();
代码示例来源:origin: dnsjava/dnsjava
tempMaxLength -= tsigkey.recordLength();
OPTRecord opt = getOPT();
byte [] optBytes = null;
if (opt != null) {
内容来源于网络,如有侵权,请联系作者删除!