org.gcube.opensearch.opensearchlibrary.utils
Class URLEncoder

java.lang.Object
  extended by org.gcube.opensearch.opensearchlibrary.utils.URLEncoder

public class URLEncoder
extends Object

A URL encoder utility that is used to URL-encode strings only if they are not already URL-encoded

Author:
gerasimos.farantatos

Method Summary
static String UrlEncode(String value, String encoding)
          URL-encodes a String only if it is not found already URL-encoded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

UrlEncode

public static String UrlEncode(String value,
                               String encoding)
                        throws UnsupportedEncodingException
URL-encodes a String only if it is not found already URL-encoded

Parameters:
value - The String to be URL-encoded
encoding - The encoding to be used
Returns:
The URL-encoded string
Throws:
UnsupportedEncodingException - If the encoding given is not supported


Copyright © 2013. All Rights Reserved.