/** * The result containing response for this request. * * @return the result containing response for this request */ public InternalResultResponse getResultResponse() { if ( response == null ) { response = new AddResponseImpl( getMessageId() ); } return response; }
/** * Transform a Internal AddResponse to a Codec AddResponse * * @param internalMessage The incoming Internal AddResponse * @return The AddResponseCodec instance */ private static LdapMessageCodec transformAddResponse( InternalMessage internalMessage ) { AddResponseImpl internalAddResponse = ( AddResponseImpl ) internalMessage; AddResponseCodec addResponse = new AddResponseCodec(); // Transform the ldapResult addResponse.setLdapResult( transformLdapResult( ( LdapResultImpl ) internalAddResponse.getLdapResult() ) ); return addResponse; }
log.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); log.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, addRequest.getEntry().getDn(), ne );
log.error( msg ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); log.error( "{} : {}", msg, ine.getMessage() ); AddResponseImpl response = new AddResponseImpl( addRequest.getMessageId() ); throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_DN_SYNTAX, DN.EMPTY_DN, ine );