More files now using correct URLEncoder impl, some code cleanup around usage and imports

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7961 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2008-01-09 15:47:13 +00:00
parent aafc95b78f
commit 11d068198f
2 changed files with 8 additions and 25 deletions

View File

@@ -24,13 +24,11 @@
*/
package org.alfresco.web.ui.repo.component;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.util.URLEncoder;
import org.alfresco.web.ui.common.Utils;
/**
@@ -89,14 +87,7 @@ public class UIAjaxFilePicker extends BaseAjaxItemPicker
String mimetypes = getMimetypes();
if (mimetypes != null)
{
try
{
return "mimetypes=" + URLEncoder.encode(mimetypes, "UTF-8");
}
catch (UnsupportedEncodingException e)
{
throw new AlfrescoRuntimeException("Unsupported encoding.", e);
}
return "mimetypes=" + URLEncoder.encode(mimetypes);
}
else
{