/** * {@inheritDoc} */ @Override public ExtendedResponse extended( String oid ) throws LdapException { return extended( oid, null ); }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( Oid oid ) throws LdapException { return extended( oid, null ); }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( String oid ) throws LdapException { return extended( oid, null ); }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( Oid oid ) throws LdapException { return extended( oid, null ); }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( Oid oid ) throws LdapException { return extended( oid, null ); }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( String oid ) throws LdapException { return extended( oid, null ); }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( Oid oid, byte[] value ) throws LdapException { ExtendedRequest extendedRequest = LdapApiServiceFactory.getSingleton().newExtendedRequest( oid.toString(), value ); return extended( extendedRequest ); }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( Oid oid, byte[] value ) throws LdapException { ExtendedRequest extendedRequest = LdapApiServiceFactory.getSingleton().newExtendedRequest( oid.toString(), value ); return extended( extendedRequest ); }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( String oid, byte[] value ) throws LdapException { try { return extended( Oid.fromString( oid ), value ); } catch ( DecoderException e ) { String msg = I18n.err( I18n.ERR_04153_OID_DECODING_FAILURE, oid ); LOG.error( msg ); throw new LdapException( msg, e ); } }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( Oid oid, byte[] value ) throws LdapException { ExtendedRequest extendedRequest = LdapApiServiceFactory.getSingleton().newExtendedRequest( oid.toString(), value ); return extended( extendedRequest ); }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( String oid, byte[] value ) throws LdapException { try { return extended( Oid.fromString( oid ), value ); } catch ( DecoderException e ) { String msg = I18n.err( I18n.ERR_04153_OID_DECODING_FAILURE, oid ); LOG.error( msg ); throw new LdapException( msg, e ); } }
/** * {@inheritDoc} */ @Override public ExtendedResponse extended( String oid, byte[] value ) throws LdapException { try { return extended( Oid.fromString( oid ), value ); } catch ( DecoderException e ) { String msg = I18n.err( I18n.ERR_04153_OID_DECODING_FAILURE, oid ); LOG.error( msg ); throw new LdapException( msg, e ); } }
ExtendedResponse resp = extended( new StartTlsRequestImpl() ); LdapResult result = resp.getLdapResult();
ExtendedResponse resp = extended( new StartTlsRequestImpl() ); LdapResult result = resp.getLdapResult();
ExtendedResponse resp = extended( new StartTlsRequestImpl() ); LdapResult result = resp.getLdapResult();
@Override public Response<?> extendedOperation(final ExtendedRequest request) throws LdapException { Response<?> response = null; try { final ExtendedResponse apacheExtRes = connection.extended(request.getOID(), request.encode()); throwOperationException(request, apacheExtRes); byte[] responseValue = null; if (apacheExtRes instanceof ExtendedResponseDecorator) { responseValue = ((ExtendedResponseDecorator) apacheExtRes).getResponseValue(); } final org.ldaptive.extended.ExtendedResponse<?> extRes = ExtendedResponseFactory.createExtendedResponse( request.getOID(), apacheExtRes.getResponseName(), responseValue); response = createResponse(request, extRes.getValue(), apacheExtRes); } catch (LdapOperationException e) { processLdapOperationException(e); } catch (org.apache.directory.api.ldap.model.exception.LdapException e) { processLdapException(e); } return response; }