org.apache.directory.server.changepw.protocol
Class ChangePasswordTcpDecoder

java.lang.Object
  extended by org.apache.mina.filter.codec.ProtocolDecoderAdapter
      extended by org.apache.mina.filter.codec.CumulativeProtocolDecoder
          extended by org.apache.directory.server.changepw.protocol.ChangePasswordTcpDecoder
All Implemented Interfaces:
org.apache.mina.filter.codec.ProtocolDecoder

public class ChangePasswordTcpDecoder
extends org.apache.mina.filter.codec.CumulativeProtocolDecoder

Version:
$Rev: 549315 $, $Date: 2007-06-20 18:13:53 -0700 (Wed, 20 Jun 2007) $
Author:
Apache Directory Project

Constructor Summary
ChangePasswordTcpDecoder()
           
 
Method Summary
protected  boolean doDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
           
 int getMaxObjectSize()
          Returns the allowed maximum size of the object to be decoded.
 void setMaxObjectSize(int maxObjectSize)
          Sets the allowed maximum size of the object to be decoded.
 
Methods inherited from class org.apache.mina.filter.codec.CumulativeProtocolDecoder
decode, dispose
 
Methods inherited from class org.apache.mina.filter.codec.ProtocolDecoderAdapter
finishDecode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangePasswordTcpDecoder

public ChangePasswordTcpDecoder()
Method Detail

getMaxObjectSize

public int getMaxObjectSize()
Returns the allowed maximum size of the object to be decoded. If the size of the object to be decoded exceeds this value, this decoder will throw a BufferDataException. The default value is 16384 (16KB).

Returns:
The max object size.

setMaxObjectSize

public void setMaxObjectSize(int maxObjectSize)
Sets the allowed maximum size of the object to be decoded. If the size of the object to be decoded exceeds this value, this decoder will throw a BufferDataException. The default value is 16384 (16KB).

Parameters:
maxObjectSize -

doDecode

protected boolean doDecode(org.apache.mina.core.session.IoSession session,
                           org.apache.mina.core.buffer.IoBuffer in,
                           org.apache.mina.filter.codec.ProtocolDecoderOutput out)
                    throws java.lang.Exception
Specified by:
doDecode in class org.apache.mina.filter.codec.CumulativeProtocolDecoder
Throws:
java.lang.Exception


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.