public class WrappedSerialContext extends InitialContext
SerialContext.
This is used by SerialInitContextFactory when NamingManager is set
up with an InitialContextFactoryBuilder. The reason for having this class
is described below:
When there is no builder setup, InitialContext uses a discovery
mechanism to handle URL strings as described in
NamingManager.getURLContext(String, java.util.Hashtable). But,
when a builder is set up, it by-passes this logic and delegates to whatever
Context is returned by
builder.createInitialContextFactory(env).getInitialContext(env).
In our case, this results in SerialContext, which does not know how to handle
all kinds of URL strings. So, we want to returns a WrapperSerialContext
that delegates to appropriate URLContext whenever possible.defaultInitCtx, gotDefault, myPropsAPPLET, 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| Modifier and Type | Method and Description |
|---|---|
protected Context |
getDefaultInitCtx() |
protected Context |
getURLOrDefaultInitCtx(Name name) |
protected Context |
getURLOrDefaultInitCtx(String name) |
protected void |
init(Hashtable environment) |
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, doLookup, doLookup, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbindprotected void init(Hashtable environment) throws NamingException
init in class InitialContextNamingExceptionprotected Context getDefaultInitCtx() throws NamingException
getDefaultInitCtx in class InitialContextNamingExceptionprotected Context getURLOrDefaultInitCtx(String name) throws NamingException
getURLOrDefaultInitCtx in class InitialContextNamingExceptionprotected Context getURLOrDefaultInitCtx(Name name) throws NamingException
getURLOrDefaultInitCtx in class InitialContextNamingExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.