Examples of IAsn1Container


Examples of org.apache.directory.shared.asn1.ber.IAsn1Container

   
    private StoredProcedure decodeBean( byte[] payload )
    {
        Asn1Decoder storedProcedureDecoder = new StoredProcedureDecoder();
        ByteBuffer stream = ByteBuffer.wrap( payload );
        IAsn1Container storedProcedureContainer = new StoredProcedureContainer();

        try
        {
            storedProcedureDecoder.decode( stream, storedProcedureContainer );
        }
View Full Code Here

Examples of org.apache.directory.shared.asn1.ber.IAsn1Container

     */
    public void decode( IoSession session, IoBuffer buffer, ProtocolDecoderOutput out ) throws Exception
    {
        // Allocate a LdapMessage Container
        Asn1Decoder ldapDecoder = new Asn1Decoder();
        IAsn1Container ldapMessageContainer = (LdapMessageContainer)session.getAttribute( "LDAP-Container" );
        ByteBuffer buf = buffer.buf();
        int currentPos = 0;
       
        while ( buf.hasRemaining() )
        {
            try
            {
                ldapDecoder.decode( buf, ldapMessageContainer );
   
                if ( IS_DEBUG )
                {
                    LOG.debug( "Decoding the PDU : " );
                    int pos = buf.position();
                   
                    byte[] b = new byte[pos-currentPos];
                   
                    System.arraycopy( buf.array(), currentPos, b, 0, pos-currentPos );
                    currentPos = pos;
                    System.out.println( "Received buffer : " + StringTools.dumpBytes( b ) );
                }
               
                if ( ldapMessageContainer.getState() == TLVStateEnum.PDU_DECODED )
                {
                    // get back the decoded message
                    LdapMessageCodec message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage();
                   
                    if ( IS_DEBUG )
View Full Code Here

Examples of org.apache.directory.shared.asn1.ber.IAsn1Container

        // Get back the session
        ldapSession = connectionFuture.getSession();
        connected.set( true );

        // And inject the current Ldap container into the session
        IAsn1Container ldapMessageContainer = new LdapMessageContainer();

        // Store the container into the session
        ldapSession.setAttribute( "LDAP-Container", ldapMessageContainer );
       
        // Initialize the MessageId
View Full Code Here

Examples of org.apache.directory.shared.asn1.ber.IAsn1Container

        DefaultMutableTreeNode messTrue;

        Asn1Decoder ldapDecoder = new LdapDecoder();

        // Allocate a LdapMessageContainer Container
        IAsn1Container ldapMessageContainer = new LdapMessageContainer();

        // Decode the PDU
        ldapDecoder.decode( buffer, ldapMessageContainer );
        // Check that everything is OK
        LdapMessage ldapmessage = ( (LdapMessageContainer) ldapMessageContainer ).getLdapMessage();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.