Package org.opends.server.api.plugin
Class PluginResult.IntermediateResponse
- java.lang.Object
-
- org.opends.server.api.plugin.PluginResult.IntermediateResponse
-
- All Implemented Interfaces:
PluginResult.OperationResult
- Enclosing class:
- PluginResult
public static final class PluginResult.IntermediateResponse extends Object 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PluginResult.IntermediateResponsecontinueOperationProcessing(boolean sendResponse)Defines a continue processing intermediate response plugin result.booleancontinuePluginProcessing()Whether to invoke the rest of the plugins.booleancontinueProcessing()Indicates whether processing on the associated operation should continue.org.forgerock.i18n.LocalizableMessagegetErrorMessage()Retrieves the error message ifPluginResult.OperationResult.continueProcessing()returnedfalse.DNgetMatchedDN()Retrieves the matched DN for the operation ifPluginResult.OperationResult.continueProcessing()returnedfalse.List<String>getReferralURLs()Retrieves the referral URLs for the operation ifPluginResult.OperationResult.continueProcessing()returnedfalse.ResultCodegetResultCode()Retrieves the result code for the operation ifPluginResult.OperationResult.continueProcessing()returnedfalse.booleansendResponse()Whether to send the intermediate response to the client.static PluginResult.IntermediateResponseskipFurtherPluginProcesssing(boolean sendResponse)Defines a skip further plugin processing intermediate response plugin result.static PluginResult.IntermediateResponsestopProcessing(boolean sendResponse, ResultCode resultCode, org.forgerock.i18n.LocalizableMessage errorMessage)Constructs a new stop processing intermediate response plugin result.static PluginResult.IntermediateResponsestopProcessing(boolean sendResponse, ResultCode resultCode, org.forgerock.i18n.LocalizableMessage errorMessage, DN matchedDN, List<String> referralURLs)Defines a new stop processing intermediate response plugin result.
-
-
-
Method Detail
-
continueOperationProcessing
public static PluginResult.IntermediateResponse continueOperationProcessing(boolean sendResponse)
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.
-
skipFurtherPluginProcesssing
public static PluginResult.IntermediateResponse skipFurtherPluginProcesssing(boolean sendResponse)
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, org.forgerock.i18n.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- An 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, org.forgerock.i18n.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- An message explaining why processing should stop.- Returns:
- a new stop processing intermediate response plugin result.
-
continueProcessing
public boolean continueProcessing()
Description copied from interface:PluginResult.OperationResultIndicates whether processing on the associated operation should continue.- Specified by:
continueProcessingin interfacePluginResult.OperationResult- Returns:
trueif processing on the associated operation should continue, orfalseif it should stop.
-
continuePluginProcessing
public boolean continuePluginProcessing()
Whether to invoke the rest of the plugins.- Returns:
trueif the rest of the plugins should be invoked forfalseto skip the rest of the plugins.
-
sendResponse
public boolean sendResponse()
Whether to send the intermediate response to the client.- Returns:
trueif the intermediate response should be sent to the client orfalseotherwise.
-
getErrorMessage
public org.forgerock.i18n.LocalizableMessage getErrorMessage()
Description copied from interface:PluginResult.OperationResultRetrieves the error message ifPluginResult.OperationResult.continueProcessing()returnedfalse.- Specified by:
getErrorMessagein interfacePluginResult.OperationResult- Returns:
- An error message explaining why processing should stop or
nullif none is provided.
-
getResultCode
public ResultCode getResultCode()
Description copied from interface:PluginResult.OperationResultRetrieves the result code for the operation ifPluginResult.OperationResult.continueProcessing()returnedfalse.- Specified by:
getResultCodein interfacePluginResult.OperationResult- Returns:
- the result code for the operation or
nullif none is provided.
-
getMatchedDN
public DN getMatchedDN()
Description copied from interface:PluginResult.OperationResultRetrieves the matched DN for the operation ifPluginResult.OperationResult.continueProcessing()returnedfalse.- Specified by:
getMatchedDNin interfacePluginResult.OperationResult- Returns:
- the matched DN for the operation or
nullif none is provided.
-
getReferralURLs
public List<String> getReferralURLs()
Description copied from interface:PluginResult.OperationResultRetrieves the referral URLs for the operation ifPluginResult.OperationResult.continueProcessing()returnedfalse.- Specified by:
getReferralURLsin interfacePluginResult.OperationResult- Returns:
- the referral URLs for the operation or
nullif none is provided.
-
-