BerValue.encodeEnumerated( buffer, getResultCode().getValue() );
BerValue.encodeEnumerated( buffer, getResultCode().getValue() );
BerValue.encodeEnumerated( buffer, getResultCode().getValue() );
/** * Creates an operation response with the supplied response data. * * @param <T> type of response * @param request containing controls * @param result of the operation * @param resultResponse provider response * * @return operation response */ protected <T> Response<T> createResponse(final Request request, final T result, final ResultResponse resultResponse) { final LdapResult ldapResult = resultResponse.getLdapResult(); final Referral ref = ldapResult.getReferral(); return new Response<>( result, ResultCode.valueOf(ldapResult.getResultCode().getValue()), ldapResult.getDiagnosticMessage(), ldapResult.getMatchedDn() != null ? ldapResult.getMatchedDn().getName() : null, processResponseControls(config.getControlProcessor(), request.getControls(), resultResponse), ref != null ? ref.getLdapUrls().toArray(new String[ref.getReferralLength()]) : null, resultResponse.getMessageId()); }
throw new ConnectionException(e, ResultCode.valueOf(e.getResultCode().getValue())); } catch (org.apache.directory.api.ldap.model.exception.LdapException e) { closeConn = true;
ldapResultLength = 1 + 1 + BerValue.getNbBytes( getResultCode().getValue() );
ldapResultLength = 1 + 1 + BerValue.getNbBytes( getResultCode().getValue() );
ldapResultLength = 1 + 1 + BerValue.getNbBytes( getResultCode().getValue() );