public class InitialContext extends InitialLdapContext
defaultInitCtx, gotDefault, myProps
CONTROL_FACTORIES
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 |
---|
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, setRequestControls
bind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, search
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, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, search
addToEnvironment, 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, unbind
public InitialContext(Hashtable<?,?> environment) throws NamingException
NamingException
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.protected void init(Hashtable<?,?> environment) throws NamingException
init
in class InitialContext
NamingException
protected Context getDefaultInitCtx() throws NamingException
getDefaultInitCtx
in class InitialContext
NamingException
protected Context getURLOrDefaultInitCtx(String name) throws NamingException
getURLOrDefaultInitCtx
in class InitialContext
NamingException
protected Context getURLOrDefaultInitCtx(Name name) throws NamingException
getURLOrDefaultInitCtx
in class InitialContext
NamingException
Copyright © 2017 JBoss by Red Hat. All rights reserved.