List of usage examples for org.apache.commons.httpclient URI allowed_within_authority
BitSet allowed_within_authority
To view the source code for org.apache.commons.httpclient URI allowed_within_authority.
Click Source Link
From source file:be.jcdo.mp3searchengines.tools.URIUtils.java
/** * Escape and encode a string regarded as within the authority component of * an URI with a given charset.//from w w w. ja v a 2s.co m * Within the authority component, the characters ";", ":", "@", "?", and * "/" are reserved. * * @param unescaped an unescaped string * @param charset the charset * @return the escaped string * * @throws URIException if the charset is not supported * * @see #encode */ public static String encodeWithinAuthority(String unescaped, String charset) throws URIException { return encode(unescaped, URI.allowed_within_authority, charset); }