Package org.forgerock.opendj.rest2ldap
Class Hdap
java.lang.Object
org.forgerock.opendj.rest2ldap.Hdap
Lightweight REST API providing native LDAP capabilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DndnOf(ResourcePath resourcePath, SchemaResolver schemaResolver) Decodes the provided URL encoded resource path as a DN.static RequestHandlernewHdapRequestHandler(Options options) Creates a new HDAP request handler with the provided options.
-
Method Details
-
newHdapRequestHandler
Creates a new HDAP request handler with the provided options.- Parameters:
options- The options.- Returns:
- The HDAP request handler.
-
dnOf
public static Dn dnOf(ResourcePath resourcePath, SchemaResolver schemaResolver) throws BadRequestException Decodes the provided URL encoded resource path as a DN. The resource path is the big-endian representation of the DN where each RDN is encoded as a separate path element. For example, the DNou=people,dc=example,dc=comwill be encoded asdc=com/dc=example/ou=people.- Parameters:
resourcePath- The URL encoded resource path.schemaResolver- TheSchemaResolverused to compute the DN.- Returns:
- the DN representation of the resource path.
- Throws:
BadRequestException- whenever the resource path does not represent a DN.
-