Package org.forgerock.opendj.ldap
Interface SchemaResolver
-
public interface SchemaResolver
Schema resolvers are included with a set ofDecodeOptions
in order to allow application to control howSchema
instances are selected when decoding requests and responses.Implementations must be thread safe. More specifically, any schema caching performed by the implementation must be capable of handling multiple concurrent schema requests.
- See Also:
Schema
,DecodeOptions
-
-
Field Summary
Fields Modifier and Type Field Description static SchemaResolver
DEFAULT
A schema resolver which always returns the current default schema as returned bySchema.getDefaultSchema()
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Schema
resolveSchema(String dn)
Finds the appropriate schema for use with the provided distinguished name.
-
-
-
Field Detail
-
DEFAULT
static final SchemaResolver DEFAULT
A schema resolver which always returns the current default schema as returned bySchema.getDefaultSchema()
.
-
-
Method Detail
-
resolveSchema
Schema resolveSchema(String dn)
Finds the appropriate schema for use with the provided distinguished name.Schema resolution must always succeed regardless of any errors that occur.
- Parameters:
dn
- The string representation of a distinguished name associated with an entry whose schema is to be located.- Returns:
- The appropriate schema for use with the provided distinguished name.
-
-