com.sun.jndi.toolkit.url
Class GenericURLDirContext
java.lang.Object
com.sun.jndi.toolkit.url.GenericURLContext
com.sun.jndi.toolkit.url.GenericURLDirContext
- All Implemented Interfaces:
- Context, DirContext
- Direct Known Subclasses:
- ldapURLContext
public abstract class GenericURLDirContext
- extends GenericURLContext
- implements DirContext
This abstract class is a generic URL DirContext that accepts as the
name argument either a string URL or a Name whose first component
is a URL. It resolves the URL to a target context and then continues
the operation using the remaining name in the target context as if
the first component names a junction.
A subclass must define getRootURLContext()
to process the URL into head/tail pieces. If it wants to control how
URL strings are parsed and compared for the rename() operation, then
it should override getNonRootURLSuffixes() and urlEquals().
| 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,
Attributes attrs)
|
void |
bind(String name,
Object obj,
Attributes attrs)
|
DirContext |
createSubcontext(Name name,
Attributes attrs)
|
DirContext |
createSubcontext(String name,
Attributes attrs)
|
Attributes |
getAttributes(Name name)
|
Attributes |
getAttributes(Name name,
String[] attrIds)
|
Attributes |
getAttributes(String name)
|
Attributes |
getAttributes(String name,
String[] attrIds)
|
protected DirContext |
getContinuationDirContext(Name n)
Gets the context in which to continue the operation. |
DirContext |
getSchema(Name name)
|
DirContext |
getSchema(String name)
|
DirContext |
getSchemaClassDefinition(Name name)
|
DirContext |
getSchemaClassDefinition(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,
Attributes attrs)
|
void |
rebind(String name,
Object obj,
Attributes attrs)
|
|
search(Name name,
Attributes matchingAttributes)
|
|
search(Name name,
Attributes matchingAttributes,
String[] attributesToReturn)
|
|
search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
|
|
search(Name name,
String filter,
SearchControls cons)
|
|
search(String name,
Attributes matchingAttributes)
|
|
search(String name,
Attributes matchingAttributes,
String[] attributesToReturn)
|
|
search(String name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
|
|
search(String name,
String filter,
SearchControls cons)
|
| Methods inherited from class com.sun.jndi.toolkit.url.GenericURLContext |
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getContinuationContext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getRootURLContext, getURLPrefix, getURLSuffix, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind, urlEquals |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.naming.Context |
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
GenericURLDirContext
protected GenericURLDirContext(Hashtable env)
getContinuationDirContext
protected DirContext getContinuationDirContext(Name n)
throws NamingException
- Gets the context in which to continue the operation. This method
is called when this context is asked to process a multicomponent
Name in which the first component is a URL.
Treat the first component like a junction: resolve it and then use
DirectoryManager.getContinuationDirContext() to get the target context in
which to operate on the remainder of the name (n.getSuffix(1)).
Do this in case intermediate contexts are not DirContext.
- Throws:
NamingException
getAttributes
public Attributes getAttributes(String name)
throws NamingException
- Specified by:
getAttributes in interface DirContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(Name name)
throws NamingException
- Specified by:
getAttributes in interface DirContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(String name,
String[] attrIds)
throws NamingException
- Specified by:
getAttributes in interface DirContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(Name name,
String[] attrIds)
throws NamingException
- Specified by:
getAttributes in interface DirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(String name,
int mod_op,
Attributes attrs)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(Name name,
int mod_op,
Attributes attrs)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(String name,
ModificationItem[] mods)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(Name name,
ModificationItem[] mods)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext
- Throws:
NamingException
bind
public void bind(String name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
bind in interface DirContext
- Throws:
NamingException
bind
public void bind(Name name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
bind in interface DirContext
- Throws:
NamingException
rebind
public void rebind(String name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
rebind in interface DirContext
- Throws:
NamingException
rebind
public void rebind(Name name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
rebind in interface DirContext
- Throws:
NamingException
createSubcontext
public DirContext createSubcontext(String name,
Attributes attrs)
throws NamingException
- Specified by:
createSubcontext in interface DirContext
- Throws:
NamingException
createSubcontext
public DirContext createSubcontext(Name name,
Attributes attrs)
throws NamingException
- Specified by:
createSubcontext in interface DirContext
- Throws:
NamingException
getSchema
public DirContext getSchema(String name)
throws NamingException
- Specified by:
getSchema in interface DirContext
- Throws:
NamingException
getSchema
public DirContext getSchema(Name name)
throws NamingException
- Specified by:
getSchema in interface DirContext
- Throws:
NamingException
getSchemaClassDefinition
public DirContext getSchemaClassDefinition(String name)
throws NamingException
- Specified by:
getSchemaClassDefinition in interface DirContext
- Throws:
NamingException
getSchemaClassDefinition
public DirContext getSchemaClassDefinition(Name name)
throws NamingException
- Specified by:
getSchemaClassDefinition in interface DirContext
- Throws:
NamingException
search
public search(String name,
Attributes matchingAttributes)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public search(Name name,
Attributes matchingAttributes)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public search(String name,
Attributes matchingAttributes,
String[] attributesToReturn)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public search(Name name,
Attributes matchingAttributes,
String[] attributesToReturn)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public search(String name,
String filter,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public search(Name name,
String filter,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public search(String name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
aicas GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.