Modifier and Type | Field and Description |
---|---|
protected static final int | |
protected static final int | |
protected int | |
pack-priv static final CompositeName | |
pack-priv static CompositeName | |
protected static final int |
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
protected static boolean | |
public void | bind(String
the name to bind; may not be empty name, Object the object to bind; possibly null newObj)Implements javax. Binds a name to an object. |
public void | bind(Name
the name to bind; may not be empty name, Object the object to bind; possibly null newObj)Implements javax. Binds a name to an object. |
public String | composeName(String
a name relative to this context name, String the name of this context relative to one of its ancestors prefix)Implements javax. Composes the name of this context with a name relative to this context. |
public Name | composeName(Name
a name relative to this context name, Name the name of this context relative to one of its ancestors prefix)Implements javax. This default implementation simply concatenates the two names. |
public Context | createSubcontext(String
the name of the context to create; may not be empty name)Implements javax. Creates and binds a new context. |
public Context | createSubcontext(Name
the name of the context to create; may not be empty name)Implements javax. Creates and binds a new context. |
public void | destroySubcontext(String
the name of the context to be destroyed; may not be empty name)Implements javax. Destroys the named context and removes it from the namespace. |
public void | destroySubcontext(Name
the name of the context to be destroyed; may not be empty name)Implements javax. Destroys the named context and removes it from the namespace. |
public NameParser | getNameParser(String
the name of the context from which to get the parser name)Implements javax. Retrieves the parser associated with the named context. |
public NameParser | getNameParser(Name
the name of the context from which to get the parser name)Implements javax. Retrieves the parser associated with the named context. |
protected static PartialCompositeContext | |
public NamingEnumeration | list(String
the name of the context to list name)Implements javax. Enumerates the names bound in the named context, along with the class names of objects bound to them. |
public NamingEnumeration | list(Name
the name of the context to list name)Implements javax. Enumerates the names bound in the named context, along with the class names of objects bound to them. |
public NamingEnumeration | listBindings(String
the name of the context to list name)Implements javax. Enumerates the names bound in the named context, along with the objects bound to them. |
public NamingEnumeration | listBindings(Name
the name of the context to list name)Implements javax. Enumerates the names bound in the named context, along with the objects bound to them. |
public Object | lookup(String
the name of the object to look up name)Implements javax. Retrieves the named object. |
public Object | lookup(Name
the name of the object to look up name)Implements javax. Retrieves the named object. |
public Object | lookupLink(String
the name of the object to look up name)Implements javax. Retrieves the named object, following links except for the terminal atomic component of the name. |
public Object | lookupLink(Name
the name of the object to look up name)Implements javax. Retrieves the named object, following links except for the terminal atomic component of the name. |
protected abstract void | |
protected abstract Context | |
protected abstract void | |
protected Hashtable | Returns: The possibly null environment of the context.A cheap way of getting the environment. |
protected abstract NameParser | |
protected abstract NamingEnumeration | |
protected abstract NamingEnumeration | |
protected abstract Object | |
protected abstract Object | |
protected abstract void | |
protected abstract void | |
protected abstract ResolveResult | |
protected abstract void | |
public void | rebind(String
the name to bind; may not be empty name, Object the object to bind; possibly null newObj)Implements javax. Binds a name to an object, overwriting any existing binding. |
public void | rebind(Name
the name to bind; may not be empty name, Object the object to bind; possibly null newObj)Implements javax. Binds a name to an object, overwriting any existing binding. |
public void | rename(String
the name of the existing binding; may not be empty oldName, String the name of the new binding; may not be empty newName)Implements javax. Binds a new name to the object bound to an old name, and unbinds the old name. |
public void | rename(Name
the name of the existing binding; may not be empty oldName, Name the name of the new binding; may not be empty newName)Implements javax. Binds a new name to the object bound to an old name, and unbinds the old name. |
public ResolveResult | resolveToClass(String
the name to resolve name, Class<? extends Context> the type of object to resolve. This should
be a subtype of contextType)Context .Implements javax. Partially resolves a name. |
public ResolveResult | resolveToClass(Name
the name to resolve name, Class<? extends Context> the type of object to resolve. This should
be a subtype of contextType)Context .Implements javax. Partially resolves a name. |
public void | unbind(String
the name to unbind; may not be empty name)Implements javax. Unbinds the named object. |
public void | unbind(Name
the name to unbind; may not be empty name)Implements javax. Unbinds the named object. |
_ATOMIC | back to summary |
---|---|
protected static final int _ATOMIC |
_COMPONENT | back to summary |
---|---|
protected static final int _COMPONENT |
_contextType | back to summary |
---|---|
protected int _contextType |
_EMPTY_NAME | back to summary |
---|---|
pack-priv static final CompositeName _EMPTY_NAME |
_NNS_NAME | back to summary |
---|---|
pack-priv static CompositeName _NNS_NAME |
_PARTIAL | back to summary |
---|---|
protected static final int _PARTIAL |
PartialCompositeContext | back to summary |
---|---|
protected PartialCompositeContext() |
allEmpty | back to summary |
---|---|
protected static boolean allEmpty(Name name) Tests whether a name contains a nonempty component. |
bind | back to summary |
---|---|
public void bind(String name, Object newObj) throws NamingException Implements javax. Doc from javax. Binds a name to an object.
See
|
bind | back to summary |
---|---|
public void bind(Name name, Object newObj) throws NamingException Implements javax. Doc from javax. Binds a name to an object. All intermediate contexts and the target context (that named by all but terminal atomic component of the name) must already exist.
|
composeName | back to summary |
---|---|
public String composeName(String name, String prefix) throws NamingException Implements javax. Doc from javax. Composes the name of this context with a name relative to
this context.
See
|
composeName | back to summary |
---|---|
public Name composeName(Name name, Name prefix) throws NamingException Implements javax. This default implementation simply concatenates the two names. There's one twist when the "java.naming.provider.compose.elideEmpty" environment setting is set to "true": if each name contains a nonempty component, and if 'prefix' ends with an empty component or 'name' starts with one, then one empty component is dropped. For example:
|
createSubcontext | back to summary |
---|---|
public Context createSubcontext(String name) throws NamingException Implements javax. Doc from javax. Creates and binds a new context.
See
|
createSubcontext | back to summary |
---|---|
public Context createSubcontext(Name name) throws NamingException Implements javax. Doc from javax. Creates and binds a new context. Creates a new context with the given name and binds it in the target context (that named by all but terminal atomic component of the name). All intermediate contexts and the target context must already exist.
|
destroySubcontext | back to summary |
---|---|
public void destroySubcontext(String name) throws NamingException Implements javax. Doc from javax. Destroys the named context and removes it from the namespace.
See
|
destroySubcontext | back to summary |
---|---|
public void destroySubcontext(Name name) throws NamingException Implements javax. Doc from javax. Destroys the named context and removes it from the namespace. Any attributes associated with the name are also removed. Intermediate contexts are not destroyed. This method is idempotent.
It succeeds even if the terminal atomic name
is not bound in the target context, but throws
In a federated naming system, a context from one naming system
may be bound to a name in another. One can subsequently
look up and perform operations on the foreign context using a
composite name. However, an attempt destroy the context using
this composite name will fail with
|
getNameParser | back to summary |
---|---|
public NameParser getNameParser(String name) throws NamingException Implements javax. Doc from javax. Retrieves the parser associated with the named context.
See
|
getNameParser | back to summary |
---|---|
public NameParser getNameParser(Name name) throws NamingException Implements javax. Doc from javax. Retrieves the parser associated with the named context.
In a federation of namespaces, different naming systems will
parse names differently. This method allows an application
to get a parser for parsing names into their atomic components
using the naming convention of a particular naming system.
Within any single naming system,
|
getPCContext | back to summary |
---|---|
protected static PartialCompositeContext getPCContext(Continuation cont) throws NamingException Retrieves a PartialCompositeContext for the resolved object in cont. Throws CannotProceedException if not successful. |
list | back to summary |
---|---|
public NamingEnumeration Implements javax. Doc from javax. Enumerates the names bound in the named context, along with the
class names of objects bound to them.
See
|
list | back to summary |
---|---|
public NamingEnumeration Implements javax. Doc from javax. Enumerates the names bound in the named context, along with the class names of objects bound to them. The contents of any subcontexts are not included. If a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined.
|
listBindings | back to summary |
---|---|
public NamingEnumeration Implements javax. Doc from javax. Enumerates the names bound in the named context, along with the
objects bound to them.
See
|
listBindings | back to summary |
---|---|
public NamingEnumeration Implements javax. Doc from javax. Enumerates the names bound in the named context, along with the objects bound to them. The contents of any subcontexts are not included. If a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined.
|
lookup | back to summary |
---|---|
public Object lookup(String name) throws NamingException Implements javax. Doc from javax. Retrieves the named object.
See
|
lookup | back to summary |
---|---|
public Object lookup(Name name) throws NamingException Implements javax. Doc from javax. Retrieves the named object.
If
|
lookupLink | back to summary |
---|---|
public Object lookupLink(String name) throws NamingException Implements javax. Doc from javax. Retrieves the named object, following links except
for the terminal atomic component of the name.
See
|
lookupLink | back to summary |
---|---|
public Object lookupLink(Name name) throws NamingException Implements javax. Doc from javax. Retrieves the named object, following links except
for the terminal atomic component of the name.
If the object bound to
|
p_bind | back to summary |
---|---|
protected abstract void p_bind(Name name, Object obj, Continuation cont) throws NamingException |
p_createSubcontext | back to summary |
---|---|
protected abstract Context p_createSubcontext(Name name, Continuation cont) throws NamingException |
p_destroySubcontext | back to summary |
---|---|
protected abstract void p_destroySubcontext(Name name, Continuation cont) throws NamingException |
p_getEnvironment | back to summary |
---|---|
protected Hashtable A cheap way of getting the environment. Default implementation is NOT cheap because it simply calls getEnvironment(), which most implementations clone before returning. Subclass should ALWAYS override this with the cheapest possible way. The toolkit knows to clone when necessary.
|
p_getNameParser | back to summary |
---|---|
protected abstract NameParser p_getNameParser(Name name, Continuation cont) throws NamingException |
p_list | back to summary |
---|---|
protected abstract NamingEnumeration |
p_listBindings | back to summary |
---|---|
protected abstract NamingEnumeration |
p_lookup | back to summary |
---|---|
protected abstract Object p_lookup(Name name, Continuation cont) throws NamingException |
p_lookupLink | back to summary |
---|---|
protected abstract Object p_lookupLink(Name name, Continuation cont) throws NamingException |
p_rebind | back to summary |
---|---|
protected abstract void p_rebind(Name name, Object obj, Continuation cont) throws NamingException |
p_rename | back to summary |
---|---|
protected abstract void p_rename(Name oldname, Name newname, Continuation cont) throws NamingException |
p_resolveToClass | back to summary |
---|---|
protected abstract ResolveResult p_resolveToClass(Name name, Class<?> contextType, Continuation cont) throws NamingException |
p_unbind | back to summary |
---|---|
protected abstract void p_unbind(Name name, Continuation cont) throws NamingException |
rebind | back to summary |
---|---|
public void rebind(String name, Object newObj) throws NamingException Implements javax. Doc from javax. Binds a name to an object, overwriting any existing binding.
See
|
rebind | back to summary |
---|---|
public void rebind(Name name, Object newObj) throws NamingException Implements javax. Doc from javax. Binds a name to an object, overwriting any existing binding. All intermediate contexts and the target context (that named by all but terminal atomic component of the name) must already exist. If the object is a
|
rename | back to summary |
---|---|
public void rename(String oldName, String newName) throws NamingException Implements javax. Doc from javax. Binds a new name to the object bound to an old name, and unbinds
the old name.
See
|
rename | back to summary |
---|---|
public void rename(Name oldName, Name newName) throws NamingException Implements javax. Doc from javax. Binds a new name to the object bound to an old name, and unbinds the old name. Both names are relative to this context. Any attributes associated with the old name become associated with the new name. Intermediate contexts of the old name are not changed.
|
resolveToClass | back to summary |
---|---|
public ResolveResult resolveToClass(String name, Class<? extends Context> contextType) throws NamingException Implements javax. Doc from javax. Partially resolves a name.
See
|
resolveToClass | back to summary |
---|---|
public ResolveResult resolveToClass(Name name, Class<? extends Context> contextType) throws NamingException Implements javax. Doc from javax. Partially resolves a name. Stops at the first
context that is an instance of a given subtype of
|
unbind | back to summary |
---|---|
public void unbind(String name) throws NamingException Implements javax. Doc from javax. Unbinds the named object.
See
|
unbind | back to summary |
---|---|
public void unbind(Name name) throws NamingException Implements javax. Doc from javax. Unbinds the named object.
Removes the terminal atomic name in This method is idempotent.
It succeeds even if the terminal atomic name
is not bound in the target context, but throws
Any attributes associated with the name are removed. Intermediate contexts are not changed.
|