[英]What is use/benefits of Java InitialDirContext()?
I per my understanding it is used to add key-value pairs. 据我了解,它用于添加键值对。 But actually why we use InitialDirContext() and what are benefits we get from it and what are disadvantages of not using it?
但是实际上为什么我们使用InitialDirContext()以及从中获得什么好处以及不使用它的缺点是什么?
I hope you are referring to this in LDAP context. 希望您在LDAP上下文中引用此内容。 if so, its not just adding key-val pairs & running operations on them.
如果是这样,它不仅会添加键值对并在其上运行操作。 In LDAP context its connects & binds to sever... Once that is completed you can perform various operations as it provides object-oriented view of this directory, which means that Java objects can be added/updated in isolation to client.
在LDAP上下文中,它连接并绑定到服务器...完成后,您可以执行各种操作,因为它提供了此目录的面向对象的视图,这意味着可以孤立地向客户端添加/更新Java对象。
Does that help? 有帮助吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.