org.apache.directory.shared.ldap.codec.protocol.mina
Class LdapProtocolDecoder

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.protocol.mina.LdapProtocolDecoder
All Implemented Interfaces:
org.apache.mina.filter.codec.ProtocolDecoder

public class LdapProtocolDecoder
extends Object
implements org.apache.mina.filter.codec.ProtocolDecoder

A LDAP message decoder. It is based on shared-ldap decoder.

Author:
Apache Directory Project

Constructor Summary
LdapProtocolDecoder()
          Creates a new instance of LdapProtocolEncoder.
 
Method Summary
 void decode(org.apache.mina.core.session.IoSession session, org.apache.mina.core.buffer.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
          
 void dispose(org.apache.mina.core.session.IoSession session)
          
 void finishDecode(org.apache.mina.core.session.IoSession session, org.apache.mina.filter.codec.ProtocolDecoderOutput out)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapProtocolDecoder

public LdapProtocolDecoder()
Creates a new instance of LdapProtocolEncoder.

Parameters:
codec - The LDAP codec service associated with this encoder.
Method Detail

decode

public void decode(org.apache.mina.core.session.IoSession session,
                   org.apache.mina.core.buffer.IoBuffer in,
                   org.apache.mina.filter.codec.ProtocolDecoderOutput out)
            throws Exception

Specified by:
decode in interface org.apache.mina.filter.codec.ProtocolDecoder
Throws:
Exception

finishDecode

public void finishDecode(org.apache.mina.core.session.IoSession session,
                         org.apache.mina.filter.codec.ProtocolDecoderOutput out)
                  throws Exception

Specified by:
finishDecode in interface org.apache.mina.filter.codec.ProtocolDecoder
Throws:
Exception

dispose

public void dispose(org.apache.mina.core.session.IoSession session)
             throws Exception

Specified by:
dispose in interface org.apache.mina.filter.codec.ProtocolDecoder
Throws:
Exception


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.