Package org.wildfly.naming.client
Class WildFlyInitialContext
java.lang.Object
javax.naming.InitialContext
javax.naming.directory.InitialDirContext
javax.naming.ldap.InitialLdapContext
org.wildfly.naming.client.WildFlyInitialContext
- All Implemented Interfaces:
Context,DirContext,LdapContext
An initial context implementation that discovers
NamingProviderFactory implementations for dispatching naming
requests.- Author:
- David M. Lloyd
-
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
ConstructorsConstructorDescriptionConstruct a new instance.WildFlyInitialContext(Hashtable<?, ?> environment) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionaddToEnvironment(String propName, Object propVal) protected Contextprotected voidremoveFromEnvironment(String propName) 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
bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, doLookup, doLookup, getNameParser, getNameParser, getURLOrDefaultInitCtx, getURLOrDefaultInitCtx, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, 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
bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, 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
-
WildFlyInitialContext
Construct a new instance.- Throws:
NamingException- if constructing the initial context fails
-
WildFlyInitialContext
Construct a new instance.- Parameters:
environment- the initial environment- Throws:
NamingException- if constructing the initial context fails
-
-
Method Details
-
init
- Overrides:
initin classInitialContext- Throws:
NamingException
-
getDefaultInitCtx
- Overrides:
getDefaultInitCtxin classInitialContext- Throws:
NamingException
-
getEnvironment
- Specified by:
getEnvironmentin interfaceContext- Overrides:
getEnvironmentin classInitialContext- Throws:
NamingException
-
addToEnvironment
- Specified by:
addToEnvironmentin interfaceContext- Overrides:
addToEnvironmentin classInitialContext- Throws:
NamingException
-
removeFromEnvironment
- Specified by:
removeFromEnvironmentin interfaceContext- Overrides:
removeFromEnvironmentin classInitialContext- Throws:
NamingException
-
getNameInNamespace
- Specified by:
getNameInNamespacein interfaceContext- Overrides:
getNameInNamespacein classInitialContext- Throws:
NamingException
-