Uses of Class
org.forgerock.opendj.ldap.LdapException
Package
Description
Classes and interfaces for core types including connections, entries, and
attributes.
Classes and interfaces for core LDAP requests/responses.
Classes and interfaces for constructing and querying LDAP schemas.
Classes and interfaces for reading and writing LDIF.
-
Uses of LdapException in org.forgerock.opendj.ldap
Modifier and TypeClassDescriptionfinal class
Thrown when the result code returned in a Result indicates that the Request failed because the filter contained in an assertion control failed to match the target entry.final class
Thrown when the result code returned in a Result indicates that the Bind Request failed due to an authentication failure.final class
Thrown when the result code returned in a Result indicates that the Request failed due to an authorization failure.final class
Thrown when the result code returned in a Result indicates that the Request was cancelled.final class
Thrown when the result code returned in a Result indicates that the Request was unsuccessful because of a connection failure.final class
Thrown when the result code returned in a Result indicates that the update Request failed because it would have left the Directory in an inconsistent state.class
Thrown when the result code returned in a Result indicates that the Request failed because the target entry was not found by the Directory Server.final class
Thrown when the result code returned in a Result indicates that the requested single entry search operation or read operation failed because the Directory Server returned multiple matching entries (or search references) when only a single matching entry was expected.final class
Thrown when the result code returned in a Result indicates that the Request could not be processed by the Directory Server because the target entry is located on another server.final class
Thrown when the result code returned in a Result indicates that the Request was aborted because it did not complete in the required time out period.Modifier and TypeMethodDescriptionstatic LdapException
LdapException.newLdapClientException
(Throwable cause) Creates a new LDAP client exception with the provided cause and a result code depending on the class cause originalcause
.static LdapException
LdapException.newLdapException
(Throwable cause) Creates a new LDAP exception with the provided cause and a result code depending on the class cause originalcause
.static LdapException
LdapException.newLdapException
(Result result) Creates a new LDAP exception using the provided result.static LdapException
LdapException.newLdapException
(ResultCode resultCode) Creates a new LDAP exception with the provided result code and an empty diagnostic message.static LdapException
LdapException.newLdapException
(ResultCode resultCode, CharSequence diagnosticMessage) Creates a new LDAP exception with the provided result code and diagnostic message.static LdapException
LdapException.newLdapException
(ResultCode resultCode, CharSequence diagnosticMessage, Throwable cause) Creates a new LDAP exception with the provided result code, diagnostic message, and cause.static LdapException
LdapException.newLdapException
(ResultCode resultCode, CharSequence diagnosticMessage, Dn matchedDn, Throwable cause) Creates a new LDAP exception with the provided resultCode, diagnosticMessage, matched DN and cause.static LdapException
LdapException.newLdapException
(ResultCode resultCode, Throwable cause) Creates a new LDAP exception with the provided result code and cause.Modifier and TypeMethodDescriptionConnectionFactory.getConnectionAsync()
Asynchronously obtains a connection to the Directory Server associated with this connection factory.LdapConnectionFactory.getConnectionAsync()
Modifier and TypeMethodDescriptionvoid
ConnectionEventListener.handleConnectionError
(boolean isDisconnectNotification, LdapException error) Notifies this connection event listener that a fatal error has occurred and the connection can no longer be used - the server has crashed, for example.void
LdapResultHandler.handleException
(LdapException exception) Invoked when the asynchronous operation has failed.void
LoadBalancerEventListener.handleLdapClientOffline
(LdapClient client, LdapException error) Invoked when the load-balancer is unable to obtain a connection from the specified LDAP client.Modifier and TypeMethodDescription<VOUT> LdapPromise<VOUT>
LdapPromise.then
(Function<? super S, VOUT, LdapException> onResult) <VOUT> LdapPromise<VOUT>
LdapPromise.thenAsync
(AsyncFunction<? super S, VOUT, LdapException> onResult) LdapPromise.thenOnException
(ExceptionHandler<? super LdapException> onException) LdapPromise.thenOnResultOrException
(ResultHandler<? super S> onResult, ExceptionHandler<? super LdapException> onException) Modifier and TypeMethodDescriptionAbstractAsynchronousConnection.add
(AddRequest request) Adds an entry to the Directory Server using the provided lines of LDIF.Adds the provided entry to the Directory Server.AbstractConnectionWrapper.add
(AddRequest request) Adds an entry to the Directory Server using the provided add request.Adds an entry to the Directory Server using the provided lines of LDIF.Adds the provided entry to the Directory Server.Connection.add
(AddRequest request) Adds an entry to the Directory Server using the provided add request.AbstractConnection.applyChange
(ChangeRecord request) AbstractConnectionWrapper.applyChange
(ChangeRecord request) Applies the provided change request to the Directory Server.Connection.applyChange
(ChangeRecord request) Applies the provided change request to the Directory Server.AbstractAsynchronousConnection.bind
(BindRequest request) Authenticates to the Directory Server using simple authentication and the provided user name and password.AbstractConnectionWrapper.bind
(BindRequest request) Authenticates to the Directory Server using the provided bind request.Authenticates to the Directory Server using simple authentication and the provided user name and password.Connection.bind
(BindRequest request) Authenticates to the Directory Server using the provided bind request.SortKey.comparator()
Returns aComparator
which can be used to compare entries using this sort key.static Comparator<Entry>
SortKey.comparator
(String sortKeys) Returns aComparator
which can be used to compare entries using the provided string representation of a list of sort keys.static Comparator<Entry>
SortKey.comparator
(Collection<SortKey> keys) Returns aComparator
which can be used to compare entries using the provided list of sort keys.SortKey.comparator
(Schema schema) Returns aComparator
which can be used to compare entries using this sort key.static Comparator<Entry>
SortKey.comparator
(Schema schema, Collection<SortKey> keys) Returns aComparator
which can be used to compare entries using the provided list of sort keys.static Comparator<Entry>
SortKey.comparator
(Schema schema, SortKey... keys) Returns aComparator
which can be used to compare entries using the provided list of sort keys.static Comparator<Entry>
SortKey.comparator
(SortKey... keys) Returns aComparator
which can be used to compare entries using the provided list of sort keys.AbstractAsynchronousConnection.compare
(CompareRequest request) Compares the named entry in the Directory Server against the provided attribute value assertion.AbstractConnectionWrapper.compare
(CompareRequest request) Compares an entry in the Directory Server using the provided compare request.Compares the named entry in the Directory Server against the provided attribute value assertion.Connection.compare
(CompareRequest request) Compares an entry in the Directory Server using the provided compare request.AbstractAsynchronousConnection.delete
(DeleteRequest request) Deletes the named entry from the Directory Server.AbstractConnectionWrapper.delete
(DeleteRequest request) Deletes an entry from the Directory Server using the provided delete request.Deletes the named entry from the Directory Server.default Result
Deletes the named entry from the Directory Server.Connection.delete
(DeleteRequest request) Deletes an entry from the Directory Server using the provided delete request.AbstractConnection.deleteSubtree
(String name) AbstractConnectionWrapper.deleteSubtree
(String name) Deletes the named entry and all of its subordinates from the Directory Server.Connection.deleteSubtree
(String name) Deletes the named entry and all of its subordinates from the Directory Server.<R extends ExtendedResult>
RAbstractAsynchronousConnection.extendedRequest
(ExtendedRequest<R> request, IntermediateResponseHandler handler) AbstractConnection.extendedRequest
(String requestName, ByteString requestValue) <R extends ExtendedResult>
RAbstractConnection.extendedRequest
(ExtendedRequest<R> request) AbstractConnectionWrapper.extendedRequest
(String requestName, ByteString requestValue) Requests that the Directory Server performs the provided extended request.<R extends ExtendedResult>
RAbstractConnectionWrapper.extendedRequest
(ExtendedRequest<R> request) Requests that the Directory Server performs the provided extended request.<R extends ExtendedResult>
RAbstractConnectionWrapper.extendedRequest
(ExtendedRequest<R> request, IntermediateResponseHandler handler) Requests that the Directory Server performs the provided extended request, optionally listening for any intermediate responses.Connection.extendedRequest
(String requestName, ByteString requestValue) Requests that the Directory Server performs the provided extended request.<R extends ExtendedResult>
RConnection.extendedRequest
(ExtendedRequest<R> request) Requests that the Directory Server performs the provided extended request.<R extends ExtendedResult>
RConnection.extendedRequest
(ExtendedRequest<R> request, IntermediateResponseHandler handler) Requests that the Directory Server performs the provided extended request, optionally listening for any intermediate responses.ConnectionFactory.getConnection()
Returns a connection to the Directory Server associated with this connection factory.LdapConnectionFactory.getConnection()
AbstractAsynchronousConnection.modify
(ModifyRequest request) Modifies an entry in the Directory Server using the provided lines of LDIF.AbstractConnectionWrapper.modify
(ModifyRequest request) Modifies an entry in the Directory Server using the provided modify request.Modifies an entry in the Directory Server using the provided lines of LDIF.Connection.modify
(ModifyRequest request) Modifies an entry in the Directory Server using the provided modify request.AbstractAsynchronousConnection.modifyDn
(ModifyDnRequest request) Renames the named entry in the Directory Server using the provided new RDN.AbstractConnectionWrapper.modifyDn
(ModifyDnRequest request) Renames an entry in the Directory Server using the provided modify DN request.Renames the named entry in the Directory Server using the provided new RDN.Connection.modifyDn
(ModifyDnRequest request) Renames an entry in the Directory Server using the provided modify DN request.static Entry
Entries.modifyEntry
(Entry entry, ModifyRequest changes) Applies the provided modification request to an entry.static Entry
Entries.modifyEntry
(Entry entry, Modification change) Applies the provided modification to an entry.static Entry
Entries.modifyEntry
(Entry entry, Modification change, Collection<? super ByteString> conflictingValues) Applies the provided modification to an entry.static Entry
Entries.modifyEntryPermissive
(Entry entry, Collection<Modification> changes) Applies the provided modifications to an entry using "permissive" modify semantics.static Entry
Entries.modifyEntryStrict
(Entry entry, Collection<Modification> changes) Applies the provided modifications to an entry using "strict" modify semantics.Reads the named entry from the Directory Server.Reads the named entry from the Directory Server.Reads the named entry from the Directory Server.Reads the named entry from the Directory Server.static RootDse
RootDse.readRootDse
(Connection connection) Reads the Root DSE from the Directory Server using the provided connection.AbstractAsynchronousConnection.search
(SearchRequest request, SearchResultHandler handler) AbstractConnection.search
(SearchRequest request, Collection<? super SearchResultEntry> entries) AbstractConnection.search
(SearchRequest request, Collection<? super SearchResultEntry> entries, Collection<? super SearchResultReference> references) AbstractConnectionWrapper.search
(SearchRequest request, Collection<? super SearchResultEntry> entries) Searches the Directory Server using the provided search request.AbstractConnectionWrapper.search
(SearchRequest request, Collection<? super SearchResultEntry> entries, Collection<? super SearchResultReference> references) Searches the Directory Server using the provided search request.AbstractConnectionWrapper.search
(SearchRequest request, SearchResultHandler handler) Searches the Directory Server using the provided search request.Connection.search
(SearchRequest request, Collection<? super SearchResultEntry> entries) Searches the Directory Server using the provided search request.Connection.search
(SearchRequest request, Collection<? super SearchResultEntry> entries, Collection<? super SearchResultReference> references) Searches the Directory Server using the provided search request.Connection.search
(SearchRequest request, SearchResultHandler handler) Searches the Directory Server using the provided search request.AbstractConnection.searchSingleEntry
(String baseObject, SearchScope scope, String filter, String... attributeDescriptions) AbstractConnection.searchSingleEntry
(SearchRequest request) AbstractConnectionWrapper.searchSingleEntry
(String baseObject, SearchScope scope, String filter, String... attributeDescriptions) Searches the Directory Server for a single entry using the provided search parameters.AbstractConnectionWrapper.searchSingleEntry
(SearchRequest request) Searches the Directory Server for a single entry using the provided search request.Connection.searchSingleEntry
(String baseObject, SearchScope scope, String filter, String... attributeDescriptions) Searches the Directory Server for a single entry using the provided search parameters.Connection.searchSingleEntry
(SearchRequest request) Searches the Directory Server for a single entry using the provided search request.static SubtreeSpecification
Parses the string argument as an RFC3672 subtree specification. -
Uses of LdapException in org.forgerock.opendj.ldap.messages
Modifier and TypeMethodDescriptionInvalidRequest.getReason()
Returns the reason why this request is invalid.Modifier and TypeMethodDescriptionstatic InvalidRequest
Requests.newInvalidRequest
(Request.RequestType invalidRequestType, String invalidRawDn, LdapException reason) Creates a new invalid request using the provided reason. -
Uses of LdapException in org.forgerock.opendj.ldap.schema
Modifier and TypeMethodDescriptionSchemaValidationPolicy.checkDitStructureRulesParentEntryResolver()
Returns the parent entry resolver which should be used for retrieving the parent entry during DIT structure rule validation.Modifier and TypeMethodDescriptionSchemaValidationPolicy.checkDitStructureRules
(SchemaValidationPolicy.Action policy, Function<Dn, Entry, LdapException> parentEntryResolver) Specifies the policy for validating entries against structure rules defined in the schema.Modifier and TypeMethodDescriptionSchemaBuilder.addSchema
(Connection connection, Dn name, boolean overwrite) Reads the schema elements contained in the named subschema sub-entry and adds them to this schema builder.SchemaBuilder.addSchemaForEntry
(Connection connection, Dn name, boolean overwrite) Reads the schema elements contained in the subschema sub-entry which applies to the named entry and adds them to this schema builder.static Schema
Schema.readSchema
(Connection connection, Dn name) Reads the schema contained in the named subschema sub-entry.static Schema
Schema.readSchemaForEntry
(Connection connection, Dn name) Reads the schema contained in the subschema sub-entry which applies to the named entry. -
Uses of LdapException in org.forgerock.opendj.ldif
Modifier and TypeMethodDescriptionboolean
ConnectionEntryReader.hasNext()
boolean
ConnectionEntryReader.isEntry()
Waits for the next search result entry or reference to become available and returnstrue
if it is an entry, orfalse
if it is a reference.boolean
ConnectionEntryReader.isReference()
Waits for the next search result entry or reference to become available and returnstrue
if it is a reference, orfalse
if it is an entry.ConnectionEntryReader.readEntry()
Waits for the next search result entry or reference to become available and, if it is an entry, returns it as aSearchResultEntry
.ConnectionEntryReader.readReference()
Waits for the next search result entry or reference to become available and, if it is a reference, returns it as aSearchResultReference
.ConnectionEntryReader.readResult()
Waits for the next search response to become available and returns it if it is a search result indicating that the search completed successfully.ConnectionChangeRecordWriter.writeChangeRecord
(AddRequest change) Writes the provided Add request to the underlying connection, blocking until the request completes.ConnectionChangeRecordWriter.writeChangeRecord
(DeleteRequest change) Writes the provided Delete request to the underlying connection, blocking until the request completes.ConnectionChangeRecordWriter.writeChangeRecord
(ModifyDnRequest change) Writes the provided ModifyDN request to the underlying connection, blocking until the request completes.ConnectionChangeRecordWriter.writeChangeRecord
(ModifyRequest change) Writes the provided Modify request to the underlying connection, blocking until the request completes.ConnectionChangeRecordWriter.writeChangeRecord
(ChangeRecord change) Writes the provided change record to the underlying connection, blocking until the request completes.ConnectionEntryWriter.writeEntry
(Entry entry) Writes an entry to the underlying connection using an Add request, blocking until the request completes.