org.apache.struts2.util
Class URLDecoderUtil
java.lang.Object
org.apache.struts2.util.URLDecoderUtil
public class URLDecoderUtil
- extends Object
URLDecoderUtil serves as a facade for a correct URL decoding implementation.
As of Struts 2.3.25 it uses Tomcat URLDecoder functionality rather than the one found in java.io.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLDecoderUtil
public URLDecoderUtil()
decode
public static String decode(String sequence,
String charset)
- Decodes a
x-www-form-urlencoded
string.
- Parameters:
sequence
- the String to decodecharset
- The name of a supported character encoding.
- Returns:
- the newly decoded
String
- Throws:
IllegalArgumentException
- If the encoding is not valid
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.