Merge branch 'master' into ubilabs--tracking_app--develop

This commit is contained in:
Axel Uhl committed 2015-03-04 16:46:28 +01:00
commit 330a889dd4
558 files changed
+21437 -4353

No files matched your search

@@ -0,0 +1,23 @@
package com.sap.sse.util.impl;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import com.sap.sse.common.util.UrlHelper;
public enum NonGwtUrlHelper implements UrlHelper {
INSTANCE;
public String encodeUrl(String decodedUrlString) {
try {
URL url = new URL(decodedUrlString);
URI uri = new URI(url.getProtocol(), url.getUserInfo(), url.getHost(), url.getPort(), url.getPath(),
url.getQuery(), url.getRef());
return uri.toString();
} catch (MalformedURLException | URISyntaxException f) {
return null;
}
}
}