/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* An LDAP URL context.
*
* @author Rosanna Lee
* @author Scott Seligman
*/
final public class ldapURLContext
super(env);
}
/**
* Resolves 'name' into a target context with remaining name.
* contains the root DN.
*
* For example, with a LDAP URL "ldap://localhost:389/o=widget,c=us",
* this method resolves "ldap://localhost:389/" to the root LDAP
* context on the server 'localhost' on port 389,
* and returns as the remaining name "o=widget, c=us".
*/
throws NamingException {
}
/**
* Return the suffix of an ldap url.
* prefix parameter is ignored.
*/
throws NamingException {
// Represent DN as empty or single-component composite name.
// if nonempty, add component
}
return remaining;
}
/*
* Override context operations.
* Test for presence of LDAP URL query components in the name argument.
* Query components are permitted only for search operations and only
* when the name has a single component.
*/
throw new InvalidNameException(name);
} else {
}
}
} else {
}
}
throw new InvalidNameException(name);
} else {
}
}
} else {
}
}
throw new InvalidNameException(name);
} else {
}
}
} else {
}
}
throw new InvalidNameException(name);
} else {
}
}
} else {
}
}
throw new InvalidNameException(oldName);
throw new InvalidNameException(newName);
} else {
}
}
} else {
}
}
throw new InvalidNameException(name);
} else {
}
}
} else {
}
}
throw new InvalidNameException(name);
} else {
return super.listBindings(name);
}
}
} else {
return super.listBindings(name);
}
}
throw new InvalidNameException(name);
} else {
super.destroySubcontext(name);
}
}
} else {
super.destroySubcontext(name);
}
}
throw new InvalidNameException(name);
} else {
return super.createSubcontext(name);
}
}
} else {
return super.createSubcontext(name);
}
}
throw new InvalidNameException(name);
} else {
return super.lookupLink(name);
}
}
} else {
return super.lookupLink(name);
}
}
throw new InvalidNameException(name);
} else {
return super.getNameParser(name);
}
}
} else {
return super.getNameParser(name);
}
}
throws NamingException {
throw new InvalidNameException(name);
throw new InvalidNameException(prefix);
} else {
}
}
} else {
}
}
throw new InvalidNameException(name);
} else {
return super.getAttributes(name);
}
}
} else {
return super.getAttributes(name);
}
}
throws NamingException {
throw new InvalidNameException(name);
} else {
}
}
throws NamingException {
} else {
}
}
throws NamingException {
throw new InvalidNameException(name);
} else {
}
}
throws NamingException {
} else {
}
}
throws NamingException {
throw new InvalidNameException(name);
} else {
}
}
throws NamingException {
} else {
}
}
throws NamingException {
throw new InvalidNameException(name);
} else {
}
}
throws NamingException {
} else {
}
}
throws NamingException {
throw new InvalidNameException(name);
} else {
}
}
throws NamingException {
} else {
}
}
throws NamingException {
throw new InvalidNameException(name);
} else {
}
}
throws NamingException {
} else {
}
}
throw new InvalidNameException(name);
} else {
}
}
} else {
}
}
throws NamingException {
throw new InvalidNameException(name);
} else {
return super.getSchemaClassDefinition(name);
}
}
throws NamingException {
} else {
return super.getSchemaClassDefinition(name);
}
}
// divert the search operation when the LDAP URL has query components
throws NamingException {
return searchUsingURL(name);
} else {
}
}
// divert the search operation when name has a single component
throws NamingException {
} else {
}
}
// divert the search operation when the LDAP URL has query components
throws NamingException {
return searchUsingURL(name);
} else {
}
}
// divert the search operation when name has a single component
throws NamingException {
} else {
}
}
// divert the search operation when the LDAP URL has query components
throws NamingException {
return searchUsingURL(name);
} else {
}
}
// divert the search operation when name has a single component
throws NamingException {
} else {
}
}
// divert the search operation when the LDAP URL has query components
Object[] filterArgs,
throws NamingException {
return searchUsingURL(name);
} else {
}
}
// divert the search operation when name has a single component
Object[] filterArgs,
throws NamingException {
} else {
}
}
// Search using the LDAP URL in name.
// LDAP URL query components override the search argments.
throws NamingException {
try {
} finally {
}
}
/*
* Initialize a String filter using the LDAP URL filter component.
* If filter is not present in the URL it is initialized to its default
* value as specified in RFC-2255.
*/
}
return filter;
}
/*
* Initialize a SearchControls object using LDAP URL query components.
* Components not present in the URL are initialized to their default
* values as specified in RFC-2255.
*/
} else {
}
}
if (attributes == null) {
} else {
for (int i = 0; i < count; i ++) {
}
}
return cons;
}
}