/** * {@inheritDoc} */ @Override public Object getReferralInfo() { return lre.getReferralInfo(); }
/** * {@inheritDoc} */ @Override public boolean skipReferral() { return lre.skipReferral(); }
/** * @return the remainingDn */ public Dn getRemainingDn() { if ( ldapReferralException != null ) { return ldapReferralException.getRemainingDn(); } else { return Dn.EMPTY_DN; } }
String ref = ( ( LdapReferralException ) e ).getReferralInfo(); referrals.addLdapUrl( ref ); while ( ( ( LdapReferralException ) e ).skipReferral() );
/** * {@inheritDoc} */ @Override public Object getResolvedObj() { return lre.getResolvedObject(); }
/** * {@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(); }
/** * Always returns {@link ResultCodeEnum#REFERRAL} * * @see LdapReferralException#getResultCode() * * @return the underlying LdapReferral result code, if any */ public ResultCodeEnum getResultCode() { if ( ldapReferralException != null ) { return ldapReferralException.getResultCode(); } else { return ResultCodeEnum.UNKNOWN; } }
/** * {@inheritDoc} */ @Override public Context getReferralContext( Hashtable<?, ?> env ) throws NamingException { return lre.getReferralContext( env ); }
/** * {@inheritDoc} */ @Override public void retryReferral() { lre.retryReferral(); }
/** * {@inheritDoc} */ @Override public Name getResolvedName() { return JndiUtils.toName( lre.getResolvedDn() ); } }
/** * {@inheritDoc} */ @Override public Object getResolvedObj() { return lre.getResolvedObject(); }
/** * {@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(); }
/** * Always returns {@link ResultCodeEnum#REFERRAL} * * @see LdapReferralException#getResultCode() * * @return the underlying LdapReferral result code, if any */ public ResultCodeEnum getResultCode() { if ( ldapReferralException != null ) { return ldapReferralException.getResultCode(); } else { return ResultCodeEnum.UNKNOWN; } }
/** * {@inheritDoc} */ @Override public Context getReferralContext( Hashtable<?, ?> env ) throws NamingException { return lre.getReferralContext( env ); }
/** * {@inheritDoc} */ @Override public void retryReferral() { lre.retryReferral(); }
/** * {@inheritDoc} */ @Override public Name getResolvedName() { return JndiUtils.toName( lre.getResolvedDn() ); } }
/** * {@inheritDoc} */ @Override public boolean skipReferral() { return lre.skipReferral(); }
/** * {@inheritDoc} */ @Override public Object getReferralInfo() { return lre.getReferralInfo(); }
/** * @return the remainingDn */ public Dn getRemainingDn() { if ( ldapReferralException != null ) { return ldapReferralException.getRemainingDn(); } else { return Dn.EMPTY_DN; } }
/** * @return the resolvedObject */ public Object getResolvedObject() { if ( ldapReferralException != null ) { return ldapReferralException.getResolvedObject(); } else { return null; } } }