Uses of Interface
javax.naming.Name
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 means for dynamically plugging in support for accessing
naming and directory services through the
javax.naming
and related packages.-
Uses of Name in javax.naming
Modifier and TypeClassDescriptionclass
This class represents a composite name -- a sequence of component names spanning multiple namespaces.class
This class represents a compound name -- a name from a hierarchical name space.Modifier and TypeFieldDescriptionprotected Name
CannotProceedException.altName
Contains the name of the resolved object, relative to the contextaltNameCtx
.protected Name
LinkException.linkRemainingName
Contains the remaining link name that has not been resolved yet.protected Name
LinkException.linkResolvedName
Contains the part of the link that has been successfully resolved.protected Name
NamingException.remainingName
Contains the remaining name that has not been resolved yet.protected Name
CannotProceedException.remainingNewName
Contains the remaining unresolved part of the second "name" argument to Context.rename().protected Name
NamingException.resolvedName
Contains the part of the name that has been successfully resolved.Modifier and TypeMethodDescriptionAdds a single component at a specified position within this composite name.Adds a single component to the end of this composite name.Adds a single component at a specified position within this compound name.Adds a single component to the end of this compound name.Adds a single component at a specified position within this name.Adds a single component to the end of this name.Adds the components of a composite name -- in order -- at a specified position within this composite name.Adds the components of a composite name -- in order -- to the end of this composite name.Adds the components of a compound name -- in order -- at a specified position within this compound name.Adds the components of a compound name -- in order -- to the end of this compound name.Adds the components of a name -- in order -- at a specified position within this name.Adds the components of a name -- in order -- to the end of this name.Context.composeName(Name name, Name 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.CannotProceedException.getAltName()
Retrieves thealtName
field of this exception.LinkException.getLinkRemainingName()
Retrieves the remaining unresolved portion of the link name.LinkException.getLinkResolvedName()
Retrieves the leading portion of the link name that was resolved successfully.CompositeName.getPrefix(int posn)
Creates a composite name whose components consist of a prefix of the components in this composite name.CompoundName.getPrefix(int posn)
Creates a compound name whose components consist of a prefix of the components in this compound name.Name.getPrefix(int posn)
Creates a name whose components consist of a prefix of the components of this name.NamingException.getRemainingName()
Retrieves the remaining unresolved portion of the name.CannotProceedException.getRemainingNewName()
Retrieves the "remaining new name" field of this exception, which is used when this exception is thrown during a rename() operation.NamingException.getResolvedName()
Retrieves the leading portion of the name that was resolved successfully.CompositeName.getSuffix(int posn)
Creates a composite name whose components consist of a suffix of the components in this composite name.CompoundName.getSuffix(int posn)
Creates a compound name whose components consist of a suffix of the components in this compound name.Name.getSuffix(int posn)
Creates a name whose components consist of a suffix of the components in this name.Parses a name into its components.Modifier and TypeMethodDescriptionAdds the components of a composite name -- in order -- at a specified position within this composite name.Adds the components of a composite name -- in order -- to the end of this composite name.Adds the components of a compound name -- in order -- at a specified position within this compound name.Adds the components of a compound name -- in order -- to the end of this compound name.Adds the components of a name -- in order -- at a specified position within this name.Adds the components of a name -- in order -- to the end of this name.void
NamingException.appendRemainingName(Name name)
Add components from 'name' as the last components in remaining name.void
Binds a name to an object.void
Context.composeName(Name name, Name 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(Name name)
Creates and binds a new context.InitialContext.createSubcontext(Name name)
void
Context.destroySubcontext(Name name)
Destroys the named context and removes it from the namespace.void
InitialContext.destroySubcontext(Name name)
static <T> T
A static method to retrieve the named object.boolean
Determines whether a composite name is a suffix of this composite name.boolean
Determines whether a compound name is a suffix of this compound name.boolean
Determines whether this name ends with a specified suffix.Context.getNameParser(Name name)
Retrieves the parser associated with the named context.InitialContext.getNameParser(Name name)
protected Context
InitialContext.getURLOrDefaultInitCtx(Name name)
Retrieves a context for resolvingname
.Enumerates the names bound in the named context, along with the class names of 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(Name name)
Retrieves the named object.Context.lookupLink(Name name)
Retrieves the named object, following links except for the terminal atomic component of the name.InitialContext.lookupLink(Name name)
void
Binds a name to an object, overwriting any existing binding.void
void
Binds a new name to the object bound to an old name, and unbinds the old name.void
void
CannotProceedException.setAltName(Name altName)
Sets thealtName
field of this exception.void
LinkException.setLinkRemainingName(Name name)
Sets the remaining link name field of this exception.void
LinkException.setLinkResolvedName(Name name)
Sets the resolved link name field of this exception.void
NamingException.setRemainingName(Name name)
Sets the remaining name field of this exception.void
CannotProceedException.setRemainingNewName(Name newName)
Sets the "remaining new name" field of this exception.void
NamingException.setResolvedName(Name name)
Sets the resolved name field of this exception.boolean
CompositeName.startsWith(Name n)
Determines whether a composite name is a prefix of this composite name.boolean
CompoundName.startsWith(Name n)
Determines whether a compound name is a prefix of this compound name.boolean
Name.startsWith(Name n)
Determines whether this name starts with a specified prefix.void
Unbinds the named object.void
-
Uses of Name in javax.naming.directory
Modifier and TypeMethodDescriptionvoid
DirContext.bind(Name name, Object obj, Attributes attrs)
Binds a name to an object, along with associated attributes.void
InitialDirContext.bind(Name name, Object obj, Attributes attrs)
DirContext.createSubcontext(Name name, Attributes attrs)
Creates and binds a new context, along with associated attributes.InitialDirContext.createSubcontext(Name name, Attributes attrs)
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(Name name)
InitialDirContext.getAttributes(Name name, String[] attrIds)
Retrieves the schema associated with the named object.DirContext.getSchemaClassDefinition(Name name)
Retrieves a context containing the schema objects of the named object's class definitions.InitialDirContext.getSchemaClassDefinition(Name name)
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(Name name, int mod_op, Attributes attrs)
void
InitialDirContext.modifyAttributes(Name name, ModificationItem[] mods)
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(Name name, Object obj, Attributes attrs)
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(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)
-
Uses of Name in javax.naming.event
Modifier and TypeMethodDescriptionvoid
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(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. -
Uses of Name in javax.naming.ldap
Modifier and TypeClassDescriptionclass
This class represents a distinguished name as specified by RFC 2253.Modifier and TypeMethodDescriptionAdds a single component at a specified position within this LDAP name.Adds a single RDN at a specified position within this LDAP name.Adds a single component to the end of this LDAP name.Adds a single RDN to the end of this LDAP name.Adds the RDNs of a name -- in order -- at a specified position within this name.Adds the components of a name -- in order -- at a specified position within this name.Adds the RDNs of a name -- in order -- to the end of this name.Adds the components of a name -- in order -- to the end of this name.LdapName.getPrefix(int posn)
Creates a name whose components consist of a prefix of the components of this LDAP name.LdapName.getSuffix(int posn)
Creates a name whose components consist of a suffix of the components in this LDAP name.Modifier and TypeMethodDescriptionAdds the components of a name -- in order -- at a specified position within this name.Adds the components of a name -- in order -- to the end of this name.boolean
Determines whether this LDAP name ends with a specified LDAP name suffix.boolean
LdapName.startsWith(Name n)
Determines whether this LDAP name starts with a specified LDAP name prefix. -
Uses of Name in javax.naming.spi
Modifier and TypeFieldDescriptionprotected Name
ResolveResult.remainingName
Field containing the remaining name yet to be resolved.Modifier and TypeMethodDescriptionResolveResult.getRemainingName()
Retrieves the remaining unresolved portion of the name.Modifier and TypeMethodDescriptionvoid
ResolveResult.appendRemainingName(Name name)
Adds components to the end of remaining name.static Object
DirectoryManager.getObjectInstance(Object refInfo, Name name, Context nameCtx, Hashtable<?,?> environment, Attributes attrs)
Creates an instance of an object for the specified object, attributes, and environment.DirObjectFactory.getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment, Attributes attrs)
Creates an object using the location or reference information, and attributes specified.static Object
NamingManager.getObjectInstance(Object refInfo, Name name, Context nameCtx, Hashtable<?,?> environment)
Creates an instance of an object for the specified object and environment.ObjectFactory.getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment)
Creates an object using the location or reference information specified.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.Resolver.resolveToClass(Name name, Class<? extends Context> contextType)
Partially resolves a name.void
ResolveResult.setRemainingName(Name name)
Sets the remaining name field of this result to name.ModifierConstructorDescriptionResolveResult(Object robj, Name rname)
Constructs a new instance of ResolveResult consisting of the resolved Object and the remaining name.