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

源代码在线查看: e480. parsing a jndi compound name.txt

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

相关代码

				This example parses a compound name using a parser from an LDAP service in which components are arranged from right to left, delimited by the comma character (,). 
				    try {
				        NameParser parser = ctx.getNameParser("");
				        Name dn = parser.parse("cn=John, ou=People, o=JNDITutorial");
				    
				        dn.remove(1);                 // ou=People
				        dn.add(0, "c=us");            // cn=John,o=JNDITutorial,c=us
				        dn.add("cn=fs");              // cn=fs,cn=John,o=JNDITutorial,c=us
				    } catch (NamingException e) {
				    }
				
							

相关资源