org.apache.commons.httpclient.URI.getRawAuthority()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(87)

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

URI.getRawAuthority介绍

[英]Get the raw-escaped authority.
[中]获得原始的权威。

代码示例

代码示例来源:origin: commons-httpclient/commons-httpclient

/**
 * Compare this URI to another object. 
 *
 * @param obj the object to be compared.
 * @return 0, if it's same,
 * -1, if failed, first being compared with in the authority component
 * @throws ClassCastException not URI argument
 */
public int compareTo(Object obj) throws ClassCastException {
  URI another = (URI) obj;
  if (!equals(_authority, another.getRawAuthority())) { 
    return -1;
  }
  return toString().compareTo(another.toString());
}

代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Compare this URI to another object. 
 *
 * @param obj the object to be compared.
 * @return 0, if it's same,
 * -1, if failed, first being compared with in the authority component
 * @throws ClassCastException not URI argument
 */
public int compareTo(Object obj) throws ClassCastException {
  URI another = (URI) obj;
  if (!equals(_authority, another.getRawAuthority())) { 
    return -1;
  }
  return toString().compareTo(another.toString());
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Compare this URI to another object. 
 *
 * @param obj the object to be compared.
 * @return 0, if it's same,
 * -1, if failed, first being compared with in the authority component
 * @throws ClassCastException not URI argument
 */
public int compareTo(Object obj) throws ClassCastException {
  URI another = (URI) obj;
  if (!equals(_authority, another.getRawAuthority())) { 
    return -1;
  }
  return toString().compareTo(another.toString());
}

代码示例来源:origin: org.apache.commons/httpclient

/**
 * Compare this URI to another object. 
 *
 * @param obj the object to be compared.
 * @return 0, if it's same,
 * -1, if failed, first being compared with in the authority component
 * @throws ClassCastException not URI argument
 */
public int compareTo(Object obj) throws ClassCastException {
  URI another = (URI) obj;
  if (!equals(_authority, another.getRawAuthority())) { 
    return -1;
  }
  return toString().compareTo(another.toString());
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Compare this URI to another object. 
 *
 * @param obj the object to be compared.
 * @return 0, if it's same,
 * -1, if failed, first being compared with in the authority component
 * @throws ClassCastException not URI argument
 */
public int compareTo(Object obj) throws ClassCastException {
  URI another = (URI) obj;
  if (!equals(_authority, another.getRawAuthority())) { 
    return -1;
  }
  return toString().compareTo(another.toString());
}

代码示例来源:origin: org.zaproxy/zap

/**
 * Compare this URI to another object. 
 *
 * @param obj the object to be compared.
 * @return 0, if it's same,
 * -1, if failed, first being compared with in the authority component
 * @throws ClassCastException not URI argument
 */
@Override
public int compareTo(Object obj) throws ClassCastException {
  URI another = (URI) obj;
  if (!equals(_authority, another.getRawAuthority())) { 
    return -1;
  }
  return toString().compareTo(another.toString());
}

相关文章