Java Doc for LdapContext.java in  » Apache-Harmony-Java-SE » javax-package » javax » naming » ldap » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » javax package » javax.naming.ldap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.naming.ldap.LdapContext

All known Subclasses:   javax.naming.ldap.InitialLdapContext,
LdapContext
public interface LdapContext extends DirContext(Code)
An LdapContext is used when LDAPv3 extended operations and/or controls are required.

Extended operations are dealt with by the extendedOperation method. All other methods relate to the use of controls. Controls are extra information provided to or from an LDAP v3 server. Controls are either of the type Request or Response. There is a special type of request controls known as connection controls.

Connection controls are used by a service provider when connecting or reconnecting to an LDAP server. These are associated with connections and are inherited by derived Context. It should be noted however that subsequent changes to a derived Context's own connection controls has no impact on the Context from which it inherited. There are a number of environment properties which relate specifically to LDAP service providers. The one which is important here is: java.naming.ldap.control.connect which holds the array of connection controls for a Context. Service providers rely on this to pass on the connection controls to derived Context.

Request controls are used by a service provider when performing operations other than connecting or reconnecting. These are referred to as Context Request Controls as they relate to the specific Context instance. It must be noted that, unlike connection controls, they are not inherited. Connection and request controls being split like this allows service provider implementations to pool connections.

Response controls are generated by an LDAPv3 server.


See Also:   DirContext


Field Summary
final static  StringCONTROL_FACTORIES
     This is set to the environment property java.naming.factory.control.


Method Summary
 ExtendedResponseextendedOperation(ExtendedRequest e)
     Deals with extended operations of LDAPv3.
 Control[]getConnectControls()
     Gets an array of connection controls.
 Control[]getRequestControls()
     Gets the request controls.
 Control[]getResponseControls()
     Gets the response controls.
 LdapContextnewInstance(Control[] ac)
     Creates a new instance of LdapContext using the supplied controls.
 voidreconnect(Control[] ac)
     Reconnects using the supplied controls.
 voidsetRequestControls(Control[] ac)
     Sets the request controls.

Field Detail
CONTROL_FACTORIES
final static String CONTROL_FACTORIES(Code)
This is set to the environment property java.naming.factory.control.





Method Detail
extendedOperation
ExtendedResponse extendedOperation(ExtendedRequest e) throws NamingException(Code)
Deals with extended operations of LDAPv3.
Parameters:
  e - an extended request an extended response for the supplied request
throws:
  NamingException - If an error is encountered.



getConnectControls
Control[] getConnectControls() throws NamingException(Code)
Gets an array of connection controls. an array of connection controls
throws:
  NamingException - If an error is encountered.



getRequestControls
Control[] getRequestControls() throws NamingException(Code)
Gets the request controls. an array of request controls
throws:
  NamingException - If an error is encountered.



getResponseControls
Control[] getResponseControls() throws NamingException(Code)
Gets the response controls. an array of response controls
throws:
  NamingException - If an error is encountered.



newInstance
LdapContext newInstance(Control[] ac) throws NamingException(Code)
Creates a new instance of LdapContext using the supplied controls.
Parameters:
  ac - an array of controls a new LdapContext instance
throws:
  NamingException - If an error is encountered.



reconnect
void reconnect(Control[] ac) throws NamingException(Code)
Reconnects using the supplied controls.
Parameters:
  ac - an array of controls
throws:
  NamingException - If an error is encountered.



setRequestControls
void setRequestControls(Control[] ac) throws NamingException(Code)
Sets the request controls.
Parameters:
  ac - an array of request controls
throws:
  NamingException - If an error is encountered.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.