java类库详细讲解

源代码在线查看: connect.html

软件大小: 5593 K
上传用户: add505
关键词: java
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
				Setting LDAP Connection Request Controls
				(Java Developers Almanac Example)
				
				
				
				
				
				
								    BODY CODE  {font-family: Courier, Monospace;				           font-size: 11pt}				    TABLE, BODY				          {font-family: Verdana, Arial, Helvetica, sans-serif;				           font-size: 10pt}				    PRE   {font-family: Courier, Monospace;				           font-size: 10pt}				    H3    {font-family: Verdana, Arial, Helvetica, sans-serif;				           font-size: 11pt}				    A.eglink {text-decoration: none}				    A:hover.eglink {text-decoration: underline}				    -->
				
				
				
				
				
				The Java Developers Almanac 1.4
				
				        Order this book from Amazon.
				    
				
				
				
				
				
				
				
				
				
				
				
				Home
				    >
				    List of Packages
				    >
				    javax.naming.ldap
				         [4 examples]
				        
				
				  
				    e495.  
				    Setting LDAP Connection Request Controls
				
				This example uses the JNDI/LDAP service provider to connect
				to an LDAP server on the local machine and initializes its
				connection request controls.
				
				
				    try {
				        // Create connection controls to use
				        Control[] connectCtls = new Control[]{new SomeControl()};
				    
				        LdapContext ctx = new InitialLdapContext(env, connectCtls);
				    } catch (NamingException e) {
				    }
				
				
				
				
				             Related Examples
				        
				
				
				
				
				e496. 
				    Setting LDAP Context Request Controls
				
				
				
				e497. 
				    Getting LDAP Response Controls
				
				
				
				e498. 
				    Performing an LDAP ``Extended'' Operation
				
				
				
				
				
				
				
				
				© 2002 Addison-Wesley.
				
				
				
							

相关资源