Class Hdap

java.lang.Object
org.forgerock.opendj.rest2ldap.Hdap

public final class Hdap extends Object
Lightweight REST API providing native LDAP capabilities.
  • Method Details

    • newHdapRequestHandler

      public static RequestHandler newHdapRequestHandler(Options options)
      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 DN ou=people,dc=example,dc=com will be encoded as dc=com/dc=example/ou=people.
      Parameters:
      resourcePath - The URL encoded resource path.
      schemaResolver - The SchemaResolver used to compute the DN.
      Returns:
      the DN representation of the resource path.
      Throws:
      BadRequestException - whenever the resource path does not represent a DN.