接口的使用
javax.naming.directory.Attributes
使用 Attributes 的包
包
描述
扩展
javax.naming 包以提供访问目录服务的功能。
提供对 LDAPv3 扩展操作和控制的支持。
通过
javax.naming 和相关包提供动态插入支持访问命名和目录服务的方法。
-
Attributes 在 javax.naming.directory 中的用法
javax.naming.directory 中实现 Attributes 的类javax.naming.directory 中返回 Attributes 的方法修饰符和类型方法描述DirContext.getAttributes(String name) 检索与命名对象关联的所有属性。DirContext.getAttributes(String name, String[] attrIds) 检索与命名对象关联的选定属性。DirContext.getAttributes(Name name) 检索与命名对象关联的所有属性。DirContext.getAttributes(Name name, String[] attrIds) 检索与命名对象关联的选定属性。InitialDirContext.getAttributes(String name) InitialDirContext.getAttributes(String name, String[] attrIds) InitialDirContext.getAttributes(Name name) InitialDirContext.getAttributes(Name name, String[] attrIds) SearchResult.getAttributes()检索此搜索结果中的属性。javax.naming.directory 中的方法,参数类型为 Attributes修饰符和类型方法描述voidDirContext.bind(String name, Object obj, Attributes attrs) 将名称连同关联的属性绑定到对象。voidDirContext.bind(Name name, Object obj, Attributes attrs) 将名称连同关联的属性绑定到对象。voidInitialDirContext.bind(String name, Object obj, Attributes attrs) voidInitialDirContext.bind(Name name, Object obj, Attributes attrs) DirContext.createSubcontext(String name, Attributes attrs) 创建并绑定新的上下文以及关联的属性。DirContext.createSubcontext(Name name, Attributes attrs) 创建并绑定新的上下文以及关联的属性。InitialDirContext.createSubcontext(String name, Attributes attrs) InitialDirContext.createSubcontext(Name name, Attributes attrs) voidDirContext.modifyAttributes(String name, int mod_op, Attributes attrs) 修改与命名对象关联的属性。voidDirContext.modifyAttributes(Name name, int mod_op, Attributes attrs) 修改与命名对象关联的属性。voidInitialDirContext.modifyAttributes(String name, int mod_op, Attributes attrs) voidInitialDirContext.modifyAttributes(Name name, int mod_op, Attributes attrs) voidDirContext.rebind(String name, Object obj, Attributes attrs) 将名称连同关联的属性绑定到对象,重写任何现有绑定。voidDirContext.rebind(Name name, Object obj, Attributes attrs) 将名称连同关联的属性绑定到对象,重写任何现有绑定。voidInitialDirContext.rebind(String name, Object obj, Attributes attrs) voidInitialDirContext.rebind(Name name, Object obj, Attributes attrs) DirContext.search(String name, Attributes matchingAttributes) 在单个上下文中搜索包含一组指定属性的对象。DirContext.search(String name, Attributes matchingAttributes, String[] attributesToReturn) 在单个上下文中搜索包含一组指定属性的对象,并检索选定的属性。DirContext.search(Name name, Attributes matchingAttributes) 在单个上下文中搜索包含一组指定属性的对象。DirContext.search(Name name, Attributes matchingAttributes, String[] attributesToReturn) 在单个上下文中搜索包含一组指定属性的对象,并检索选定的属性。InitialDirContext.search(String name, Attributes matchingAttributes) InitialDirContext.search(String name, Attributes matchingAttributes, String[] attributesToReturn) InitialDirContext.search(Name name, Attributes matchingAttributes) InitialDirContext.search(Name name, Attributes matchingAttributes, String[] attributesToReturn) voidSearchResult.setAttributes(Attributes attrs) 将此搜索结果的属性设置为attrs。javax.naming.directory 中的构造函数,参数类型为 Attributes修饰符构造方法描述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) 使用结果的名称、它的类名、它的绑定对象、它的属性以及名称是否是相对的来构造一个搜索结果。 -
Attributes 在 javax.naming.ldap 中的用法
javax.naming.ldap 中返回 Attributes 的方法javax.naming.ldap 中的构造函数,参数类型为 Attributes -
Attributes 在 javax.naming.spi 中的用法
javax.naming.spi 中返回 Attributes 的方法javax.naming.spi 中的方法,参数类型为 Attributes修饰符和类型方法描述static ObjectDirectoryManager.getObjectInstance(Object refInfo, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs) 为指定的对象、属性和环境创建对象的实例。DirObjectFactory.getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs) 使用位置或参考信息以及指定的属性创建对象。static DirStateFactory.ResultDirectoryManager.getStateToBind(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs) 在给定原始对象及其属性时检索对象的状态以进行绑定。DirStateFactory.getStateToBind(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes inAttrs) 检索对象的状态以在给定要转换的对象和属性的情况下进行绑定。javax.naming.spi 中的构造函数,参数类型为 Attributes