| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 Attributes 的软件包 | |
|---|---|
| javax.naming.directory | 扩展 javax.naming 包以提供访问目录服务的功能。 | 
| javax.naming.ldap | 提供对 LDAPv3 扩展操作和控件的支持。 | 
| javax.naming.spi | 提供一些方法来动态地插入对通过 javax.naming 和相关包访问命名和目录服务的支持。 | 
| javax.naming.directory 中 Attributes 的使用 | 
|---|
| 实现 Attributes 的 javax.naming.directory 中的类 | |
|---|---|
 class | 
BasicAttributes
此类提供 Attributes 接口的基本实现。  | 
| 返回 Attributes 的 javax.naming.directory 中的方法 | |
|---|---|
 Attributes | 
SearchResult.getAttributes()
检索此搜索结果中的属性。  | 
 Attributes | 
DirContext.getAttributes(Name name)
检索与命名对象关联的所有属性。  | 
 Attributes | 
InitialDirContext.getAttributes(Name name)
 | 
 Attributes | 
DirContext.getAttributes(Name name,
              String[] attrIds)
检索与命名对象关联的选定属性。  | 
 Attributes | 
InitialDirContext.getAttributes(Name name,
              String[] attrIds)
 | 
 Attributes | 
DirContext.getAttributes(String name)
检索所有与命名对象关联的属性。  | 
 Attributes | 
InitialDirContext.getAttributes(String name)
 | 
 Attributes | 
DirContext.getAttributes(String name,
              String[] attrIds)
检索与命名对象关联的选定属性。  | 
 Attributes | 
InitialDirContext.getAttributes(String name,
              String[] attrIds)
 | 
| 参数类型为 Attributes 的 javax.naming.directory 中的方法 | |
|---|---|
 void | 
DirContext.bind(Name name,
     Object obj,
     Attributes attrs)
将名称与关联的属性一起绑定到一个对象。  | 
 void | 
InitialDirContext.bind(Name name,
     Object obj,
     Attributes attrs)
 | 
 void | 
DirContext.bind(String name,
     Object obj,
     Attributes attrs)
将名称与关联的属性一起绑定到一个对象。  | 
 void | 
InitialDirContext.bind(String name,
     Object obj,
     Attributes attrs)
 | 
 DirContext | 
DirContext.createSubcontext(Name name,
                 Attributes attrs)
创建并绑定新的上下文及关联的属性。  | 
 DirContext | 
InitialDirContext.createSubcontext(Name name,
                 Attributes attrs)
 | 
 DirContext | 
DirContext.createSubcontext(String name,
                 Attributes attrs)
创建并绑定新的上下文及关联的属性。  | 
 DirContext | 
InitialDirContext.createSubcontext(String name,
                 Attributes attrs)
 | 
 void | 
DirContext.modifyAttributes(Name name,
                 int mod_op,
                 Attributes attrs)
修改与命名对象关联的属性。  | 
 void | 
InitialDirContext.modifyAttributes(Name name,
                 int mod_op,
                 Attributes attrs)
 | 
 void | 
DirContext.modifyAttributes(String name,
                 int mod_op,
                 Attributes attrs)
修改与命名对象关联的属性。  | 
 void | 
InitialDirContext.modifyAttributes(String name,
                 int mod_op,
                 Attributes attrs)
 | 
 void | 
DirContext.rebind(Name name,
       Object obj,
       Attributes attrs)
将名称与关联的属性一起绑定到一个对象,并重写任何现有绑定。  | 
 void | 
InitialDirContext.rebind(Name name,
       Object obj,
       Attributes attrs)
 | 
 void | 
DirContext.rebind(String name,
       Object obj,
       Attributes attrs)
将名称与关联的属性一起绑定到一个对象,并重写任何现有绑定。  | 
 void | 
InitialDirContext.rebind(String name,
       Object obj,
       Attributes attrs)
 | 
 NamingEnumeration<SearchResult> | 
DirContext.search(Name name,
       Attributes matchingAttributes)
在单个上下文中搜索包含指定属性集的对象。  | 
 NamingEnumeration<SearchResult> | 
InitialDirContext.search(Name name,
       Attributes matchingAttributes)
 | 
 NamingEnumeration<SearchResult> | 
