public final class UDecoder extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | ALLOW_ENCODED_SLASHDeprecated.  | 
| Constructor and Description | 
|---|
| UDecoder() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | convert(ByteChunk mb)Deprecated. 
 Unused. Will be removed in Tomcat 8.0.x onwards. | 
| void | convert(ByteChunk mb,
       boolean query)URLDecode, will modify the source. | 
| void | convert(ByteChunk mb,
       EncodedSolidusHandling encodedSolidusHandling) | 
| void | convert(CharChunk mb)Deprecated. 
 Unused. Will be removed in Tomcat 8.0.x onwards. | 
| void | convert(CharChunk mb,
       boolean query)Deprecated. 
 Unused. Will be removed in Tomcat 10 | 
| void | convert(MessageBytes mb)Deprecated. 
 Unused. Will be removed in Tomcat 8.0.x onwards. | 
| void | convert(MessageBytes mb,
       boolean query)Deprecated. 
 Unused. Will be removed in Tomcat 10 | 
| String | convert(String str)Deprecated. 
 Unused. Will be removed in Tomcat 8.0.x onwards. | 
| String | convert(String str,
       boolean query)Deprecated. 
 Will be removed in Tomcat 10 | 
| static String | URLDecode(String str)Deprecated. 
 Unused. This will be removed in Tomcat 10 onwards | 
| static String | URLDecode(String str,
         Charset charset)Decode and return the specified URL-encoded String. | 
@Deprecated public static final boolean ALLOW_ENCODED_SLASH
public void convert(ByteChunk mb, boolean query) throws IOException
mb - The URL encoded bytesquery - true if this is a query string. For a query string
                  '+' will be decoded to ' 'IOException - Invalid %xx URL encoding@Deprecated public void convert(ByteChunk mb) throws IOException
mb - The URL encoded bytesIOException - Invalid %xx URL encodingpublic void convert(ByteChunk mb, EncodedSolidusHandling encodedSolidusHandling) throws IOException
mb - The URL encoded bytesencodedSolidusHandling - How should the %2f sequence handled by
                                      the decoder? For query strings this
                                      parameter will be ignored and the
                                      %2f sequence will be decodedIOException - Invalid %xx URL encoding@Deprecated public void convert(CharChunk mb) throws IOException
WARNING: This method assumes US-ASCII encoding.
mb - The URL encoded charsIOException - Invalid %xx URL encoding@Deprecated public void convert(CharChunk mb, boolean query) throws IOException
mb - The URL encoded charsquery - true if this is a query stringIOException - Invalid %xx URL encoding@Deprecated public void convert(MessageBytes mb) throws IOException
mb - The URL encoded String, bytes or charsIOException - Invalid %xx URL encoding@Deprecated public void convert(MessageBytes mb, boolean query) throws IOException
WARNING: This method assumes US-ASCII encoding.
mb - The URL encoded String, bytes or charsquery - true if this is a query stringIOException - Invalid %xx URL encoding@Deprecated public final String convert(String str)
str - The URL encoded string@Deprecated public final String convert(String str, boolean query)
WARNING: This method assumes US-ASCII encoding.
FIXME: this is inefficient.
str - The URL encoded stringquery - true if this is a query string@Deprecated public static String URLDecode(String str)
str - The url-encoded stringIllegalArgumentException - if a '%' character is not followed
 by a valid 2-digit hexadecimal numberpublic static String URLDecode(String str, Charset charset)
str - The url-encoded stringcharset - The character encoding to use; if null, UTF-8 is used.IllegalArgumentException - if a '%' character is not followed
 by a valid 2-digit hexadecimal numberCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.