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

x33g5p2x  于2022-01-23 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(222)

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

Lookup.checkDone介绍

暂无

代码示例

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

/**
 * Returns the result code of the lookup.
 * @return The result code, which can be SUCCESSFUL, UNRECOVERABLE, TRY_AGAIN,
 * HOST_NOT_FOUND, or TYPE_NOT_FOUND.
 * @throws IllegalStateException The lookup has not completed.
 */
public int
getResult() {
  checkDone();
  return result;
}

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

/**
 * Returns the result code of the lookup.
 * @return The result code, which can be SUCCESSFUL, UNRECOVERABLE, TRY_AGAIN,
 * HOST_NOT_FOUND, or TYPE_NOT_FOUND.
 * @throws IllegalStateException The lookup has not completed.
 */
public int
getResult() {
  checkDone();
  return result;
}

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

/**
 * Returns the answers from the lookup.
 * @return The answers, or null if none are found.
 * @throws IllegalStateException The lookup has not completed.
 */
public Record []
getAnswers() {
  checkDone();
  return answers;
}

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

/**
 * Returns the result code of the lookup.
 * @return The result code, which can be SUCCESSFUL, UNRECOVERABLE, TRY_AGAIN,
 * HOST_NOT_FOUND, or TYPE_NOT_FOUND.
 * @throws IllegalStateException The lookup has not completed.
 */
public int
getResult() {
  checkDone();
  return result;
}

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

/**
 * Returns the answers from the lookup.
 * @return The answers, or null if none are found.
 * @throws IllegalStateException The lookup has not completed.
 */
public Record []
getAnswers() {
  checkDone();
  return answers;
}

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

/**
 * Returns the answers from the lookup.
 * @return The answers, or null if none are found.
 * @throws IllegalStateException The lookup has not completed.
 */
public Record []
getAnswers() {
  checkDone();
  return answers;
}

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

/**
 * Returns the result code of the lookup.
 * @return The result code, which can be SUCCESSFUL, UNRECOVERABLE, TRY_AGAIN,
 * HOST_NOT_FOUND, or TYPE_NOT_FOUND.
 * @throws IllegalStateException The lookup has not completed.
 */
public int
getResult() {
  checkDone();
  return result;
}

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

/**
 * Returns the answers from the lookup.
 * @return The answers, or null if none are found.
 * @throws IllegalStateException The lookup has not completed.
 */
public Record []
getAnswers() {
  checkDone();
  return answers;
}

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

/**
 * Returns an error string describing the result code of this lookup.
 * @return A string, which may either directly correspond the result code
 * or be more specific.
 * @throws IllegalStateException The lookup has not completed.
 */
public String
getErrorString() {
  checkDone();
  if (error != null)
    return error;
  switch (result) {
    case SUCCESSFUL:	return "successful";
    case UNRECOVERABLE:	return "unrecoverable error";
    case TRY_AGAIN:		return "try again";
    case HOST_NOT_FOUND:	return "host not found";
    case TYPE_NOT_FOUND:	return "type not found";
  }
  throw new IllegalStateException("unknown result");
}

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

/**
 * Returns all known aliases for this name.  Whenever a CNAME/DNAME is
 * followed, an alias is added to this array.  The last element in this
 * array will be the owner name for records in the answer, if there are any.
 * @return The aliases.
 * @throws IllegalStateException The lookup has not completed.
 */
public Name []
getAliases() {
  checkDone();
  if (aliases == null)
    return noAliases;
  return (Name []) aliases.toArray(new Name[aliases.size()]);
}

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

/**
 * Returns an error string describing the result code of this lookup.
 * @return A string, which may either directly correspond the result code
 * or be more specific.
 * @throws IllegalStateException The lookup has not completed.
 */
public String
getErrorString() {
  checkDone();
  if (error != null)
    return error;
  switch (result) {
    case SUCCESSFUL:	return "successful";
    case UNRECOVERABLE:	return "unrecoverable error";
    case TRY_AGAIN:		return "try again";
    case HOST_NOT_FOUND:	return "host not found";
    case TYPE_NOT_FOUND:	return "type not found";
  }
  throw new IllegalStateException("unknown result");
}

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

/**
 * Returns all known aliases for this name.  Whenever a CNAME/DNAME is
 * followed, an alias is added to this array.  The last element in this
 * array will be the owner name for records in the answer, if there are any.
 * @return The aliases.
 * @throws IllegalStateException The lookup has not completed.
 */
public Name []
getAliases() {
  checkDone();
  if (aliases == null)
    return noAliases;
  return (Name []) aliases.toArray(new Name[aliases.size()]);
}

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

/**
 * Returns all known aliases for this name.  Whenever a CNAME/DNAME is
 * followed, an alias is added to this array.  The last element in this
 * array will be the owner name for records in the answer, if there are any.
 * @return The aliases.
 * @throws IllegalStateException The lookup has not completed.
 */
public Name []
getAliases() {
  checkDone();
  if (aliases == null)
    return noAliases;
  return (Name []) aliases.toArray(new Name[aliases.size()]);
}

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

/**
 * Returns an error string describing the result code of this lookup.
 * @return A string, which may either directly correspond the result code
 * or be more specific.
 * @throws IllegalStateException The lookup has not completed.
 */
public String
getErrorString() {
  checkDone();
  if (error != null)
    return error;
  switch (result) {
    case SUCCESSFUL:	return "successful";
    case UNRECOVERABLE:	return "unrecoverable error";
    case TRY_AGAIN:		return "try again";
    case HOST_NOT_FOUND:	return "host not found";
    case TYPE_NOT_FOUND:	return "type not found";
  }
  throw new IllegalStateException("unknown result");
}

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

/**
 * Returns all known aliases for this name.  Whenever a CNAME/DNAME is
 * followed, an alias is added to this array.  The last element in this
 * array will be the owner name for records in the answer, if there are any.
 * @return The aliases.
 * @throws IllegalStateException The lookup has not completed.
 */
public Name []
getAliases() {
  checkDone();
  if (aliases == null)
    return noAliases;
  return (Name []) aliases.toArray(new Name[aliases.size()]);
}

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

/**
 * Returns an error string describing the result code of this lookup.
 * @return A string, which may either directly correspond the result code
 * or be more specific.
 * @throws IllegalStateException The lookup has not completed.
 */
public String
getErrorString() {
  checkDone();
  if (error != null)
    return error;
  switch (result) {
    case SUCCESSFUL:	return "successful";
    case UNRECOVERABLE:	return "unrecoverable error";
    case TRY_AGAIN:		return "try again";
    case HOST_NOT_FOUND:	return "host not found";
    case TYPE_NOT_FOUND:	return "type not found";
  }
  throw new IllegalStateException("unknown result");
}

相关文章