List of usage examples for org.apache.commons.httpclient.util URIUtil encodeWithinPath
public static String encodeWithinPath(String unescaped) throws URIException
From source file:org.alfresco.dataprep.UserService.java
private String encodeUserName(String userName) { try {/*w ww . j a v a2 s . c om*/ return URIUtil.encodeWithinPath(userName); } catch (URIException e) { throw new RuntimeException("Failed to encode user " + userName); } }