/** * 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(); }
/** * 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(); }
: tmp.length(); parseAuthority(tmp.substring(at + 2, next), escaped); from = at = next;
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
: tmp.length(); parseAuthority(tmp.substring(at + 2, next), escaped); from = at = next;
: tmp.length(); parseAuthority(tmp.substring(at + 2, next), escaped); from = at = next;
: tmp.length(); parseAuthority(tmp.substring(at + 2, next), escaped); from = at = next;
: tmp.length(); parseAuthority(tmp.substring(at + 2, next), escaped); from = at = next;