/** * {@inheritDoc} */ @Override public Entry getEntry() { return getDecorated().getEntry(); }
LOG.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); LOG.error( I18n.err( I18n.ERR_05114_ERROR_MESSAGE, msg, ine.getMessage() ) ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_DN_SYNTAX, Dn.EMPTY_DN, ine ); addRequest.setEntryDn( entryDn ); LOG.debug( I18n.msg( I18n.MSG_05113_ADDING_ENTRY_WITH_DN, addRequest.getEntry() ) );
LOG.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); addRequest.getEntry().getDn(), null ); addRequest.addAttributeType( type ); LOG.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, addRequest.getEntry().getDn(), ne );
addRequest.addAttributeValue( "" ); if ( container.isBinary( addRequest.getCurrentAttributeType() ) ) addRequest.addAttributeValue( ( byte[] ) value ); addRequest.addAttributeValue( ( String ) value );
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<AddRequestDecorator> container ) throws DecoderException { // Now, we can allocate the AddRequest Object int messageId = container.getMessageId(); AddRequest internalAddRequest = new AddRequestImpl(); internalAddRequest.setMessageId( messageId ); AddRequestDecorator addRequest = new AddRequestDecorator( container.getLdapCodecService(), internalAddRequest ); container.setMessage( addRequest ); // We will check that the request is not null TLV tlv = container.getCurrentTLV(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05145_NULL_ADD_REQUEST ); LOG.error( msg ); // Will generate a PROTOCOL_ERROR throw new DecoderException( msg ); } } }
Entry entry = getEntry();
LOG.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); LOG.error( I18n.err( I18n.ERR_05114_ERROR_MESSAGE, msg, ine.getMessage() ) ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_DN_SYNTAX, Dn.EMPTY_DN, ine ); addRequest.setEntryDn( entryDn ); LOG.debug( I18n.msg( I18n.MSG_05113_ADDING_ENTRY_WITH_DN, addRequest.getEntry() ) );
LOG.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); addRequest.getEntry().getDn(), null ); addRequest.addAttributeType( type ); LOG.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, addRequest.getEntry().getDn(), ne );
addRequest.addAttributeValue( "" ); if ( container.isBinary( addRequest.getCurrentAttributeType() ) ) addRequest.addAttributeValue( ( byte[] ) value ); addRequest.addAttributeValue( ( String ) value );
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<AddRequestDecorator> container ) throws DecoderException { // Now, we can allocate the AddRequest Object int messageId = container.getMessageId(); AddRequest internalAddRequest = new AddRequestImpl(); internalAddRequest.setMessageId( messageId ); AddRequestDecorator addRequest = new AddRequestDecorator( container.getLdapCodecService(), internalAddRequest ); container.setMessage( addRequest ); // We will check that the request is not null TLV tlv = container.getCurrentTLV(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05145_NULL_ADD_REQUEST ); LOG.error( msg ); // Will generate a PROTOCOL_ERROR throw new DecoderException( msg ); } } }
Entry entry = getEntry();
LOG.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); LOG.error( I18n.err( I18n.ERR_05114_ERROR_MESSAGE, msg, ine.getMessage() ) ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_DN_SYNTAX, Dn.EMPTY_DN, ine ); addRequest.setEntryDn( entryDn ); LOG.debug( I18n.msg( I18n.MSG_05113_ADDING_ENTRY_WITH_DN, addRequest.getEntry() ) );
LOG.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); addRequest.getEntry().getDn(), null ); addRequest.addAttributeType( type ); LOG.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, addRequest.getEntry().getDn(), ne );
/** * {@inheritDoc} */ @Override public AddRequest setEntry( Entry entry ) { getDecorated().setEntry( entry ); return this; }
addRequest.addAttributeValue( "" ); if ( container.isBinary( addRequest.getCurrentAttributeType() ) ) addRequest.addAttributeValue( ( byte[] ) value ); addRequest.addAttributeValue( ( String ) value );
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<AddRequestDecorator> container ) throws DecoderException { // Now, we can allocate the AddRequest Object int messageId = container.getMessageId(); AddRequest internalAddRequest = new AddRequestImpl(); internalAddRequest.setMessageId( messageId ); AddRequestDecorator addRequest = new AddRequestDecorator( container.getLdapCodecService(), internalAddRequest ); container.setMessage( addRequest ); // We will check that the request is not null TLV tlv = container.getCurrentTLV(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05145_NULL_ADD_REQUEST ); LOG.error( msg ); // Will generate a PROTOCOL_ERROR throw new DecoderException( msg ); } } }
Entry entry = getEntry();
/** * {@inheritDoc} */ @Override public AddRequest setEntry( Entry entry ) { getDecorated().setEntry( entry ); return this; }
decorator = new AddRequestDecorator( codec, ( AddRequest ) decoratedMessage ); break;
/** * {@inheritDoc} */ @Override public Dn getEntryDn() { return getDecorated().getEntryDn(); }