55 className = (String)attr.get(); 56 } else { 57 className = defaultClassName; 58 } 59 CompositeName cn = new CompositeName(); 60 cn.add(getAtom(dn)); 61 62 NameClassPair ncp; 63 if (respCtls != null) { 64 ncp = new NameClassPairWithControls( 65 cn.toString(), className, 66 homeCtx.convertControls(respCtls)); 67 } else { 68 ncp = new NameClassPair(cn.toString(), className); 69 } 70 ncp.setNameInNamespace(dn); 71 return ncp; 72 } 73 74 @Override 75 protected LdapNamingEnumeration getReferredResults( 76 LdapReferralContext refCtx) throws NamingException { 77 // repeat the original operation at the new context 78 return (LdapNamingEnumeration)refCtx.list(listArg); 79 } 80 } | 55 className = (String)attr.get(); 56 } else { 57 className = defaultClassName; 58 } 59 CompositeName cn = new CompositeName(); 60 cn.add(getAtom(dn)); 61 62 NameClassPair ncp; 63 if (respCtls != null) { 64 ncp = new NameClassPairWithControls( 65 cn.toString(), className, 66 homeCtx.convertControls(respCtls)); 67 } else { 68 ncp = new NameClassPair(cn.toString(), className); 69 } 70 ncp.setNameInNamespace(dn); 71 return ncp; 72 } 73 74 @Override 75 protected AbstractLdapNamingEnumeration<? extends NameClassPair> getReferredResults( 76 LdapReferralContext refCtx) throws NamingException { 77 // repeat the original operation at the new context 78 return (AbstractLdapNamingEnumeration<? extends NameClassPair>)refCtx.list(listArg); 79 } 80 } |