public class InitialContext extends InitialLdapContext
defaultInitCtx, gotDefault, myPropsCONTROL_FACTORIESADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTEAPPLET, 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<?,?> 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.
|
protected Context |
getDefaultInitCtx() |
protected Context |
getURLOrDefaultInitCtx(Name name) |
protected Context |
getURLOrDefaultInitCtx(String name) |
static String |
getURLScheme(String str) |
protected void |
init(Hashtable<?,?> environment) |
static void |
removeUrlContextFactory(String scheme,
ObjectFactory factory)
Remove an ObjectFactory from the map of registered ones.
|
extendedOperation, getConnectControls, getRequestControls, getResponseControls, newInstance, reconnect, setRequestControlsbind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, searchaddToEnvironment, 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, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, searchaddToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbindpublic InitialContext(Hashtable<?,?> environment) throws NamingException
NamingExceptionpublic 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.protected 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 © 2021 JBoss by Red Hat. All rights reserved.