Interface InMemoryInterceptedAddResult
-
- All Superinterfaces:
InMemoryInterceptedResult
@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface InMemoryInterceptedAddResult extends InMemoryInterceptedResult
This class provides an API that can be used in the course of processing an add request via theInMemoryOperationInterceptorAPI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReadOnlyAddRequestgetRequest()Retrieves the add request that was processed.LDAPResultgetResult()Retrieves the add result to be returned to the client.voidsendIntermediateResponse(IntermediateResponse intermediateResponse)Sends the provided intermediate response message to the client.voidsetResult(LDAPResult addResult)Replaces the add result to be returned to the client.-
Methods inherited from interface com.unboundid.ldap.listener.interceptor.InMemoryInterceptedResult
getConnectedAddress, getConnectedPort, getConnectionID, getMessageID, getProperty, sendUnsolicitedNotification
-
-
-
-
Method Detail
-
getRequest
@NotNull ReadOnlyAddRequest getRequest()
Retrieves the add request that was processed. If the request was altered between the time it was received from the client and the time it was actually processed by the in-memory directory server, then this will be the most recently altered version.- Returns:
- The add request that was processed.
-
getResult
@Nullable LDAPResult getResult()
Retrieves the add result to be returned to the client.- Returns:
- The add result to be returned to the client.
-
setResult
void setResult(@NotNull LDAPResult addResult)
Replaces the add result to be returned to the client.- Parameters:
addResult- The add result that should be returned to the client instead of the result originally generated by the in-memory directory server. It must not benull.
-
sendIntermediateResponse
void sendIntermediateResponse(@NotNull IntermediateResponse intermediateResponse) throws LDAPException
Sends the provided intermediate response message to the client. It will be processed by theInMemoryOperationInterceptor.processIntermediateResponse(com.unboundid.ldap.listener.interceptor.InMemoryInterceptedIntermediateResponse)method of all registered operation interceptors.- Parameters:
intermediateResponse- The intermediate response to send to the client. It must not benull.- Throws:
LDAPException- If a problem is encountered while trying to send the intermediate response.
-
-