List of usage examples for org.apache.commons.httpclient URI allowed_fragment
BitSet allowed_fragment
To view the source code for org.apache.commons.httpclient URI allowed_fragment.
Click Source Link
From source file:com.assemblade.client.Views.java
public View getViewByName(String name) throws ClientException { try {//from w w w . j av a2 s. c om return get("/views/name/" + URIUtil.encode(name, URI.allowed_fragment), new TypeReference<View>() { }); } catch (URIException e) { throw new CallFailedException("Failed to encode request path", e); } }
From source file:org.apache.airavata.gfac.bes.utils.URIUtils.java
public static String encodeFragment(String uri) throws URIException { int fragmentStart = uri.indexOf("#"); if (fragmentStart == -1) return uri; String beforeFragment = uri.substring(0, fragmentStart + 1); String fragment = uri.substring(fragmentStart + 1); fragment = URIUtil.encode(fragment, URI.allowed_fragment); return beforeFragment + fragment; }