Package org.jboss.as.naming
Class InitialContext
java.lang.Object
javax.naming.InitialContext
javax.naming.directory.InitialDirContext
javax.naming.ldap.InitialLdapContext
org.jboss.as.naming.InitialContext
- All Implemented Interfaces:
Context,DirContext,LdapContext
- Author:
- Eduardo Martins, John Bailey
-
Field Summary
Fields inherited from class javax.naming.InitialContext
defaultInitCtx, gotDefault, myPropsFields inherited from interface javax.naming.Context
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_PREFIXESFields inherited from interface javax.naming.directory.DirContext
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTEFields inherited from interface javax.naming.ldap.LdapContext
CONTROL_FACTORIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddUrlContextFactory(String scheme, ObjectFactory factory) Add an ObjectFactory to handle requests for a specific URL scheme.protected Contextprotected ContextgetURLOrDefaultInitCtx(String name) protected ContextgetURLOrDefaultInitCtx(Name name) static StringgetURLScheme(String str) protected voidstatic voidremoveUrlContextFactory(String scheme, ObjectFactory factory) Remove an ObjectFactory from the map of registered ones.Methods inherited from class javax.naming.ldap.InitialLdapContext
extendedOperation, getConnectControls, getRequestControls, getResponseControls, newInstance, reconnect, setRequestControlsMethods inherited from class javax.naming.directory.InitialDirContext
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, searchMethods inherited from class javax.naming.InitialContext
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, unbindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.naming.Context
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, unbindMethods inherited from interface javax.naming.directory.DirContext
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
-
Constructor Details
-
InitialContext
- Throws:
NamingException
-
-
Method Details
-
addUrlContextFactory
Add an ObjectFactory to handle requests for a specific URL scheme.- Parameters:
scheme- The URL scheme to handle.factory- The ObjectFactory that can handle the requests.
-
removeUrlContextFactory
Remove an ObjectFactory from the map of registered ones. To make sure that not anybody can remove an ObjectFactory both the scheme as well as the actual object factory itself need to be supplied. So you can only remove the factory if you have the factory object.- Parameters:
scheme- The URL scheme for which the handler is registered.factory- The factory object associated with the scheme- Throws:
IllegalArgumentException- if the requested scheme/factory combination is not registered.
-
init
- Overrides:
initin classInitialContext- Throws:
NamingException
-
getDefaultInitCtx
- Overrides:
getDefaultInitCtxin classInitialContext- Throws:
NamingException
-
getURLOrDefaultInitCtx
- Overrides:
getURLOrDefaultInitCtxin classInitialContext- Throws:
NamingException
-
getURLOrDefaultInitCtx
- Overrides:
getURLOrDefaultInitCtxin classInitialContext- Throws:
NamingException
-
getURLScheme
-