这里面包含了一百多个JAVA源文件

源代码在线查看: e491. getting an attribute's schema from the directory.txt

软件大小: 551 K
上传用户: maple_78
关键词: JAVA
下载地址: 免注册下载 普通下载 VIP

相关代码

				This example reads an attribute's schema from the directory. 
				    try {
				        // Get an attribute of that type
				        Attributes attrs = ctx.getAttributes("cn=Ted Geisel, ou=People", new String[]{"cn"});
				        Attribute cnAttr = attrs.get("cn");
				    
				        // Get its attribute definition
				        DirContext cnSchema = cnAttr.getAttributeDefinition();
				    
				        // Get cnSchema's attributes
				        Attributes cnAttrs = cnSchema.getAttributes("");
				    } catch (NamingException e) {
				    }
				
							

相关资源