public class EmptyDirContext extends Object implements DirContext
DirContext
implementation that is not backed by a file system
and behaves as if it has no resources available. This is primarily used in
embedded mode when the web application is configured entirely
programmatically and does not use any static resources from the file system.
EmptyDirContext is implemented as a read only context.ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE
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
Constructor and Description |
---|
EmptyDirContext() |
public Attributes getAttributes(Name name) throws NamingException
getAttributes
in interface DirContext
NamingException
public Attributes getAttributes(String name) throws NamingException
getAttributes
in interface DirContext
NamingException
public Attributes getAttributes(Name name, String[] attrIds) throws NamingException
getAttributes
in interface DirContext
NamingException
public Attributes getAttributes(String name, String[] attrIds) throws NamingException
getAttributes
in interface DirContext
NamingException
public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException
modifyAttributes
in interface DirContext
NamingException
public void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException
modifyAttributes
in interface DirContext
NamingException
public void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException
modifyAttributes
in interface DirContext
NamingException
public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException
modifyAttributes
in interface DirContext
NamingException
public void bind(Name name, Object obj, Attributes attrs) throws NamingException
bind
in interface DirContext
NamingException
public void bind(String name, Object obj, Attributes attrs) throws NamingException
bind
in interface DirContext
NamingException
public void rebind(Name name, Object obj, Attributes attrs) throws NamingException
rebind
in interface DirContext
NamingException
public void rebind(String name, Object obj, Attributes attrs) throws NamingException
rebind
in interface DirContext
NamingException
public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException
createSubcontext
in interface DirContext
NamingException
public DirContext createSubcontext(String name, Attributes attrs) throws NamingException
createSubcontext
in interface DirContext
NamingException
public DirContext getSchema(Name name) throws NamingException
getSchema
in interface DirContext
NamingException
public DirContext getSchema(String name) throws NamingException
getSchema
in interface DirContext
NamingException
public DirContext getSchemaClassDefinition(Name name) throws NamingException
getSchemaClassDefinition
in interface DirContext
NamingException
public DirContext getSchemaClassDefinition(String name) throws NamingException
getSchemaClassDefinition
in interface DirContext
NamingException
public NamingEnumeration<SearchResult> search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException
search
in interface DirContext
NamingException
public NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException
search
in interface DirContext
NamingException
public NamingEnumeration<SearchResult> search(Name name, Attributes matchingAttributes) throws NamingException
search
in interface DirContext
NamingException
public NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes) throws NamingException
search
in interface DirContext
NamingException
public NamingEnumeration<SearchResult> search(Name name, String filter, SearchControls cons) throws NamingException
search
in interface DirContext
NamingException
public NamingEnumeration<SearchResult> search(String name, String filter, SearchControls cons) throws NamingException
search
in interface DirContext
NamingException
public NamingEnumeration<SearchResult> search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException
search
in interface DirContext
NamingException
public NamingEnumeration<SearchResult> search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException
search
in interface DirContext
NamingException
public Object lookup(Name name) throws NamingException
lookup
in interface Context
NamingException
public Object lookup(String name) throws NamingException
lookup
in interface Context
NamingException
public void bind(Name name, Object obj) throws NamingException
bind
in interface Context
NamingException
public void bind(String name, Object obj) throws NamingException
bind
in interface Context
NamingException
public void rebind(Name name, Object obj) throws NamingException
rebind
in interface Context
NamingException
public void rebind(String name, Object obj) throws NamingException
rebind
in interface Context
NamingException
public void unbind(Name name) throws NamingException
unbind
in interface Context
NamingException
public void unbind(String name) throws NamingException
unbind
in interface Context
NamingException
public void rename(Name oldName, Name newName) throws NamingException
rename
in interface Context
NamingException
public void rename(String oldName, String newName) throws NamingException
rename
in interface Context
NamingException
public NamingEnumeration<NameClassPair> list(Name name) throws NamingException
list
in interface Context
NamingException
public NamingEnumeration<NameClassPair> list(String name) throws NamingException
list
in interface Context
NamingException
public NamingEnumeration<Binding> listBindings(Name name) throws NamingException
listBindings
in interface Context
NamingException
public NamingEnumeration<Binding> listBindings(String name) throws NamingException
listBindings
in interface Context
NamingException
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
NamingException
public void destroySubcontext(String name) throws NamingException
destroySubcontext
in interface Context
NamingException
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
NamingException
public Context createSubcontext(String name) throws NamingException
createSubcontext
in interface Context
NamingException
public Object lookupLink(Name name) throws NamingException
lookupLink
in interface Context
NamingException
public Object lookupLink(String name) throws NamingException
lookupLink
in interface Context
NamingException
public NameParser getNameParser(Name name) throws NamingException
getNameParser
in interface Context
NamingException
public NameParser getNameParser(String name) throws NamingException
getNameParser
in interface Context
NamingException
public Name composeName(Name name, Name prefix) throws NamingException
composeName
in interface Context
NamingException
public String composeName(String name, String prefix) throws NamingException
composeName
in interface Context
NamingException
public Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment
in interface Context
NamingException
public Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment
in interface Context
NamingException
public Hashtable<?,?> getEnvironment() throws NamingException
getEnvironment
in interface Context
NamingException
public void close() throws NamingException
close
in interface Context
NamingException
public String getNameInNamespace() throws NamingException
getNameInNamespace
in interface Context
NamingException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.