com.indexdata.torus2.util
Class URIHelper

java.lang.Object
  extended by com.indexdata.torus2.util.URIHelper

public class URIHelper
extends Object

Author:
jakub

Constructor Summary
URIHelper()
           
 
Method Summary
static String encode(String uriComponent)
          This method encodes URI components according to RFC-3986 rather than the "application/x-www-form-urlencoded" MIME as URLEncoder does.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIHelper

public URIHelper()
Method Detail

encode

public static String encode(String uriComponent)
                     throws UnsupportedEncodingException
This method encodes URI components according to RFC-3986 rather than the "application/x-www-form-urlencoded" MIME as URLEncoder does. The rules are almost the same, but spaces are encoded into %20 rather than +.

Parameters:
uriComponent -
Returns:
encoded URI component
Throws:
UnsupportedEncodingException


Copyright © 2008-2013 Index Data. All Rights Reserved.