src/share/classes/com/sun/jndi/ldap/LdapSearchEnumeration.java
Print this page
*** 51,61 ****
startName = new LdapName(starter);
searchArgs = args;
}
protected NameClassPair
! createItem(String dn, Attributes attrs, Vector respCtls)
throws NamingException {
Object obj = null;
String relStart; // name relative to starting search context
--- 51,61 ----
startName = new LdapName(starter);
searchArgs = args;
}
protected NameClassPair
! createItem(String dn, Attributes attrs, Vector<Control> respCtls)
throws NamingException {
Object obj = null;
String relStart; // name relative to starting search context
*** 179,192 ****
// a referral has been followed so do not create relative names
startName = null;
super.appendUnprocessedReferrals(ex);
}
! protected LdapNamingEnumeration
getReferredResults(LdapReferralContext refCtx) throws NamingException {
// repeat the original operation at the new context
! return (LdapSearchEnumeration)
refCtx.search(searchArgs.name, searchArgs.filter, searchArgs.cons);
}
protected void update(LdapNamingEnumeration ne) {
super.update(ne);
--- 179,192 ----
// a referral has been followed so do not create relative names
startName = null;
super.appendUnprocessedReferrals(ex);
}
! protected LdapSearchEnumeration
getReferredResults(LdapReferralContext refCtx) throws NamingException {
// repeat the original operation at the new context
! return (LdapSearchEnumeration)(NamingEnumeration)
refCtx.search(searchArgs.name, searchArgs.filter, searchArgs.cons);
}
protected void update(LdapNamingEnumeration ne) {
super.update(ne);