/** * The result containing response for this request. * * @return the result containing response for this request */ public InternalResultResponse getResultResponse() { if ( response == null ) { response = new ModifyResponseImpl( getMessageId() ); } return response; }
public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; ModifyRequestCodec modifyRequest = ldapMessageContainer.getModifyRequest(); TLV tlv = ldapMessageContainer.getCurrentTLV(); // Store the value. It can't be null String type = null; if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_04083 ); log.error( msg ); ModifyResponseImpl response = new ModifyResponseImpl( modifyRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, modifyRequest.getObject(), null ); } else { type = StringTools.getType( tlv.getValue().getData() ); modifyRequest.addAttributeTypeAndValues( type ); } if ( IS_DEBUG ) { log.debug( "Modifying type : {}", type ); } } } );
log.error( "{} : {}", msg, ine.getMessage() ); ModifyResponseImpl response = new ModifyResponseImpl( modifyRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_DN_SYNTAX, DN.EMPTY_DN, ine );