Package org.apache.mina.proxy.utils
Class IoBufferDecoder.DecodingContext
- java.lang.Object
-
- org.apache.mina.proxy.utils.IoBufferDecoder.DecodingContext
-
- Enclosing class:
- IoBufferDecoder
public class IoBufferDecoder.DecodingContext extends Object
The class holding the decoding context.
-
-
Constructor Summary
Constructors Constructor Description DecodingContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getContentLength()
IoBuffer
getDecodedBuffer()
IoBuffer
getDelimiter()
int
getMatchCount()
void
reset()
Resets the decoding state.void
setContentLength(int contentLength)
Sets the content-lengthvoid
setDecodedBuffer(IoBuffer decodedBuffer)
Sets the decoded data buffervoid
setDelimiter(IoBuffer delimiter)
Sets the delimitervoid
setMatchCount(int matchCount)
Sets the match count
-
-
-
Method Detail
-
reset
public void reset()
Resets the decoding state.
-
getContentLength
public int getContentLength()
- Returns:
- The current content length of decoded data if in content-length mode.
-
setContentLength
public void setContentLength(int contentLength)
Sets the content-length- Parameters:
contentLength
- current content length of decoded data
-
getMatchCount
public int getMatchCount()
- Returns:
- The number of matched delimiters.
-
setMatchCount
public void setMatchCount(int matchCount)
Sets the match count- Parameters:
matchCount
- The number of matched delimiters.
-
getDecodedBuffer
public IoBuffer getDecodedBuffer()
- Returns:
- The decoded data
-
setDecodedBuffer
public void setDecodedBuffer(IoBuffer decodedBuffer)
Sets the decoded data buffer- Parameters:
decodedBuffer
- The decoded data
-
getDelimiter
public IoBuffer getDelimiter()
- Returns:
- The delimiter
-
setDelimiter
public void setDelimiter(IoBuffer delimiter)
Sets the delimiter- Parameters:
delimiter
- The delimiter
-
-