com.sun.jndi.toolkit.ctx
Class PartialCompositeDirContext
java.lang.Object
com.sun.jndi.toolkit.ctx.PartialCompositeContext
com.sun.jndi.toolkit.ctx.ComponentContext
com.sun.jndi.toolkit.ctx.AtomicContext
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext
- All Implemented Interfaces:
- Context, DirContext, Resolver
- Direct Known Subclasses:
- ComponentDirContext
public abstract class PartialCompositeDirContext
- extends AtomicContext
- implements DirContext
| 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 |
protected void |
a_bind(String name,
Object obj,
Continuation cont)
|
protected Context |
a_createSubcontext(String name,
Continuation cont)
|
protected void |
a_destroySubcontext(String name,
Continuation cont)
|
protected NameParser |
a_getNameParser(Continuation cont)
|
protected NamingEnumeration |
a_list(Continuation cont)
|
protected NamingEnumeration |
a_listBindings(Continuation cont)
|
protected Object |
a_lookup(String name,
Continuation cont)
|
protected Object |
a_lookupLink(String name,
Continuation cont)
|
protected void |
a_rebind(String name,
Object obj,
Continuation cont)
|
protected void |
a_rename(String oldname,
Name newname,
Continuation cont)
|
protected void |
a_unbind(String name,
Continuation cont)
|
void |
bind(Name name,
Object obj,
Attributes attrs)
|
void |
bind(String name,
Object obj,
Attributes attrs)
|
protected StringHeadTail |
c_parseComponent(String inputName,
Continuation cont)
Parse 'inputName' into two parts:
head: the first component in this name
tail: the rest of the unused name. |
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 static PartialCompositeDirContext |
getPCDirContext(Continuation cont)
Retrieves a PartialCompositeDirContext for the resolved object in
cont. |
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)
|
protected abstract void |
p_bind(Name name,
Object obj,
Attributes attrs,
Continuation cont)
|
protected abstract DirContext |
p_createSubcontext(Name name,
Attributes attrs,
Continuation cont)
|
protected abstract Attributes |
p_getAttributes(Name name,
String[] attrIds,
Continuation cont)
|
protected abstract DirContext |
p_getSchema(Name name,
Continuation cont)
|
protected abstract DirContext |
p_getSchemaClassDefinition(Name name,
Continuation cont)
|
protected abstract void |
p_modifyAttributes(Name name,
int mod_op,
Attributes attrs,
Continuation cont)
|
protected abstract void |
p_modifyAttributes(Name name,
ModificationItem[] mods,
Continuation cont)
|
protected abstract void |
p_rebind(Name name,
Object obj,
Attributes attrs,
Continuation cont)
|
protected abstract NamingEnumeration |
p_search(Name name,
Attributes matchingAttributes,
String[] attributesToReturn,
Continuation cont)
|
protected abstract NamingEnumeration |
p_search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons,
Continuation cont)
|
protected abstract NamingEnumeration |
p_search(Name name,
String filter,
SearchControls cons,
Continuation cont)
|
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.ctx.AtomicContext |
a_bind_nns, a_createSubcontext_nns, a_destroySubcontext_nns, a_getNameParser_nns, a_list_nns, a_listBindings_nns, a_lookup_nns, a_lookupLink_nns, a_processJunction_nns, a_processJunction_nns, a_rebind_nns, a_rename_nns, a_resolveIntermediate_nns, a_unbind_nns, c_bind_nns, c_bind, c_createSubcontext_nns, c_createSubcontext, c_destroySubcontext_nns, c_destroySubcontext, c_getNameParser_nns, c_getNameParser, c_list_nns, c_list, c_listBindings_nns, c_listBindings, c_lookup_nns, c_lookup, c_lookupLink_nns, c_lookupLink, c_rebind_nns, c_rebind, c_rename_nns, c_rename, c_resolveIntermediate_nns, c_unbind_nns, c_unbind, isEmpty, resolve_to_context, resolve_to_nns_and_continue, resolve_to_penultimate_context_nns, resolve_to_penultimate_context |
| Methods inherited from class com.sun.jndi.toolkit.ctx.ComponentContext |
c_processJunction_nns, isAllEmpty, p_bind, p_createSubcontext, p_destroySubcontext, p_getNameParser, p_list, p_listBindings, p_lookup, p_lookupLink, p_parseComponent, p_rebind, p_rename, p_resolveIntermediate, p_resolveToClass, p_unbind |
| Methods inherited from class com.sun.jndi.toolkit.ctx.PartialCompositeContext |
allEmpty, bind, bind, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getNameParser, getNameParser, getPCContext, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, p_getEnvironment, rebind, rebind, rename, rename, resolveToClass, resolveToClass, unbind, unbind |
| 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 |
PartialCompositeDirContext
protected PartialCompositeDirContext()
p_getAttributes
protected abstract Attributes p_getAttributes(Name name,
String[] attrIds,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_modifyAttributes
protected abstract void p_modifyAttributes(Name name,
int mod_op,
Attributes attrs,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_modifyAttributes
protected abstract void p_modifyAttributes(Name name,
ModificationItem[] mods,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_bind
protected abstract void p_bind(Name name,
Object obj,
Attributes attrs,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_rebind
protected abstract void p_rebind(Name name,
Object obj,
Attributes attrs,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_createSubcontext
protected abstract DirContext p_createSubcontext(Name name,
Attributes attrs,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_search
protected abstract NamingEnumeration p_search(Name name,
Attributes matchingAttributes,
String[] attributesToReturn,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_search
protected abstract NamingEnumeration p_search(Name name,
String filter,
SearchControls cons,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_search
protected abstract NamingEnumeration p_search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_getSchema
protected abstract DirContext p_getSchema(Name name,
Continuation cont)
throws NamingException
- Throws:
NamingException
p_getSchemaClassDefinition
protected abstract DirContext p_getSchemaClassDefinition(Name name,
Continuation cont)
throws NamingException
- 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
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
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
getPCDirContext
protected static PartialCompositeDirContext getPCDirContext(Continuation cont)
throws NamingException
- Retrieves a PartialCompositeDirContext for the resolved object in
cont. Throws CannotProceedException if not successful.
- Throws:
NamingException
c_parseComponent
protected StringHeadTail c_parseComponent(String inputName,
Continuation cont)
throws NamingException
- Description copied from class:
AtomicContext
- Parse 'inputName' into two parts:
head: the first component in this name
tail: the rest of the unused name.
Subclasses should provide an implementation for this method
which parses inputName using its own name syntax.
- Specified by:
c_parseComponent in class AtomicContext
- Throws:
NamingException
a_lookup
protected Object a_lookup(String name,
Continuation cont)
throws NamingException
- Specified by:
a_lookup in class AtomicContext
- Throws:
NamingException
a_lookupLink
protected Object a_lookupLink(String name,
Continuation cont)
throws NamingException
- Specified by:
a_lookupLink in class AtomicContext
- Throws:
NamingException
a_list
protected NamingEnumeration a_list(Continuation cont)
throws NamingException
- Specified by:
a_list in class AtomicContext
- Throws:
NamingException
a_listBindings
protected NamingEnumeration a_listBindings(Continuation cont)
throws NamingException
- Specified by:
a_listBindings in class AtomicContext
- Throws:
NamingException
a_bind
protected void a_bind(String name,
Object obj,
Continuation cont)
throws NamingException
- Specified by:
a_bind in class AtomicContext
- Throws:
NamingException
a_rebind
protected void a_rebind(String name,
Object obj,
Continuation cont)
throws NamingException
- Specified by:
a_rebind in class AtomicContext
- Throws:
NamingException
a_unbind
protected void a_unbind(String name,
Continuation cont)
throws NamingException
- Specified by:
a_unbind in class AtomicContext
- Throws:
NamingException
a_destroySubcontext
protected void a_destroySubcontext(String name,
Continuation cont)
throws NamingException
- Specified by:
a_destroySubcontext in class AtomicContext
- Throws:
NamingException
a_createSubcontext
protected Context a_createSubcontext(String name,
Continuation cont)
throws NamingException
- Specified by:
a_createSubcontext in class AtomicContext
- Throws:
NamingException
a_rename
protected void a_rename(String oldname,
Name newname,
Continuation cont)
throws NamingException
- Specified by:
a_rename in class AtomicContext
- Throws:
NamingException
a_getNameParser
protected NameParser a_getNameParser(Continuation cont)
throws NamingException
- Specified by:
a_getNameParser in class AtomicContext
- Throws:
NamingException
aicas GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.