DirContext.search(Name name,
       Attributes matchingAttributes,
       String[] attributesToReturn)
在单个上下文中搜索包含指定属性集的对象,并检索选定的属性。  | 
 NamingEnumeration<SearchResult> | 
InitialDirContext.search(Name name,
       Attributes matchingAttributes,
       String[] attributesToReturn)
 | 
 NamingEnumeration<SearchResult> | 
DirContext.search(String name,
       Attributes matchingAttributes)
在单个上下文中搜索包含指定属性集的对象。  | 
 NamingEnumeration<SearchResult> | 
InitialDirContext.search(String name,
       Attributes matchingAttributes)
 | 
 NamingEnumeration<SearchResult> | 
DirContext.search(String name,
       Attributes matchingAttributes,
       String[] attributesToReturn)
在单个上下文中搜索包含指定属性集的对象,并检索选定的属性。  | 
 NamingEnumeration<SearchResult> | 
InitialDirContext.search(String name,
       Attributes matchingAttributes,
       String[] attributesToReturn)
 | 
 void | 
SearchResult.setAttributes(Attributes attrs)
将此搜索结果的属性设置为 attrs。 | 
| 参数类型为 Attributes 的 javax.naming.directory 中的构造方法 | |
|---|---|
SearchResult(String name,
             Object obj,
             Attributes attrs)
使用结果的名称、绑定对象及其属性构造一个搜索结果。  | 
|
SearchResult(String name,
             Object obj,
             Attributes attrs,
             boolean isRelative)
使用结果的名称、绑定对象、属性以及该名称是否是相对的构造一个搜索结果。  | 
|
SearchResult(String name,
             String className,
             Object obj,
             Attributes attrs)
使用结果的名称、类名称、绑定对象及其属性构造一个搜索结果。  | 
|
SearchResult(String name,
             String className,
             Object obj,
             Attributes attrs,
             boolean isRelative)
使用结果的名称、类名称、绑定对象、属性以及该名称是否是相对的构造一个搜索结果。  | 
|
| javax.naming.ldap 中 Attributes 的使用 | 
|---|
| 返回 Attributes 的 javax.naming.ldap 中的方法 | |
|---|---|
 Attributes | 
Rdn.toAttributes()
检索此 Rdn 中包含的类型/值映射关系的 Attributes 视图。 | 
| 参数类型为 Attributes 的 javax.naming.ldap 中的构造方法 | |
|---|---|
Rdn(Attributes attrSet)
根据给定属性集构造 Rdn。  | 
|
| javax.naming.spi 中 Attributes 的使用 | 
|---|
| 返回 Attributes 的 javax.naming.spi 中的方法 | |
|---|---|
 Attributes | 
DirStateFactory.Result.getAttributes()
检索要绑定的属性。  | 
| 参数类型为 Attributes 的 javax.naming.spi 中的方法 | |
|---|---|
 Object | 
DirObjectFactory.getObjectInstance(Object obj,
                  Name name,
                  Context nameCtx,
                  Hashtable<?,?> environment,
                  Attributes attrs)
使用位置或引用信息以及指定的属性创建一个对象。  | 
static Object | 
DirectoryManager.getObjectInstance(Object refInfo,
                  Name name,
                  Context nameCtx,
                  Hashtable<?,?> environment,
                  Attributes attrs)
为指定对象、属性和环境创建一个对象实例。  | 
 DirStateFactory.Result | 
DirStateFactory.getStateToBind(Object obj,
               Name name,
               Context nameCtx,
               Hashtable<?,?> environment,
               Attributes inAttrs)
在给定要传输的对象和属性的情况下检索用于绑定的对象的状态。  | 
static DirStateFactory.Result | 
DirectoryManager.getStateToBind(Object obj,
               Name name,
               Context nameCtx,
               Hashtable<?,?> environment,
               Attributes attrs)
在给定初始对象及其属性时,检索用于绑定的对象的状态。  | 
| 参数类型为 Attributes 的 javax.naming.spi 中的构造方法 | |
|---|---|
DirStateFactory.Result(Object obj,
                       Attributes outAttrs)
构造一个 Result 实例。  | 
|
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。