public class InitialContext extends NamingContext
OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPEAPPLET, 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 |
|---|
InitialContext(Hashtable<String,Object> environment) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addUrlContextFactory(String scheme,
ObjectFactory factory)
Add an ObjectFactory to handle requests for a specific URL scheme.
|
void |
bind(Name name,
Object object) |
Context |
createSubcontext(Name name) |
void |
destroySubcontext(Name name) |
NamingEnumeration<NameClassPair> |
list(Name name) |
NamingEnumeration<Binding> |
listBindings(Name name) |
Object |
lookup(Name name) |
void |
rebind(Name name,
Object object) |
static void |
removeUrlContextFactory(String scheme,
ObjectFactory factory)
Remove an ObjectFactory from the map of registered ones.
|
void |
unbind(Name name) |
addNamingListener, addNamingListener, addToEnvironment, bind, close, composeName, composeName, createSubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, initializeNamingManager, list, listBindings, lookup, lookupLink, lookupLink, rebind, removeFromEnvironment, removeNamingListener, rename, rename, setActiveNamingStore, targetMustExist, unbindpublic static void addUrlContextFactory(String scheme, ObjectFactory factory)
scheme - The URL scheme to handle.factory - The ObjectFactory that can handle the requests.public static void removeUrlContextFactory(String scheme, ObjectFactory factory)
scheme - The URL scheme for which the handler is registered.factory - The factory object associated with the schemeIllegalArgumentException - if the requested scheme/factory combination is not registered.public Object lookup(Name name) throws NamingException
NamingContextlookup in interface Contextlookup in class NamingContextNamingExceptionpublic NamingEnumeration<Binding> listBindings(Name name) throws NamingException
NamingContextlistBindings in interface ContextlistBindings in class NamingContextNamingExceptionpublic NamingEnumeration<NameClassPair> list(Name name) throws NamingException
NamingContextlist in interface Contextlist in class NamingContextNamingExceptionpublic void bind(Name name, Object object) throws NamingException
NamingContextbind in interface Contextbind in class NamingContextNamingExceptionpublic void rebind(Name name, Object object) throws NamingException
NamingContextrebind in interface Contextrebind in class NamingContextNamingExceptionpublic void unbind(Name name) throws NamingException
NamingContextunbind in interface Contextunbind in class NamingContextNamingExceptionpublic void destroySubcontext(Name name) throws NamingException
NamingContextdestroySubcontext in interface ContextdestroySubcontext in class NamingContextNamingExceptionpublic Context createSubcontext(Name name) throws NamingException
NamingContextcreateSubcontext in interface ContextcreateSubcontext in class NamingContextNamingExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.