Package org.ldaptive.extended
Interface ExtendedOperationHandle
- 
- All Superinterfaces:
 OperationHandle<ExtendedRequest,ExtendedResponse>
- All Known Implementing Classes:
 DefaultExtendedOperationHandle
public interface ExtendedOperationHandle extends OperationHandle<ExtendedRequest,ExtendedResponse>
Handle that notifies on the components of an extended request. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExtendedResponseawait()Waits for a result or reports a timeout exception.default ExtendedResponseexecute()Convenience method that invokesOperationHandle.send()followed byOperationHandle.await().ExtendedOperationHandleonComplete(CompleteHandler function)Sets the function to execute when the operation completes.ExtendedOperationHandleonControl(ResponseControlHandler... function)Sets the functions to execute when a control is received.ExtendedOperationHandleonException(ExceptionHandler function)Sets the function to execute when an exception occurs.ExtendedOperationHandleonExtended(ExtendedValueHandler... function)Sets the function to execute when an extended result is received.ExtendedOperationHandleonIntermediate(IntermediateResponseHandler... function)Sets the functions to execute when an intermediate response is received.ExtendedOperationHandleonReferral(ReferralHandler... function)Sets the functions to execute when a referral is received.ExtendedOperationHandleonReferralResult(ReferralResultHandler<ExtendedResponse> function)Sets the functions to execute when a response is complete and contains a referral result code.ExtendedOperationHandleonResult(ResultHandler... function)Sets the functions to execute when a result is received.ExtendedOperationHandleonUnsolicitedNotification(UnsolicitedNotificationHandler... function)Sets the functions to execute when an unsolicited notification is received.ExtendedOperationHandlesend()Sends this request to the server.ExtendedOperationHandlethrowIf(ResultPredicate function)Sets the function to determine whether an exception should be raised by a particular result.- 
Methods inherited from interface org.ldaptive.OperationHandle
abandon, cancel, getAbandonedTime, getReceivedTime, getSentTime 
 - 
 
 - 
 
- 
- 
Method Detail
- 
send
ExtendedOperationHandle send()
Description copied from interface:OperationHandleSends this request to the server.- Specified by:
 sendin interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Returns:
 - this handle
 
 
- 
await
ExtendedResponse await() throws LdapException
Description copied from interface:OperationHandleWaits for a result or reports a timeout exception.- Specified by:
 awaitin interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Returns:
 - result of the operation or empty if the operation is abandoned
 - Throws:
 LdapException- if an error occurs executing the request
 
- 
execute
default ExtendedResponse execute() throws LdapException
Description copied from interface:OperationHandleConvenience method that invokesOperationHandle.send()followed byOperationHandle.await(). Provides a single method to make a synchronous request.- Specified by:
 executein interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Returns:
 - result of the operation or empty if the operation is abandoned
 - Throws:
 LdapException- if an error occurs executing the request
 
- 
onResult
ExtendedOperationHandle onResult(ResultHandler... function)
Description copied from interface:OperationHandleSets the functions to execute when a result is received.- Specified by:
 onResultin interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Parameters:
 function- to execute on a result- Returns:
 - this handle
 
 
- 
onControl
ExtendedOperationHandle onControl(ResponseControlHandler... function)
Description copied from interface:OperationHandleSets the functions to execute when a control is received.- Specified by:
 onControlin interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Parameters:
 function- to execute on a control- Returns:
 - this handle
 
 
- 
onReferral
ExtendedOperationHandle onReferral(ReferralHandler... function)
Description copied from interface:OperationHandleSets the functions to execute when a referral is received.- Specified by:
 onReferralin interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Parameters:
 function- to execute on a referral- Returns:
 - this handle
 
 
- 
onIntermediate
ExtendedOperationHandle onIntermediate(IntermediateResponseHandler... function)
Description copied from interface:OperationHandleSets the functions to execute when an intermediate response is received.- Specified by:
 onIntermediatein interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Parameters:
 function- to execute on an intermediate response- Returns:
 - this handle
 
 
- 
onUnsolicitedNotification
ExtendedOperationHandle onUnsolicitedNotification(UnsolicitedNotificationHandler... function)
Description copied from interface:OperationHandleSets the functions to execute when an unsolicited notification is received.- Specified by:
 onUnsolicitedNotificationin interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Parameters:
 function- to execute on an unsolicited notification- Returns:
 - this handle
 
 
- 
onReferralResult
ExtendedOperationHandle onReferralResult(ReferralResultHandler<ExtendedResponse> function)
Description copied from interface:OperationHandleSets the functions to execute when a response is complete and contains a referral result code.- Specified by:
 onReferralResultin interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Parameters:
 function- to execute on a referral response- Returns:
 - this handle
 
 
- 
onException
ExtendedOperationHandle onException(ExceptionHandler function)
Description copied from interface:OperationHandleSets the function to execute when an exception occurs.- Specified by:
 onExceptionin interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Parameters:
 function- to execute when an exception occurs- Returns:
 - this handle
 
 
- 
throwIf
ExtendedOperationHandle throwIf(ResultPredicate function)
Description copied from interface:OperationHandleSets the function to determine whether an exception should be raised by a particular result.- Specified by:
 throwIfin interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Parameters:
 function- to determine whether to throw an exception- Returns:
 - this handle
 
 
- 
onComplete
ExtendedOperationHandle onComplete(CompleteHandler function)
Description copied from interface:OperationHandleSets the function to execute when the operation completes.- Specified by:
 onCompletein interfaceOperationHandle<ExtendedRequest,ExtendedResponse>- Parameters:
 function- to execute on completion- Returns:
 - this handle
 
 
- 
onExtended
ExtendedOperationHandle onExtended(ExtendedValueHandler... function)
Sets the function to execute when an extended result is received.- Parameters:
 function- to execute on an extended result- Returns:
 - this handle
 
 
 - 
 
 -