public class InitialContext extends NamingContext
OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE
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 |
---|
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, unbind
public 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
NamingContext
lookup
in interface Context
lookup
in class NamingContext
NamingException
public NamingEnumeration<Binding> listBindings(Name name) throws NamingException
NamingContext
listBindings
in interface Context
listBindings
in class NamingContext
NamingException
public NamingEnumeration<NameClassPair> list(Name name) throws NamingException
NamingContext
list
in interface Context
list
in class NamingContext
NamingException
public void bind(Name name, Object object) throws NamingException
NamingContext
bind
in interface Context
bind
in class NamingContext
NamingException
public void rebind(Name name, Object object) throws NamingException
NamingContext
rebind
in interface Context
rebind
in class NamingContext
NamingException
public void unbind(Name name) throws NamingException
NamingContext
unbind
in interface Context
unbind
in class NamingContext
NamingException
public void destroySubcontext(Name name) throws NamingException
NamingContext
destroySubcontext
in interface Context
destroySubcontext
in class NamingContext
NamingException
public Context createSubcontext(Name name) throws NamingException
NamingContext
createSubcontext
in interface Context
createSubcontext
in class NamingContext
NamingException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.