Uses of Class
javax.naming.NamingException
Package
Description
Provides the classes and interfaces for accessing naming services.
Extends the
javax.naming
package to provide functionality
for accessing directory services.Provides support for event notification when accessing naming and
directory services.
Provides support for LDAPv3 extended operations and controls.
Provides the Service Provider Interface for DNS lookups when
performing LDAP operations.
Provides the means for dynamically plugging in support for accessing
naming and directory services through the
javax.naming
and related packages.-
Uses of NamingException in javax.naming
Modifier and TypeClassDescriptionclass
This exception is thrown when an authentication error occurs while accessing the naming or directory service.class
This exception is thrown when the particular flavor of authentication requested is not supported.class
This exception is thrown to indicate that the operation reached a point in the name where the operation cannot proceed any further.class
This exception is thrown when the client is unable to communicate with the directory or naming service.class
This exception is thrown when there is a configuration problem.class
This exception is thrown when attempting to destroy a context that is not empty.class
This exception is thrown when resources are not available to complete the requested operation.class
This exception is thrown when the naming operation being invoked has been interrupted.class
This exception indicates that the name being specified does not conform to the naming syntax of a naming system.class
This exception is thrown when a method terminates abnormally due to a user or system specified limit.class
This exception is used to describe problems encountered while resolving links.class
This exception is thrown when a loop was detected while attempting to resolve a link, or an implementation specific limit on link counts has been reached.class
This exception is thrown when a malformed link was encountered while resolving or constructing a link.class
This exception is thrown by methods to indicate that a binding cannot be added because the name is already bound to another object.class
This exception is thrown when a component of the name cannot be resolved because it is not bound.class
This is the superclass of security-related exceptions thrown by operations in the Context and DirContext interfaces.class
This exception is thrown when no initial context implementation can be created.class
This exception is thrown when attempting to perform an operation for which the client has no permission.class
This exception is thrown when a naming operation proceeds to a point where a context is required to continue the operation, but the resolved object is not a context.class
This exception is thrown when a context implementation does not support the operation being invoked.class
This exception is thrown to indicate that the result being returned or returned so far is partial, and that the operation cannot be completed.class
This abstract class is used to represent a referral exception, which is generated in response to a referral such as that returned by LDAP v3 servers.class
This exception is thrown when attempting to communicate with a directory or naming service and that service is not available.class
This exception is thrown when a method produces a result that exceeds a size-related limit.class
This exception is thrown when a method does not terminate within the specified time limit.Modifier and TypeMethodDescriptionContext.addToEnvironment
(String propName, Object propVal) Adds a new environment property to the environment of this context.InitialContext.addToEnvironment
(String propName, Object propVal) void
Binds a name to an object.void
Binds a name to an object.void
void
void
Context.close()
Closes this context.void
InitialContext.close()
void
NamingEnumeration.close()
Closes this enumeration.Context.composeName
(String name, String prefix) Composes the name of this context with a name relative to this context.Context.composeName
(Name name, Name prefix) Composes the name of this context with a name relative to this context.InitialContext.composeName
(String name, String prefix) Composes the name of this context with a name relative to this context.InitialContext.composeName
(Name name, Name prefix) Composes the name of this context with a name relative to this context.Context.createSubcontext
(String name) Creates and binds a new context.Context.createSubcontext
(Name name) Creates and binds a new context.InitialContext.createSubcontext
(String name) InitialContext.createSubcontext
(Name name) void
Context.destroySubcontext
(String name) Destroys the named context and removes it from the namespace.void
Context.destroySubcontext
(Name name) Destroys the named context and removes it from the namespace.void
InitialContext.destroySubcontext
(String name) void
InitialContext.destroySubcontext
(Name name) static <T> T
A static method to retrieve the named object.static <T> T
A static method to retrieve the named object.protected Context
InitialContext.getDefaultInitCtx()
Retrieves the initial context by callingNamingManager.getInitialContext()
and cache it in defaultInitCtx.Hashtable
<?, ?> Context.getEnvironment()
Retrieves the environment in effect for this context.Hashtable
<?, ?> InitialContext.getEnvironment()
LinkRef.getLinkName()
Retrieves the name of this link.Context.getNameInNamespace()
Retrieves the full name of this context within its own namespace.InitialContext.getNameInNamespace()
Context.getNameParser
(String name) Retrieves the parser associated with the named context.Context.getNameParser
(Name name) Retrieves the parser associated with the named context.InitialContext.getNameParser
(String name) InitialContext.getNameParser
(Name name) Referenceable.getReference()
Retrieves the Reference of this object.abstract Context
ReferralException.getReferralContext()
Retrieves the context at which to continue the method.abstract Context
ReferralException.getReferralContext
(Hashtable<?, ?> env) Retrieves the context at which to continue the method using environment properties.protected Context
InitialContext.getURLOrDefaultInitCtx
(String name) Retrieves a context for resolving the string namename
.protected Context
InitialContext.getURLOrDefaultInitCtx
(Name name) Retrieves a context for resolvingname
.boolean
NamingEnumeration.hasMore()
Determines whether there are any more elements in the enumeration.protected void
Initializes the initial context using the supplied environment.Enumerates the names bound in the named context, along with the class names of objects bound to them.Enumerates the names bound in the named context, along with the class names of objects bound to them.Context.listBindings
(String name) Enumerates the names bound in the named context, along with the objects bound to them.Context.listBindings
(Name name) Enumerates the names bound in the named context, along with the objects bound to them.InitialContext.listBindings
(String name) InitialContext.listBindings
(Name name) Retrieves the named object.Retrieves the named object.Context.lookupLink
(String name) Retrieves the named object, following links except for the terminal atomic component of the name.Context.lookupLink
(Name name) Retrieves the named object, following links except for the terminal atomic component of the name.InitialContext.lookupLink
(String name) InitialContext.lookupLink
(Name name) NamingEnumeration.next()
Retrieves the next element in the enumeration.Parses a name into its components.void
Binds a name to an object, overwriting any existing binding.void
Binds a name to an object, overwriting any existing binding.void
void
Context.removeFromEnvironment
(String propName) Removes an environment property from the environment of this context.InitialContext.removeFromEnvironment
(String propName) void
Binds a new name to the object bound to an old name, and unbinds the old name.void
Binds a new name to the object bound to an old name, and unbinds the old name.void
void
void
Unbinds the named object.void
Unbinds the named object.void
void
ModifierConstructorDescriptionConstructs an initial context.protected
InitialContext
(boolean lazy) Constructs an initial context with the option of not initializing it.InitialContext
(Hashtable<?, ?> environment) Constructs an initial context using the supplied environment. -
Uses of NamingException in javax.naming.directory
Modifier and TypeClassDescriptionclass
This exception is thrown when an operation attempts to add an attribute that already exists.class
This exception is thrown when an attempt is made to add, or remove, or modify an attribute, its identifier, or its values that conflicts with the attribute's (schema) definition or the attribute's state.class
This exception is thrown when an attempt is made to add to create an attribute with an invalid attribute identifier.class
This exception is thrown when an attempt is made to add or modify an attribute set that has been specified incompletely or incorrectly.class
This class is thrown when an attempt is made to add to an attribute a value that conflicts with the attribute's schema definition.class
This exception is thrown when the specification of the SearchControls for a search operation is invalid.class
This exception is thrown when the specification of a search filter is invalid.class
This exception is thrown when attempting to access an attribute that does not exist.class
This exception is thrown when a method in some ways violates the schema.Modifier and TypeMethodDescriptionvoid
DirContext.bind
(String name, Object obj, Attributes attrs) Binds a name to an object, along with associated attributes.void
DirContext.bind
(Name name, Object obj, Attributes attrs) Binds a name to an object, along with associated attributes.void
InitialDirContext.bind
(String name, Object obj, Attributes attrs) void
InitialDirContext.bind
(Name name, Object obj, Attributes attrs) DirContext.createSubcontext
(String name, Attributes attrs) Creates and binds a new context, along with associated attributes.DirContext.createSubcontext
(Name name, Attributes attrs) Creates and binds a new context, along with associated attributes.InitialDirContext.createSubcontext
(String name, Attributes attrs) InitialDirContext.createSubcontext
(Name name, Attributes attrs) Attribute.get()
Retrieves one of this attribute's values.Attribute.get
(int ix) Retrieves the attribute value from the ordered list of attribute values.BasicAttribute.get()
Retrieves one of this attribute's values.BasicAttribute.get
(int ix) Attribute.getAll()
Retrieves an enumeration of the attribute's values.BasicAttribute.getAll()
Retrieves an enumeration of this attribute's values.Attribute.getAttributeDefinition()
Retrieves the attribute's schema definition.BasicAttribute.getAttributeDefinition()
Retrieves this attribute's schema definition.DirContext.getAttributes
(String name) Retrieves all of the attributes associated with a named object.DirContext.getAttributes
(String name, String[] attrIds) Retrieves selected attributes associated with a named object.DirContext.getAttributes
(Name name) Retrieves all of the attributes associated with a named object.DirContext.getAttributes
(Name name, String[] attrIds) Retrieves selected attributes associated with a named object.InitialDirContext.getAttributes
(String name) InitialDirContext.getAttributes
(String name, String[] attrIds) InitialDirContext.getAttributes
(Name name) InitialDirContext.getAttributes
(Name name, String[] attrIds) Attribute.getAttributeSyntaxDefinition()
Retrieves the syntax definition associated with the attribute.BasicAttribute.getAttributeSyntaxDefinition()
Retrieves the syntax definition associated with this attribute.Retrieves the schema associated with the named object.Retrieves the schema associated with the named object.DirContext.getSchemaClassDefinition
(String name) Retrieves a context containing the schema objects of the named object's class definitions.DirContext.getSchemaClassDefinition
(Name name) Retrieves a context containing the schema objects of the named object's class definitions.InitialDirContext.getSchemaClassDefinition
(String name) InitialDirContext.getSchemaClassDefinition
(Name name) void
DirContext.modifyAttributes
(String name, int mod_op, Attributes attrs) Modifies the attributes associated with a named object.void
DirContext.modifyAttributes
(String name, ModificationItem[] mods) Modifies the attributes associated with a named object using an ordered list of modifications.void
DirContext.modifyAttributes
(Name name, int mod_op, Attributes attrs) Modifies the attributes associated with a named object.void
DirContext.modifyAttributes
(Name name, ModificationItem[] mods) Modifies the attributes associated with a named object using an ordered list of modifications.void
InitialDirContext.modifyAttributes
(String name, int mod_op, Attributes attrs) void
InitialDirContext.modifyAttributes
(String name, ModificationItem[] mods) void
InitialDirContext.modifyAttributes
(Name name, int mod_op, Attributes attrs) void
InitialDirContext.modifyAttributes
(Name name, ModificationItem[] mods) void
DirContext.rebind
(String name, Object obj, Attributes attrs) Binds a name to an object, along with associated attributes, overwriting any existing binding.void
DirContext.rebind
(Name name, Object obj, Attributes attrs) Binds a name to an object, along with associated attributes, overwriting any existing binding.void
InitialDirContext.rebind
(String name, Object obj, Attributes attrs) void
InitialDirContext.rebind
(Name name, Object obj, Attributes attrs) DirContext.search
(String name, String filterExpr, Object[] filterArgs, SearchControls cons) Searches in the named context or object for entries that satisfy the given search filter.DirContext.search
(String name, String filter, SearchControls cons) Searches in the named context or object for entries that satisfy the given search filter.DirContext.search
(String name, Attributes matchingAttributes) Searches in a single context for objects that contain a specified set of attributes.DirContext.search
(String name, Attributes matchingAttributes, String[] attributesToReturn) Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.DirContext.search
(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) Searches in the named context or object for entries that satisfy the given search filter.DirContext.search
(Name name, String filter, SearchControls cons) Searches in the named context or object for entries that satisfy the given search filter.DirContext.search
(Name name, Attributes matchingAttributes) Searches in a single context for objects that contain a specified set of attributes.DirContext.search
(Name name, Attributes matchingAttributes, String[] attributesToReturn) Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.InitialDirContext.search
(String name, String filterExpr, Object[] filterArgs, SearchControls cons) InitialDirContext.search
(String name, String filter, SearchControls cons) InitialDirContext.search
(String name, Attributes matchingAttributes) InitialDirContext.search
(String name, Attributes matchingAttributes, String[] attributesToReturn) InitialDirContext.search
(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) InitialDirContext.search
(Name name, String filter, SearchControls cons) InitialDirContext.search
(Name name, Attributes matchingAttributes) InitialDirContext.search
(Name name, Attributes matchingAttributes, String[] attributesToReturn) ModifierConstructorDescriptionConstructs an initial DirContext.protected
InitialDirContext
(boolean lazy) Constructs an initial DirContext with the option of not initializing it.InitialDirContext
(Hashtable<?, ?> environment) Constructs an initial DirContext using the supplied environment. -
Uses of NamingException in javax.naming.event
Modifier and TypeMethodDescriptionNamingExceptionEvent.getException()
Retrieves the exception that was thrown.Modifier and TypeMethodDescriptionvoid
EventContext.addNamingListener
(String target, int scope, NamingListener l) Adds a listener for receiving naming events fired when the object named by the string target name and scope changes.void
EventContext.addNamingListener
(Name target, int scope, NamingListener l) Adds a listener for receiving naming events fired when the object(s) identified by a target and scope changes.void
EventDirContext.addNamingListener
(String target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l) Adds a listener for receiving naming events fired when objects identified by the search filterfilter
and filter arguments at the object named by the string target name are modified.void
EventDirContext.addNamingListener
(String target, String filter, SearchControls ctls, NamingListener l) Adds a listener for receiving naming events fired when objects identified by the search filterfilter
at the object named by the string target name are modified.void
EventDirContext.addNamingListener
(Name target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l) Adds a listener for receiving naming events fired when objects identified by the search filterfilter
and filter arguments at the object named by the target are modified.void
EventDirContext.addNamingListener
(Name target, String filter, SearchControls ctls, NamingListener l) Adds a listener for receiving naming events fired when objects identified by the search filterfilter
at the object named by target are modified.void
EventContext.removeNamingListener
(NamingListener l) Removes a listener from receiving naming events fired by thisEventContext
.boolean
EventContext.targetMustExist()
Determines whether a listener can register interest in a target that does not exist.ModifierConstructorDescriptionNamingExceptionEvent
(EventContext source, NamingException exc) Constructs an instance ofNamingExceptionEvent
using the context in which theNamingException
was thrown and the exception that was thrown. -
Uses of NamingException in javax.naming.ldap
Modifier and TypeClassDescriptionclass
This abstract class is used to represent an LDAP referral exception.Modifier and TypeMethodDescriptionSortResponseControl.getException()
Retrieves the NamingException appropriate for the result code.UnsolicitedNotification.getException()
Retrieves the exception as constructed using information sent by the server.Modifier and TypeMethodDescriptionExtendedRequest.createExtendedResponse
(String id, byte[] berValue, int offset, int length) Creates the response object that corresponds to this request.StartTlsRequest.createExtendedResponse
(String id, byte[] berValue, int offset, int length) Creates an extended response object that corresponds to the LDAP StartTLS extended request.InitialLdapContext.extendedOperation
(ExtendedRequest request) LdapContext.extendedOperation
(ExtendedRequest request) Performs an extended operation.Control[]
InitialLdapContext.getConnectControls()
Control[]
LdapContext.getConnectControls()
Retrieves the connection request controls in effect for this context.abstract Control
ControlFactory.getControlInstance
(Control ctl) Creates a control using this control factory.static Control
ControlFactory.getControlInstance
(Control ctl, Context ctx, Hashtable<?, ?> env) Creates a control using known control factories.Control[]
HasControls.getControls()
Retrieves an array ofControl
s from the object that implements this interface.abstract Context
LdapReferralException.getReferralContext()
Retrieves the context at which to continue the method using the context's environment and no controls.abstract Context
LdapReferralException.getReferralContext
(Hashtable<?, ?> env) Retrieves the context at which to continue the method using environment properties and no controls.abstract Context
LdapReferralException.getReferralContext
(Hashtable<?, ?> env, Control[] reqCtls) Retrieves the context at which to continue the method using request controls and environment properties.Control[]
InitialLdapContext.getRequestControls()
Control[]
LdapContext.getRequestControls()
Retrieves the request controls in effect for this context.Control[]
InitialLdapContext.getResponseControls()
Control[]
LdapContext.getResponseControls()
Retrieves the response controls produced as a result of the last method invoked on this context.InitialLdapContext.newInstance
(Control[] reqCtls) LdapContext.newInstance
(Control[] requestControls) Creates a new instance of this context initialized using request controls.void
void
Reconnects to the LDAP server using the supplied controls and this context's environment.void
InitialLdapContext.setRequestControls
(Control[] requestControls) void
LdapContext.setRequestControls
(Control[] requestControls) Sets the request controls for methods subsequently invoked on this context.ModifierConstructorDescriptionConstructs an initial context using no environment properties or connection request controls.InitialLdapContext
(Hashtable<?, ?> environment, Control[] connCtls) Constructs an initial context using environment properties and connection request controls. -
Uses of NamingException in javax.naming.ldap.spi
Modifier and TypeMethodDescriptionabstract Optional
<LdapDnsProviderResult> LdapDnsProvider.lookupEndpoints
(String url, Map<?, ?> env) Lookup the endpoints and domain name for the givenContext
provider URL
and environment. -
Uses of NamingException in javax.naming.spi
Modifier and TypeMethodDescriptionInitialContextFactoryBuilder.createInitialContextFactory
(Hashtable<?, ?> environment) Creates an initial context factory using the specified environment.ObjectFactoryBuilder.createObjectFactory
(Object obj, Hashtable<?, ?> environment) Creates a new object factory using the environment supplied.static Context
NamingManager.getContinuationContext
(CannotProceedException cpe) Creates a context in which to continue a context operation.static DirContext
DirectoryManager.getContinuationDirContext
(CannotProceedException cpe) Creates a context in which to continue aDirContext
operation.InitialContextFactory.getInitialContext
(Hashtable<?, ?> environment) Creates an Initial Context for beginning name resolution.static Context
NamingManager.getInitialContext
(Hashtable<?, ?> env) Creates an initial context using the specified environment properties.static DirStateFactory.Result
DirectoryManager.getStateToBind
(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs) Retrieves the state of an object for binding when given the original object and its attributes.DirStateFactory.getStateToBind
(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes inAttrs) Retrieves the state of an object for binding given the object and attributes to be transformed.static Object
NamingManager.getStateToBind
(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) Retrieves the state of an object for binding.StateFactory.getStateToBind
(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) Retrieves the state of an object for binding.static Context
NamingManager.getURLContext
(String scheme, Hashtable<?, ?> environment) Creates a context for the given URL scheme id.Resolver.resolveToClass
(String name, Class<? extends Context> contextType) Partially resolves a name.Resolver.resolveToClass
(Name name, Class<? extends Context> contextType) Partially resolves a name.static void
NamingManager.setInitialContextFactoryBuilder
(InitialContextFactoryBuilder builder) Sets the InitialContextFactory builder to be builder.static void
NamingManager.setObjectFactoryBuilder
(ObjectFactoryBuilder builder) The ObjectFactoryBuilder determines the policy used when trying to load object factories.