throw new LdapException("Could not connect to LDAP server", e.getCause()); } catch (LdapException e) { throw e; } catch (Exception e) { throw new LdapException("Unexpected error connecting to LDAP", e);
/** * {@inheritDoc} */ public IntermediateResponse getIntermediate() throws LdapException { throw new LdapException(); } }
/** * {@inheritDoc} */ public Referral getReferral() throws LdapException { throw new LdapException(); }
/** * {@inheritDoc} */ @Override public IntermediateResponse getIntermediate() throws LdapException { if ( isEntry() ) { return ( IntermediateResponse ) response; } throw new LdapException(); } }
/** * {@inheritDoc} */ @Override public IntermediateResponse getIntermediate() throws LdapException { if ( isEntry() ) { return ( IntermediateResponse ) response; } throw new LdapException(); } }
/** * {@inheritDoc} */ @Override public IntermediateResponse getIntermediate() throws LdapException { if ( isEntry() ) { return ( IntermediateResponse ) response; } throw new LdapException(); } }
/** * {@inheritDoc} */ @Override public boolean has( PartitionTxn transaction, K key ) throws LdapException { try { return key != null && bt.find( key ) != null; } catch ( IOException ioe ) { throw new LdapException( ioe ); } }
/** * {@inheritDoc} */ @Override public boolean has( PartitionTxn transaction, K key, V value ) throws LdapException { try { return bt.contains( key, value ); } catch ( IOException e ) { throw new LdapException( e ); } }
/** * Calls the PoolMgr to get an Admin connection to the LDAP server. * * @return ldap connection. * @throws LdapException If we had an issue getting an LDAP connection */ public LdapConnection getAdminConnection() throws LdapException { try { return adminPool.getConnection(); } catch ( Exception e ) { throw new LdapException( e ); } }
/** * Calls the PoolMgr to get an Log connection to the LDAP server. * * @return ldap connection. * @throws LdapException If we had an issue getting an LDAP connection */ public LdapConnection getLogConnection() throws LdapException { try { return logPool.getConnection(); } catch ( Exception e ) { throw new LdapException( e ); } }
/** * Calls the PoolMgr to get an User connection to the LDAP server. * * @return ldap connection. * @throws LdapException If we had an issue getting an LDAP connection */ public LdapConnection getUserConnection() throws LdapException { try { return userPool.getConnection(); } catch ( Exception e ) { throw new LdapException( e ); } }
RandomAccessLdifReader() throws LdapException { try { len = ldifFile.length(); super.init(); } catch ( IOException e ) { LdapException le = new LdapException( e.getMessage(), e ); le.initCause( e ); throw le; } }
RandomAccessLdifReader( SchemaManager schemaManager ) throws LdapException { try { this.schemaManager = schemaManager; len = ldifFile.length(); super.init(); } catch ( IOException e ) { LdapException le = new LdapException( e.getMessage(), e ); le.initCause( e ); throw le; } }
/** * {@inheritDoc} */ @Override public Referral getReferral() throws LdapException { if ( isReferral() ) { return ( ( SearchResultReference ) response ).getReferral(); } throw new LdapException(); }
/** * {@inheritDoc} */ @Override public Referral getReferral() throws LdapException { if ( isReferral() ) { return ( ( SearchResultReference ) response ).getReferral(); } throw new LdapException(); }
/** * {@inheritDoc} */ @Override public Referral getReferral() throws LdapException { if ( isReferral() ) { return ( ( SearchResultReference ) response ).getReferral(); } throw new LdapException(); }
/** * {@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 ); } }
/** * {@inheritDoc} */ @Override public Entry getEntry() throws LdapException { if ( isEntry() ) { return ( ( SearchResultEntry ) response ).getEntry(); } if ( isReferral() ) { Referral referral = ( ( SearchResultReference ) response ).getReferral(); throw new LdapReferralException( referral.getLdapUrls() ); } throw new LdapException(); }
/** * {@inheritDoc} */ @Override public Entry getEntry() throws LdapException { if ( isEntry() ) { return ( ( SearchResultEntry ) response ).getEntry(); } if ( isReferral() ) { Referral referral = ( ( SearchResultReference ) response ).getReferral(); throw new LdapReferralException( referral.getLdapUrls() ); } throw new LdapException(); }