com.sun.jndi.url.ldap
Class ldapURLContext
java.lang.Object
com.sun.jndi.toolkit.url.GenericURLContext
com.sun.jndi.toolkit.url.GenericURLDirContext
com.sun.jndi.url.ldap.ldapURLContext
- All Implemented Interfaces:
- Context, DirContext
public final class ldapURLContext
- extends GenericURLDirContext
An LDAP URL context.
| Fields inherited from interface javax.naming.Context |
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
|
Method Summary |
void |
bind(Name name,
Object obj)
|
void |
bind(Name name,
Object obj,
Attributes attrs)
|
void |
bind(String name,
Object obj)
|
void |
bind(String name,
Object obj,
Attributes attrs)
|
Name |
composeName(Name name,
Name prefix)
|
String |
composeName(String name,
String prefix)
|
Context |
createSubcontext(Name name)
|
DirContext |
createSubcontext(Name name,
Attributes attrs)
|
Context |
createSubcontext(String name)
|
DirContext |
createSubcontext(String name,
Attributes attrs)
|
void |
destroySubcontext(Name name)
|
void |
destroySubcontext(String name)
|
Attributes |
getAttributes(Name name)
|
Attributes |
getAttributes(Name name,
String[] attrIds)
|
Attributes |
getAttributes(String name)
|
Attributes |
getAttributes(String name,
String[] attrIds)
|
NameParser |
getNameParser(Name name)
|
NameParser |
getNameParser(String name)
|
protected ResolveResult |
getRootURLContext(String name,
Hashtable env)
Resolves 'name' into a target context with remaining name. |
DirContext |
getSchema(Name name)
|
DirContext |
getSchema(String name)
|
DirContext |
getSchemaClassDefinition(Name name)
|
DirContext |
getSchemaClassDefinition(String name)
|
protected Name |
getURLSuffix(String prefix,
String url)
Return the suffix of an ldap url. |
NamingEnumeration |
list(Name name)
|
NamingEnumeration |
list(String name)
|
NamingEnumeration |
listBindings(Name name)
|
NamingEnumeration |
listBindings(String name)
|
Object |
lookup(Name name)
|
Object |
lookup(String name)
|
Object |
lookupLink(Name name)
|
Object |
lookupLink(String name)
|
void |
modifyAttributes(Name name,
int mod_op,
Attributes attrs)
|
void |
modifyAttributes(Name name,
ModificationItem[] mods)
|
void |
modifyAttributes(String name,
int mod_op,
Attributes attrs)
|
void |
modifyAttributes(String name,
ModificationItem[] mods)
|
void |
rebind(Name name,
Object obj)
|
void |
rebind(Name name,
Object obj,
Attributes attrs)
|
void |
rebind(String name,
Object obj)
|
void |
rebind(String name,
Object obj,
Attributes attrs)
|
void |
rename(Name oldName,
Name newName)
|
void |
rename(String oldName,
String newName)
|
NamingEnumeration |
search(Name name,
Attributes matchingAttributes)
|
NamingEnumeration |
search(Name name,
Attributes matchingAttributes,
String[] attributesToReturn)
|
NamingEnumeration |
search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
|
NamingEnumeration |
search(Name name,
String filter,
SearchControls cons)
|
NamingEnumeration |
search(String name,
Attributes matchingAttributes)
|
NamingEnumeration |
search(String name,
Attributes matchingAttributes,
String[] attributesToReturn)
|
NamingEnumeration |
search(String name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
|
NamingEnumeration |
search(String name,
String filter,
SearchControls cons)
|
void |
unbind(Name name)
|
void |
unbind(String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getRootURLContext
protected ResolveResult getRootURLContext(String name,
Hashtable env)
throws NamingException
- Resolves 'name' into a target context with remaining name.
It only resolves the hostname/port number. The 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".
- Specified by:
getRootURLContext in class GenericURLContext
- Throws:
NamingException
getURLSuffix
protected Name getURLSuffix(String prefix,
String url)
throws NamingException
- Return the suffix of an ldap url.
prefix parameter is ignored.
- Overrides:
getURLSuffix in class GenericURLContext
- Throws:
NamingException
lookup
public Object lookup(String name)
throws NamingException
- Specified by:
lookup in interface Context- Overrides:
lookup in class GenericURLContext
- Throws:
NamingException
lookup
public Object lookup(Name name)
throws NamingException
- Specified by:
lookup in interface Context- Overrides:
lookup in class GenericURLContext
- Throws:
NamingException
bind
public void bind(String name,
Object obj)
throws NamingException
- Specified by:
bind in interface Context- Overrides:
bind in class GenericURLContext
- Throws:
NamingException
bind
public void bind(Name name,
Object obj)
throws NamingException
- Specified by:
bind in interface Context- Overrides:
bind in class GenericURLContext
- Throws:
NamingException
rebind
public void rebind(String name,
Object obj)
throws NamingException
- Specified by:
rebind in interface Context- Overrides:
rebind in class GenericURLContext
- Throws:
NamingException
rebind
public void rebind(Name name,
Object obj)
throws NamingException
- Specified by:
rebind in interface Context- Overrides:
rebind in class GenericURLContext
- Throws:
NamingException
unbind
public void unbind(String name)
throws NamingException
- Specified by:
unbind in interface Context- Overrides:
unbind in class GenericURLContext
- Throws:
NamingException
unbind
public void unbind(Name name)
throws NamingException
- Specified by:
unbind in interface Context- Overrides:
unbind in class GenericURLContext
- Throws:
NamingException
rename
public void rename(String oldName,
String newName)
throws NamingException
- Specified by:
rename in interface Context- Overrides:
rename in class GenericURLContext
- Throws:
NamingException
rename
public void rename(Name oldName,
Name newName)
throws NamingException
- Specified by:
rename in interface Context- Overrides:
rename in class GenericURLContext
- Throws:
NamingException
list
public NamingEnumeration list(String name)
throws NamingException
- Specified by:
list in interface Context- Overrides:
list in class GenericURLContext
- Throws:
NamingException
list
public NamingEnumeration list(Name name)
throws NamingException
- Specified by:
list in interface Context- Overrides:
list in class GenericURLContext
- Throws:
NamingException
listBindings
public NamingEnumeration listBindings(String name)
throws NamingException
- Specified by:
listBindings in interface Context- Overrides:
listBindings in class GenericURLContext
- Throws:
NamingException
listBindings
public NamingEnumeration listBindings(Name name)
throws NamingException
- Specified by:
listBindings in interface Context- Overrides:
listBindings in class GenericURLContext
- Throws:
NamingException
destroySubcontext
public void destroySubcontext(String name)
throws NamingException
- Specified by:
destroySubcontext in interface Context- Overrides:
destroySubcontext in class GenericURLContext
- Throws:
NamingException
destroySubcontext
public void destroySubcontext(Name name)
throws NamingException
- Specified by:
destroySubcontext in interface Context- Overrides:
destroySubcontext in class GenericURLContext
- Throws:
NamingException
createSubcontext
public Context createSubcontext(String name)
throws NamingException
- Specified by:
createSubcontext in interface Context- Overrides:
createSubcontext in class GenericURLContext
- Throws:
NamingException
createSubcontext
public Context createSubcontext(Name name)
throws NamingException
- Specified by:
createSubcontext in interface Context- Overrides:
createSubcontext in class GenericURLContext
- Throws:
NamingException
lookupLink
public Object lookupLink(String name)
throws NamingException
- Specified by:
lookupLink in interface Context- Overrides:
lookupLink in class GenericURLContext
- Throws:
NamingException
lookupLink
public Object lookupLink(Name name)
throws NamingException
- Specified by:
lookupLink in interface Context- Overrides:
lookupLink in class GenericURLContext
- Throws:
NamingException
getNameParser
public NameParser getNameParser(String name)
throws NamingException
- Specified by:
getNameParser in interface Context- Overrides:
getNameParser in class GenericURLContext
- Throws:
NamingException
getNameParser
public NameParser getNameParser(Name name)
throws NamingException
- Specified by:
getNameParser in interface Context- Overrides:
getNameParser in class GenericURLContext
- Throws:
NamingException
composeName
public String composeName(String name,
String prefix)
throws NamingException
- Specified by:
composeName in interface Context- Overrides:
composeName in class GenericURLContext
- Throws:
NamingException
composeName
public Name composeName(Name name,
Name prefix)
throws NamingException
- Specified by:
composeName in interface Context- Overrides:
composeName in class GenericURLContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(String name)
throws NamingException
- Specified by:
getAttributes in interface DirContext- Overrides:
getAttributes in class GenericURLDirContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(Name name)
throws NamingException
- Specified by:
getAttributes in interface DirContext- Overrides:
getAttributes in class GenericURLDirContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(String name,
String[] attrIds)
throws NamingException
- Specified by:
getAttributes in interface DirContext- Overrides:
getAttributes in class GenericURLDirContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(Name name,
String[] attrIds)
throws NamingException
- Specified by:
getAttributes in interface DirContext- Overrides:
getAttributes in class GenericURLDirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(String name,
int mod_op,
Attributes attrs)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext- Overrides:
modifyAttributes in class GenericURLDirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(Name name,
int mod_op,
Attributes attrs)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext- Overrides:
modifyAttributes in class GenericURLDirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(String name,
ModificationItem[] mods)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext- Overrides:
modifyAttributes in class GenericURLDirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(Name name,
ModificationItem[] mods)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext- Overrides:
modifyAttributes in class GenericURLDirContext
- Throws:
NamingException
bind
public void bind(String name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
bind in interface DirContext- Overrides:
bind in class GenericURLDirContext
- Throws:
NamingException
bind
public void bind(Name name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
bind in interface DirContext- Overrides:
bind in class GenericURLDirContext
- Throws:
NamingException
rebind
public void rebind(String name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
rebind in interface DirContext- Overrides:
rebind in class GenericURLDirContext
- Throws:
NamingException
rebind
public void rebind(Name name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
rebind in interface DirContext- Overrides:
rebind in class GenericURLDirContext
- Throws:
NamingException
createSubcontext
public DirContext createSubcontext(String name,
Attributes attrs)
throws NamingException
- Specified by:
createSubcontext in interface DirContext- Overrides:
createSubcontext in class GenericURLDirContext
- Throws:
NamingException
createSubcontext
public DirContext createSubcontext(Name name,
Attributes attrs)
throws NamingException
- Specified by:
createSubcontext in interface DirContext- Overrides:
createSubcontext in class GenericURLDirContext
- Throws:
NamingException
getSchema
public DirContext getSchema(String name)
throws NamingException
- Specified by:
getSchema in interface DirContext- Overrides:
getSchema in class GenericURLDirContext
- Throws:
NamingException
getSchema
public DirContext getSchema(Name name)
throws NamingException
- Specified by:
getSchema in interface DirContext- Overrides:
getSchema in class GenericURLDirContext
- Throws:
NamingException
getSchemaClassDefinition
public DirContext getSchemaClassDefinition(String name)
throws NamingException
- Specified by:
getSchemaClassDefinition in interface DirContext- Overrides:
getSchemaClassDefinition in class GenericURLDirContext
- Throws:
NamingException
getSchemaClassDefinition
public DirContext getSchemaClassDefinition(Name name)
throws NamingException
- Specified by:
getSchemaClassDefinition in interface DirContext- Overrides:
getSchemaClassDefinition in class GenericURLDirContext
- Throws:
NamingException
search
public NamingEnumeration search(String name,
Attributes matchingAttributes)
throws NamingException
- Specified by:
search in interface DirContext- Overrides:
search in class GenericURLDirContext
- Throws:
NamingException
search
public NamingEnumeration search(Name name,
Attributes matchingAttributes)
throws NamingException
- Specified by:
search in interface DirContext- Overrides:
search in class GenericURLDirContext
- Throws:
NamingException
search
public NamingEnumeration search(String name,
Attributes matchingAttributes,
String[] attributesToReturn)
throws NamingException
- Specified by:
search in interface DirContext- Overrides:
search in class GenericURLDirContext
- Throws:
NamingException
search
public NamingEnumeration search(Name name,
Attributes matchingAttributes,
String[] attributesToReturn)
throws NamingException
- Specified by:
search in interface DirContext- Overrides:
search in class GenericURLDirContext
- Throws:
NamingException
search
public NamingEnumeration search(String name,
String filter,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext- Overrides:
search in class GenericURLDirContext
- Throws:
NamingException
search
public NamingEnumeration search(Name name,
String filter,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext- Overrides:
search in class GenericURLDirContext
- Throws:
NamingException
search
public NamingEnumeration search(String name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext- Overrides:
search in class GenericURLDirContext
- Throws:
NamingException
search
public NamingEnumeration search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext- Overrides:
search in class GenericURLDirContext
- Throws:
NamingException
aicas GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.