Class DecodeOptions

java.lang.Object
org.forgerock.opendj.ldap.DecodeOptions

public final class DecodeOptions extends Object
Decode options allow applications to control how requests and responses are decoded. In particular:
  • The strategy for selecting which Schema should be used for decoding distinguished names, attribute descriptions, and other objects which require a schema in order to be decoded.
  • The Attribute implementation which should be used when decoding attributes.
  • The Entry implementation which should be used when decoding entries or entry like objects.
  • Constructor Details

  • Method Details

    • getAttributeFactory

      Returns the AttributeFactory which will be used for creating new Attribute instances when decoding attributes.
      Returns:
      The AttributeFactory which will be used for creating new Attribute instances when decoding attributes.
    • getEntryFactory

      public final EntryFactory getEntryFactory()
      Returns the EntryFactory which will be used for creating new Entry instances when decoding entries.
      Returns:
      The EntryFactory which will be used for creating new Entry instances when decoding entries.
    • getSchemaResolver

      Returns the strategy for selecting which Schema should be used for decoding distinguished names, attribute descriptions, and other objects which require a Schema in order to be decoded.
      Returns:
      The schema resolver which will be used for decoding.
    • setAttributeFactory

      Sets the AttributeFactory which will be used for creating new Attribute instances when decoding attributes.
      Parameters:
      factory - The AttributeFactory which will be used for creating new Attribute instances when decoding attributes.
      Returns:
      A reference to this set of decode options.
      Throws:
      NullPointerException - If factory was null.
    • setEntryFactory

      public final DecodeOptions setEntryFactory(EntryFactory factory)
      Sets the EntryFactory which will be used for creating new Entry instances when decoding entries.
      Parameters:
      factory - The EntryFactory which will be used for creating new Entry instances when decoding entries.
      Returns:
      A reference to this set of decode options.
      Throws:
      NullPointerException - If factory was null.
    • setSchema

      public final DecodeOptions setSchema(Schema schema)
      Sets the Schema which will be used for decoding distinguished names, attribute descriptions, and other objects which require a schema in order to be decoded. This setting overrides the currently active schema resolver set using setSchemaResolver(org.forgerock.opendj.ldap.SchemaResolver).
      Parameters:
      schema - The Schema which will be used for decoding.
      Returns:
      A reference to this set of decode options.
      Throws:
      NullPointerException - If schema was null.
    • setSchemaResolver

      Sets the strategy for selecting which Schema should be used for decoding distinguished names, attribute descriptions, and other objects which require a Schema in order to be decoded. This setting overrides the currently active schema set using setSchema(org.forgerock.opendj.ldap.schema.Schema).
      Parameters:
      resolver - The SchemaResolver which will be used for decoding.
      Returns:
      A reference to this set of decode options.
      Throws:
      NullPointerException - If resolver was null.