| | |
| | | |
| | | |
| | | import org.opends.messages.Message; |
| | | import org.opends.messages.MessageBuilder; |
| | | import org.opends.server.admin.std.server.CancelExtendedOperationHandlerCfg; |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.api.ExtendedOperationHandler; |
| | |
| | | // Create the cancel request for the target operation. |
| | | Message cancelReason = |
| | | INFO_EXTOP_CANCEL_REASON.get(operation.getMessageID()); |
| | | MessageBuilder cancelResultMessage = new MessageBuilder(); |
| | | CancelRequest cancelRequest = new CancelRequest(true, cancelReason, |
| | | cancelResultMessage); |
| | | CancelRequest cancelRequest = new CancelRequest(true, cancelReason); |
| | | |
| | | |
| | | // Get the client connection and attempt the cancel. |
| | |
| | | |
| | | // Update the result of the extended operation and return. |
| | | operation.setResultCode(cancelResult.getResultCode()); |
| | | operation.setErrorMessage(cancelResultMessage); |
| | | operation.appendErrorMessage(cancelResult.getResponseMessage()); |
| | | } |
| | | } |
| | | |