Package org.glassfish.grizzly.http.util
Class UDecoder
- java.lang.Object
-
- org.glassfish.grizzly.http.util.UDecoder
-
public final class UDecoder extends java.lang.ObjectAll 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 Modifier and Type Field Description static booleanALLOW_ENCODED_SLASH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringconvert(java.lang.String str)static java.lang.Stringconvert(java.lang.String str, boolean query)voidconvert(ByteChunk mb)URLDecode, will modify the source.voidconvert(ByteChunk mb, boolean query)URLDecode theByteChunkstatic voidconvert(ByteChunk mb, boolean query, boolean allowEncodedSlash)URLDecode theByteChunkvoidconvert(CharChunk mb)In-buffer processing - the buffer will be modified Includes converting '+' to ' '.static voidconvert(CharChunk mb, boolean query)In-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 sourcebooleanisAllowEncodedSlash()voidsetAllowEncodedSlash(boolean allowEncodedSlash)Override the default value
-
-
-
Method Detail
-
convert
public void convert(ByteChunk mb) throws java.io.IOException
URLDecode, will modify the source. Includes converting '+' to ' '.- Throws:
java.io.IOException
-
convert
public void convert(ByteChunk mb, boolean query) throws java.io.IOException
URLDecode theByteChunk- Throws:
java.io.IOException
-
convert
public static void convert(ByteChunk mb, boolean query, boolean allowEncodedSlash) throws java.io.IOException
URLDecode theByteChunk- Throws:
java.io.IOException
-
convert
public void convert(CharChunk mb) throws java.io.IOException
In-buffer processing - the buffer will be modified Includes converting '+' to ' '.- Throws:
java.io.IOException
-
convert
public static void convert(CharChunk mb, boolean query) throws java.io.IOException
In-buffer processing - the buffer will be modified- Throws:
java.io.IOException
-
convert
public void convert(MessageBytes mb) throws java.io.IOException
URLDecode, will modify the source Includes converting '+' to ' '.- Throws:
java.io.IOException
-
convert
public void convert(MessageBytes mb, boolean query) throws java.io.IOException
URLDecode, will modify the source- Throws:
java.io.IOException
-
convert
public static void convert(MessageBytes mb, boolean query, boolean allowEncodingSlash) throws java.io.IOException
URLDecode, will modify the source- Throws:
java.io.IOException
-
convert
public static java.lang.String convert(java.lang.String str)
-
convert
public static java.lang.String convert(java.lang.String str, boolean query)
-
isAllowEncodedSlash
public boolean isAllowEncodedSlash()
-
setAllowEncodedSlash
public void setAllowEncodedSlash(boolean allowEncodedSlash)
Override the default value- Parameters:
allowEncodedSlash-
-
-