src/java.naming/share/classes/com/sun/jndi/ldap/LdapBindingEnumeration.java

Print this page




  87         } catch (Exception e) {
  88             NamingException ne =
  89                 new NamingException(
  90                         "problem generating object using object factory");
  91             ne.setRootCause(e);
  92             throw ne;
  93         }
  94 
  95         Binding binding;
  96         if (respCtls != null) {
  97            binding = new BindingWithControls(cn.toString(), obj,
  98                                 homeCtx.convertControls(respCtls));
  99         } else {
 100             binding = new Binding(cn.toString(), obj);
 101         }
 102         binding.setNameInNamespace(dn);
 103         return binding;
 104     }
 105 
 106     @Override
 107     protected LdapBindingEnumeration getReferredResults(
 108             LdapReferralContext refCtx) throws NamingException{
 109         // repeat the original operation at the new context
 110         return (LdapBindingEnumeration)refCtx.listBindings(listArg);
 111     }
 112 }


  87         } catch (Exception e) {
  88             NamingException ne =
  89                 new NamingException(
  90                         "problem generating object using object factory");
  91             ne.setRootCause(e);
  92             throw ne;
  93         }
  94 
  95         Binding binding;
  96         if (respCtls != null) {
  97            binding = new BindingWithControls(cn.toString(), obj,
  98                                 homeCtx.convertControls(respCtls));
  99         } else {
 100             binding = new Binding(cn.toString(), obj);
 101         }
 102         binding.setNameInNamespace(dn);
 103         return binding;
 104     }
 105 
 106     @Override
 107     protected AbstractLdapNamingEnumeration<? extends NameClassPair> getReferredResults(
 108             LdapReferralContext refCtx) throws NamingException{
 109         // repeat the original operation at the new context
 110         return (AbstractLdapNamingEnumeration<? extends NameClassPair>)refCtx.listBindings(listArg);
 111     }
 112 }