API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming.directory. DirContext View Source
Author(s)
Rosanna Lee
Scott Seligman
R. Vasudevan
Since
1.3
Version
1.13 05/11/17
Serial
Hierarchy
 Context
      DirContext
Subinterfaces
Description
public interface DirContext
  The directory service interface, containing methods for examining and updating attributes associated with objects, and for searching the directory.
See also:    Context
Methods
Hide/Show inherited methods
public void bind (Name name, Object obj, Attributes attrs) throws NamingException
  Binds a name to an object, along with associated attributes.
public void bind (String name, Object obj, Attributes attrs) throws NamingException
  Binds a name to an object, along with associated attributes.
public DirContext createSubcontext (Name name, Attributes attrs) throws NamingException
  Creates and binds a new context, along with associated attributes.
public DirContext createSubcontext (String name, Attributes attrs) throws NamingException
  Creates and binds a new context, along with associated attributes.
public Attributes getAttributes (Name name) throws NamingException
  Retrieves all of the attributes associated with a named object.
public Attributes getAttributes (Name name, String attrIds) throws NamingException
  Retrieves selected attributes associated with a named object.
public Attributes getAttributes (String name) throws NamingException
  Retrieves all of the attributes associated with a named object.
public Attributes getAttributes (String name, String attrIds) throws NamingException
  Retrieves selected attributes associated with a named object.
public DirContext getSchema (Name name) throws NamingException
  Retrieves the schema associated with the named object.
public DirContext getSchema (String name) throws NamingException
  Retrieves the schema associated with the named object.
public DirContext getSchemaClassDefinition (Name name) throws NamingException
  Retrieves a context containing the schema objects of the named object's class definitions.
public DirContext getSchemaClassDefinition (String name) throws NamingException
  Retrieves a context containing the schema objects of the named object's class definitions.
public void modifyAttributes (Name name, int mod_op, Attributes attrs) throws NamingException
  Modifies the attributes associated with a named object.
public void modifyAttributes (Name name, ModificationItem mods) throws NamingException
  Modifies the attributes associated with a named object using an ordered list of modifications.
public void modifyAttributes (String name, int mod_op, Attributes attrs) throws NamingException
  Modifies the attributes associated with a named object.
public void modifyAttributes (String name, ModificationItem mods) throws NamingException
  Modifies the attributes associated with a named object using an ordered list of modifications.
public void rebind (Name name, Object obj, Attributes attrs) throws NamingException
  Binds a name to an object, along with associated attributes, overwriting any existing binding.
public void rebind (String name, Object obj, Attributes attrs) throws NamingException
  Binds a name to an object, along with associated attributes, overwriting any existing binding.
public NamingEnumeration<SearchResult> search (Name name, Attributes matchingAttributes) throws NamingException
  Searches in a single context for objects that contain a specified set of attributes.
public NamingEnumeration<SearchResult> search (Name name, Attributes matchingAttributes, String attributesToReturn) throws NamingException
  Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.
public NamingEnumeration<SearchResult> search (Name name, String filterExpr, Object filterArgs, SearchControls cons) throws NamingException
  Searches in the named context or object for entries that satisfy the given search filter.
public NamingEnumeration<SearchResult> search (Name name, String filter, SearchControls cons) throws NamingException
  Searches in the named context or object for entries that satisfy the given search filter.
public NamingEnumeration<SearchResult> search (String name, Attributes matchingAttributes) throws NamingException
  Searches in a single context for objects that contain a specified set of attributes.
public NamingEnumeration<SearchResult> search (String name, Attributes matchingAttributes, String attributesToReturn) throws NamingException
  Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.
public NamingEnumeration<SearchResult> search (String name, String filterExpr, Object filterArgs, SearchControls cons) throws NamingException
  Searches in the named context or object for entries that satisfy the given search filter.
public NamingEnumeration<SearchResult> search (String name, String filter, SearchControls cons) throws NamingException
  Searches in the named context or object for entries that satisfy the given search filter.
Fields
Hide/Show inherited fields
publicfinalstatic int ADD_ATTRIBUTE = "1"
  This constant specifies to add an attribute with the specified values.
publicfinalstatic String APPLET = "java.naming.applet" [Inherited From Context]
  Constant that holds the name of the environment property for specifying an applet for the initial context constructor to use when searching for other properties.
publicfinalstatic String AUTHORITATIVE = "java.naming.authoritative" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the authoritativeness of the service requested.
publicfinalstatic String BATCHSIZE = "java.naming.batchsize" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the batch size to use when returning data via the service's protocol.
publicfinalstatic String DNS_URL = "java.naming.dns.url" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the DNS host and domain names to use for the JNDI URL context (for example, "dns://somehost/wiz.com").
publicfinalstatic String INITIAL_CONTEXT_FACTORY = "java.naming.factory.initial" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the initial context factory to use.
publicfinalstatic String LANGUAGE = "java.naming.language" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the preferred language to use with the service.
publicfinalstatic String OBJECT_FACTORIES = "java.naming.factory.object" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the list of object factories to use.
publicfinalstatic String PROVIDER_URL = "java.naming.provider.url" [Inherited From Context]
  Constant that holds the name of the environment property for specifying configuration information for the service provider to use.
publicfinalstatic String REFERRAL = "java.naming.referral" [Inherited From Context]
  Constant that holds the name of the environment property for specifying how referrals encountered by the service provider are to be processed.
publicfinalstatic int REMOVE_ATTRIBUTE = "3"
  This constant specifies to delete the specified attribute values from the attribute.
publicfinalstatic int REPLACE_ATTRIBUTE = "2"
  This constant specifies to replace an attribute with specified values.
publicfinalstatic String SECURITY_AUTHENTICATION = "java.naming.security.authentication" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the security level to use.
publicfinalstatic String SECURITY_CREDENTIALS = "java.naming.security.credentials" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the credentials of the principal for authenticating the caller to the service.
publicfinalstatic String SECURITY_PRINCIPAL = "java.naming.security.principal" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the identity of the principal for authenticating the caller to the service.
publicfinalstatic String SECURITY_PROTOCOL = "java.naming.security.protocol" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the security protocol to use.
publicfinalstatic String STATE_FACTORIES = "java.naming.factory.state" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the list of state factories to use.
publicfinalstatic String URL_PKG_PREFIXES = "java.naming.factory.url.pkgs" [Inherited From Context]
  Constant that holds the name of the environment property for specifying the list of package prefixes to use when loading in URL context factories.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar