Package org.opends.server.api.plugin
Record Class PluginResult.IntermediateResponse
java.lang.Object
java.lang.Record
org.opends.server.api.plugin.PluginResult.IntermediateResponse
- Record Components:
continueProcessing
- Whether to continue operation processingcontinuePluginProcessing
- Whether to invoke the rest of the pluginssendResponse
- Whether to send the intermediate response to the clientresult
- The result for this result
- All Implemented Interfaces:
PluginResult.OperationResult
- Enclosing class:
- PluginResult
public static record PluginResult.IntermediateResponse(boolean continueProcessing, boolean continuePluginProcessing, boolean sendResponse, Result result)
extends Record
implements PluginResult.OperationResult
Defines an intermediate response plugin result for core server operation processing consisting of either
continue, skip further plugins, or stop operation processing with a result code, matched DN, referral URLs, and
error message.
-
Constructor Summary
ConstructorDescriptionIntermediateResponse
(boolean continueProcessing, boolean continuePluginProcessing, boolean sendResponse, Result result) Creates an instance of aIntermediateResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptioncontinueOperationProcessing
(boolean sendResponse) Defines a continue processing intermediate response plugin result.boolean
Returns the value of thecontinuePluginProcessing
record component.boolean
Returns the value of thecontinueProcessing
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.result()
Returns the value of theresult
record component.boolean
Returns the value of thesendResponse
record component.skipFurtherPluginProcessing
(boolean sendResponse) Defines a skip further plugin processing intermediate response plugin result.stopProcessing
(boolean sendResponse, ResultCode resultCode, LocalizableMessage errorMessage) Constructs a new stop processing intermediate response plugin result.stopProcessing
(boolean sendResponse, ResultCode resultCode, LocalizableMessage errorMessage, Dn matchedDN, List<String> referralURLs) Defines a new stop processing intermediate response plugin result.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
IntermediateResponse
public IntermediateResponse(boolean continueProcessing, boolean continuePluginProcessing, boolean sendResponse, Result result) Creates an instance of aIntermediateResponse
record class.- Parameters:
continueProcessing
- the value for thecontinueProcessing
record componentcontinuePluginProcessing
- the value for thecontinuePluginProcessing
record componentsendResponse
- the value for thesendResponse
record componentresult
- the value for theresult
record component
-
-
Method Details
-
continueOperationProcessing
Defines a continue processing intermediate response plugin result.- Parameters:
sendResponse
- Whether to send the intermediate response to the client.- Returns:
- a continue processing intermediate response plugin result.
-
skipFurtherPluginProcessing
Defines a skip further plugin processing intermediate response plugin result.- Parameters:
sendResponse
- Whether to send the intermediate response to the client.- Returns:
- a skip further plugin processing intermediate response plugin result.
-
stopProcessing
public static PluginResult.IntermediateResponse stopProcessing(boolean sendResponse, ResultCode resultCode, LocalizableMessage errorMessage, Dn matchedDN, List<String> referralURLs) Defines a new stop processing intermediate response plugin result.- Parameters:
sendResponse
- Whether to send the intermediate response to the client.resultCode
- The result code for this result.errorMessage
- A message explaining why processing should stop.matchedDN
- The matched DN for this result.referralURLs
- The set of referral URLs for this result.- Returns:
- a new stop processing intermediate response plugin result.
-
stopProcessing
public static PluginResult.IntermediateResponse stopProcessing(boolean sendResponse, ResultCode resultCode, LocalizableMessage errorMessage) Constructs a new stop processing intermediate response plugin result.- Parameters:
sendResponse
- Whether to send the intermediate response to the client.resultCode
- The result code for this result.errorMessage
- A message explaining why processing should stop.- Returns:
- a new stop processing intermediate response plugin result.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
continueProcessing
public boolean continueProcessing()Returns the value of thecontinueProcessing
record component.- Specified by:
continueProcessing
in interfacePluginResult.OperationResult
- Returns:
- the value of the
continueProcessing
record component
-
continuePluginProcessing
public boolean continuePluginProcessing()Returns the value of thecontinuePluginProcessing
record component.- Returns:
- the value of the
continuePluginProcessing
record component
-
sendResponse
public boolean sendResponse()Returns the value of thesendResponse
record component.- Returns:
- the value of the
sendResponse
record component
-
result
Returns the value of theresult
record component.- Specified by:
result
in interfacePluginResult.OperationResult
- Returns:
- the value of the
result
record component
-