java.lang.Object
org.glassfish.grizzly.http.util.UDecoder
All URL decoding happens here. This way we can reuse, review, optimize without adding complexity to the buffers.
The conversion will modify the original buffer.
- Author:
- Costin Manolache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringvoidURLDecode, will modify the source.voidURLDecode theByteChunkstatic voidURLDecode theByteChunkvoidIn-buffer processing - the buffer will be modified Includes converting '+' to ' '.static voidIn-buffer processing - the buffer will be modifiedvoidconvert(MessageBytes mb) URLDecode, will modify the source Includes converting '+' to ' '.voidconvert(MessageBytes mb, boolean query) URLDecode, will modify the sourcestatic voidconvert(MessageBytes mb, boolean query, boolean allowEncodingSlash) URLDecode, will modify the sourcebooleanvoidsetAllowEncodedSlash(boolean allowEncodedSlash) Override the default value
-
Field Details
-
ALLOW_ENCODED_SLASH
public static final boolean ALLOW_ENCODED_SLASH
-
-
Constructor Details
-
UDecoder
public UDecoder() -
UDecoder
public UDecoder(boolean allowEncodedSlash)
-
-
Method Details
-
convert
URLDecode, will modify the source. Includes converting '+' to ' '.- Throws:
IOException
-
convert
URLDecode theByteChunk- Throws:
IOException
-
convert
public static void convert(ByteChunk mb, boolean query, boolean allowEncodedSlash) throws IOException URLDecode theByteChunk- Throws:
IOException
-
convert
In-buffer processing - the buffer will be modified Includes converting '+' to ' '.- Throws:
IOException
-
convert
In-buffer processing - the buffer will be modified- Throws:
IOException
-
convert
URLDecode, will modify the source Includes converting '+' to ' '.- Throws:
IOException
-
convert
URLDecode, will modify the source- Throws:
IOException
-
convert
public static void convert(MessageBytes mb, boolean query, boolean allowEncodingSlash) throws IOException URLDecode, will modify the source- Throws:
IOException
-
convert
-
convert
-
isAllowEncodedSlash
public boolean isAllowEncodedSlash() -
setAllowEncodedSlash
public void setAllowEncodedSlash(boolean allowEncodedSlash) Override the default value- Parameters:
allowEncodedSlash-
-