本文整理了Java中org.apache.commons.httpclient.URI.parseAuthority()
方法的一些代码示例,展示了URI.parseAuthority()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URI.parseAuthority()
方法的具体详情如下:
包路径:org.apache.commons.httpclient.URI
类名称:URI
方法名:parseAuthority
[英]Parse the authority component.
[中]解析authority组件。
代码示例来源:origin: commons-httpclient/commons-httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* Note that there is no setAuthority method by the escape encoding reason.
*
* @param escapedAuthority the escaped authority string
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
*/
public void setEscapedAuthority(String escapedAuthority)
throws URIException {
parseAuthority(escapedAuthority, true);
setURI();
}
代码示例来源:origin: commons-httpclient/commons-httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* <p><blockquote><pre>
* authority = server | reg_name
* </pre></blockquote><p>
*
* @param escapedAuthority the raw escaped authority
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
* @throws NullPointerException null authority
*/
public void setRawAuthority(char[] escapedAuthority)
throws URIException, NullPointerException {
parseAuthority(new String(escapedAuthority), true);
setURI();
}
代码示例来源:origin: commons-httpclient/commons-httpclient
: tmp.length();
parseAuthority(tmp.substring(at + 2, next), escaped);
from = at = next;
代码示例来源:origin: iipc/webarchive-commons
/**
* Coalesce the _host and _authority fields where
* possible.
*
* In the web crawl/http domain, most URIs have an
* identical _host and _authority. (There is no port
* or user info.) However, the superclass always
* creates two separate char[] instances.
*
* Notably, the lengths of these char[] fields are
* equal if and only if their values are identical.
* This method makes use of this fact to reduce the
* two instances to one where possible, slimming
* instances.
*
* @see org.apache.commons.httpclient.URI#parseAuthority(java.lang.String, boolean)
*/
protected void parseAuthority(String original, boolean escaped)
throws URIException {
super.parseAuthority(original, escaped);
if (_host != null && _authority != null
&& _host.length == _authority.length) {
_host = _authority;
}
}
代码示例来源:origin: org.netpreserve.commons/webarchive-commons
/**
* Coalesce the _host and _authority fields where
* possible.
*
* In the web crawl/http domain, most URIs have an
* identical _host and _authority. (There is no port
* or user info.) However, the superclass always
* creates two separate char[] instances.
*
* Notably, the lengths of these char[] fields are
* equal if and only if their values are identical.
* This method makes use of this fact to reduce the
* two instances to one where possible, slimming
* instances.
*
* @see org.apache.commons.httpclient.URI#parseAuthority(java.lang.String, boolean)
*/
protected void parseAuthority(String original, boolean escaped)
throws URIException {
super.parseAuthority(original, escaped);
if (_host != null && _authority != null
&& _host.length == _authority.length) {
_host = _authority;
}
}
代码示例来源:origin: org.netpreserve.commons/commons-web
/**
* Coalesce the _host and _authority fields where
* possible.
*
* In the web crawl/http domain, most URIs have an
* identical _host and _authority. (There is no port
* or user info.) However, the superclass always
* creates two separate char[] instances.
*
* Notably, the lengths of these char[] fields are
* equal if and only if their values are identical.
* This method makes use of this fact to reduce the
* two instances to one where possible, slimming
* instances.
*
* @see org.apache.commons.httpclient.URI#parseAuthority(java.lang.String, boolean)
*/
protected void parseAuthority(String original, boolean escaped)
throws URIException {
super.parseAuthority(original, escaped);
if (_host != null && _authority != null
&& _host.length == _authority.length) {
_host = _authority;
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* Note that there is no setAuthority method by the escape encoding reason.
*
* @param escapedAuthority the escaped authority string
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
*/
public void setEscapedAuthority(String escapedAuthority)
throws URIException {
parseAuthority(escapedAuthority, true);
setURI();
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* Note that there is no setAuthority method by the escape encoding reason.
*
* @param escapedAuthority the escaped authority string
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
*/
public void setEscapedAuthority(String escapedAuthority)
throws URIException {
parseAuthority(escapedAuthority, true);
setURI();
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* Note that there is no setAuthority method by the escape encoding reason.
*
* @param escapedAuthority the escaped authority string
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
*/
public void setEscapedAuthority(String escapedAuthority)
throws URIException {
parseAuthority(escapedAuthority, true);
setURI();
}
代码示例来源:origin: org.apache.commons/httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* Note that there is no setAuthority method by the escape encoding reason.
*
* @param escapedAuthority the escaped authority string
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
*/
public void setEscapedAuthority(String escapedAuthority)
throws URIException {
parseAuthority(escapedAuthority, true);
setURI();
}
代码示例来源:origin: org.zaproxy/zap
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* Note that there is no setAuthority method by the escape encoding reason.
*
* @param escapedAuthority the escaped authority string
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
*/
public void setEscapedAuthority(String escapedAuthority)
throws URIException {
parseAuthority(escapedAuthority, true);
setURI();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* <p><blockquote><pre>
* authority = server | reg_name
* </pre></blockquote><p>
*
* @param escapedAuthority the raw escaped authority
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
* @throws NullPointerException null authority
*/
public void setRawAuthority(char[] escapedAuthority)
throws URIException, NullPointerException {
parseAuthority(new String(escapedAuthority), true);
setURI();
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* <p><blockquote><pre>
* authority = server | reg_name
* </pre></blockquote><p>
*
* @param escapedAuthority the raw escaped authority
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
* @throws NullPointerException null authority
*/
public void setRawAuthority(char[] escapedAuthority)
throws URIException, NullPointerException {
parseAuthority(new String(escapedAuthority), true);
setURI();
}
代码示例来源:origin: org.zaproxy/zap
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* <p><blockquote><pre>
* authority = server | reg_name
* </pre></blockquote><p>
*
* @param escapedAuthority the raw escaped authority
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
* @throws NullPointerException null authority
*/
public void setRawAuthority(char[] escapedAuthority)
throws URIException, NullPointerException {
parseAuthority(new String(escapedAuthority), true);
setURI();
}
代码示例来源:origin: org.apache.commons/httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* <p><blockquote><pre>
* authority = server | reg_name
* </pre></blockquote><p>
*
* @param escapedAuthority the raw escaped authority
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
* @throws NullPointerException null authority
*/
public void setRawAuthority(char[] escapedAuthority)
throws URIException, NullPointerException {
parseAuthority(new String(escapedAuthority), true);
setURI();
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
/**
* Set the authority. It can be one type of server, hostport, hostname,
* IPv4address, IPv6reference and reg_name.
* <p><blockquote><pre>
* authority = server | reg_name
* </pre></blockquote><p>
*
* @param escapedAuthority the raw escaped authority
* @throws URIException If {@link
* #parseAuthority(java.lang.String,boolean)} fails
* @throws NullPointerException null authority
*/
public void setRawAuthority(char[] escapedAuthority)
throws URIException, NullPointerException {
parseAuthority(new String(escapedAuthority), true);
setURI();
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
: tmp.length();
parseAuthority(tmp.substring(at + 2, next), escaped);
from = at = next;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
: tmp.length();
parseAuthority(tmp.substring(at + 2, next), escaped);
from = at = next;
代码示例来源:origin: org.zaproxy/zap
: tmp.length();
parseAuthority(tmp.substring(at + 2, next), escaped);
from = at = next;
代码示例来源:origin: org.apache.commons/httpclient
: tmp.length();
parseAuthority(tmp.substring(at + 2, next), escaped);
from = at = next;
内容来源于网络,如有侵权,请联系作者删除!