org.apache.tomcat.util.buf

Class UDecoder

public final class UDecoder extends Object

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
protected static booleanALLOW_ENCODED_SLASH
Constructor Summary
UDecoder()
Method Summary
voidconvert(ByteChunk mb)
URLDecode, will modify the source.
voidconvert(ByteChunk mb, boolean query)
URLDecode, will modify the source.
voidconvert(CharChunk mb)
In-buffer processing - the buffer will be modified Includes converting '+' to ' '.
voidconvert(CharChunk mb, boolean query)
In-buffer processing - the buffer will be modified
voidconvert(MessageBytes mb)
URLDecode, will modify the source Includes converting '+' to ' '.
voidconvert(MessageBytes mb, boolean query)
URLDecode, will modify the source
Stringconvert(String str)
Stringconvert(String str, boolean query)

Field Detail

ALLOW_ENCODED_SLASH

protected static final boolean ALLOW_ENCODED_SLASH

Constructor Detail

UDecoder

public UDecoder()

Method Detail

convert

public void convert(ByteChunk mb)
URLDecode, will modify the source. Includes converting '+' to ' '.

convert

public void convert(ByteChunk mb, boolean query)
URLDecode, will modify the source.

convert

public void convert(CharChunk mb)
In-buffer processing - the buffer will be modified Includes converting '+' to ' '.

convert

public void convert(CharChunk mb, boolean query)
In-buffer processing - the buffer will be modified

convert

public void convert(MessageBytes mb)
URLDecode, will modify the source Includes converting '+' to ' '.

convert

public void convert(MessageBytes mb, boolean query)
URLDecode, will modify the source

convert

public final String convert(String str)

convert

public final String convert(String str, boolean query)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.