List of usage examples for org.apache.commons.httpclient URI allowed_within_query
BitSet allowed_within_query
To view the source code for org.apache.commons.httpclient URI allowed_within_query.
Click Source Link
From source file:be.jcdo.mp3searchengines.tools.URIUtils.java
/** * Escape and encode a string regarded as within the query component of an * URI with a given charset./*from w ww. j a va 2 s .c o m*/ * When a query comprise the name and value pairs, it is used in order * to encode each name and value string. The reserved special characters * within a query component are being included in encoding the query. * * @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 encodeWithinQuery(String unescaped, String charset) throws URIException { return encode(unescaped, URI.allowed_within_query, charset); }