| org.apache.naming.core.BaseDirContext org.apache.naming.modules.memory.MemoryNamingContext
MemoryNamingContext | public class MemoryNamingContext extends BaseDirContext (Code) | | In-memory context.
IMPLEMENTATION. We use NamingEntry stored in a tree of hashtables.
author: Remy Maucherat author: Costin Manolache |
bind | public void bind(Name name, Object obj, Attributes attrs, boolean rebind) throws NamingException(Code) | | 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.
Parameters: name - the name to bind; may not be empty Parameters: object - the object to bind; possibly null Parameters: rebind - if true, then perform a rebind (ie, overwrite) exception: NameAlreadyBoundException - if name is already bound exception: InvalidAttributesException - if object did not supply all mandatory attributes exception: NamingException - if a naming exception is encountered |
createSubcontext | public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException(Code) | | 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.
Parameters: name - the name of the context to create; may not be empty the newly created context exception: NameAlreadyBoundException - if name is already bound exception: InvalidAttributesException - if creation of the subcontext requires specification of mandatory attributes exception: NamingException - if a naming exception is encountered |
list | public NamingEnumeration list(Name name) throws NamingException(Code) | | 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.
Parameters: name - the name of the context to list an enumeration of the names and class names of the bindings in this context. Each element of the enumeration is of type NameClassPair. exception: NamingException - if a naming exception is encountered |
listBindings | public NamingEnumeration listBindings(Name name) throws NamingException(Code) | | 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.
Parameters: name - the name of the context to list an enumeration of the bindings in this context. Each element of the enumeration is of type Binding. exception: NamingException - if a naming exception is encountered |
unbind | public void unbind(Name name, boolean isContext) throws NamingException(Code) | | Unbinds the named object. Removes the terminal atomic name in name
from the target context--that named by all but the terminal atomic
part of name.
This method is idempotent. It succeeds even if the terminal atomic
name is not bound in the target context, but throws
NameNotFoundException if any of the intermediate contexts do not exist.
Parameters: name - the name to bind; may not be empty exception: NameNotFoundException - if an intermediate context does not exist exception: NamingException - if a naming exception is encountered |
Methods inherited from org.apache.naming.core.BaseDirContext | public void bind(Name name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) public void bind(String name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) public DirContext createSubcontext(String name, Attributes attrs) throws NamingException(Code)(Java Doc) public Attributes getAttributes(Name name) throws NamingException(Code)(Java Doc) public Attributes getAttributes(String name) throws NamingException(Code)(Java Doc) public Attributes getAttributes(String name, String[] attrIds) throws NamingException(Code)(Java Doc) public Attributes getAttributes(Name name, String[] attrIds) throws NamingException(Code)(Java Doc) public DirContext getSchema(Name name) throws NamingException(Code)(Java Doc) public DirContext getSchema(String name) throws NamingException(Code)(Java Doc) public DirContext getSchemaClassDefinition(Name name) throws NamingException(Code)(Java Doc) public DirContext getSchemaClassDefinition(String name) throws NamingException(Code)(Java Doc) public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException(Code)(Java Doc) public void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException(Code)(Java Doc) public void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException(Code)(Java Doc) public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException(Code)(Java Doc) public void rebind(Name name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) public void rebind(String name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) public NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException(Code)(Java Doc) public NamingEnumeration search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException(Code)(Java Doc) public NamingEnumeration search(Name name, Attributes matchingAttributes) throws NamingException(Code)(Java Doc) public NamingEnumeration search(String name, Attributes matchingAttributes) throws NamingException(Code)(Java Doc) public NamingEnumeration search(Name name, String filter, SearchControls cons) throws NamingException(Code)(Java Doc) public NamingEnumeration search(String name, String filter, SearchControls cons) throws NamingException(Code)(Java Doc) public NamingEnumeration search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException(Code)(Java Doc) public NamingEnumeration search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException(Code)(Java Doc)
|
|
|