org.primefaces.extensions.util
Class URLEncoderWrapper

java.lang.Object
  extended by org.primefaces.extensions.util.URLEncoderWrapper

public class URLEncoderWrapper
extends java.lang.Object

Wrapper for the URLEncoder which always use UTF-8.

Since:
0.6.2
Version:
$Revision: $
Author:
Thomas Andraschko / last modified by $Author: $

Method Summary
static java.lang.String encode(java.lang.String string)
          Encodes the given string with the URLEncoder.encode(String) and UTF-8.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static java.lang.String encode(java.lang.String string)
                               throws java.io.UnsupportedEncodingException
Encodes the given string with the URLEncoder.encode(String) and UTF-8.

Parameters:
string - The value which should be encoded.
Returns:
The encoded value.
Throws:
java.io.UnsupportedEncodingException - If UTF-8 is not available.


Copyright © 2011-2013. All Rights Reserved.