public final class UDecoder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ALLOW_ENCODED_SLASH |
| 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(CharChunk mb)
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
void |
convert(CharChunk mb,
boolean query)
In-buffer processing - the buffer will be modified.
|
void |
convert(MessageBytes mb)
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
void |
convert(MessageBytes mb,
boolean query)
URLDecode, will modify the source
|
java.lang.String |
convert(java.lang.String str)
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
java.lang.String |
convert(java.lang.String str,
boolean query)
%xx decoding of a string.
|
static java.lang.String |
URLDecode(java.lang.String str)
Decode and return the specified URL-encoded String.
|
static java.lang.String |
URLDecode(java.lang.String str,
java.nio.charset.Charset charset)
Decode and return the specified URL-encoded String.
|
@Deprecated public void convert(ByteChunk mb) throws java.io.IOException
java.io.IOExceptionpublic void convert(ByteChunk mb, boolean query) throws java.io.IOException
mb - The URL encoded bytesquery - true if this is a query stringjava.io.IOException - Invalid %xx URL encoding@Deprecated public void convert(CharChunk mb) throws java.io.IOException
java.io.IOExceptionpublic void convert(CharChunk mb, boolean query) throws java.io.IOException
mb - The URL encoded charsquery - true if this is a query stringjava.io.IOException - Invalid %xx URL encoding@Deprecated public void convert(MessageBytes mb) throws java.io.IOException
java.io.IOExceptionpublic void convert(MessageBytes mb, boolean query) throws java.io.IOException
mb - The URL encoded String, bytes or charsquery - true if this is a query stringjava.io.IOException - Invalid %xx URL encoding@Deprecated public final java.lang.String convert(java.lang.String str)
public final java.lang.String convert(java.lang.String str,
boolean query)
str - The URL encoded stringquery - true if this is a query stringpublic static java.lang.String URLDecode(java.lang.String str)
str - The url-encoded stringjava.lang.IllegalArgumentException - if a '%' character is not followed
by a valid 2-digit hexadecimal numberpublic static java.lang.String URLDecode(java.lang.String str,
java.nio.charset.Charset charset)
str - The url-encoded stringcharset - The character encoding to use; if null, UTF-8 is used.java.lang.IllegalArgumentException - if a '%' character is not followed
by a valid 2-digit hexadecimal numberCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.