S
- The type of result.public interface ExtendedResultDecoder<S extends ExtendedResult>
Modifier and Type | Method and Description |
---|---|
S |
adaptDecodeException(DecodeException exception)
Creates a new extended operation error result using the provided decoding
exception.
|
S |
decodeExtendedResult(ExtendedResult result,
DecodeOptions options)
Decodes the provided extended operation result as a
Result of
type S . |
Class<S> |
getExtendedResultClass()
Returns the type
S of the ExtendedResult . |
S |
newExtendedErrorResult(ResultCode resultCode,
String matchedDN,
CharSequence diagnosticMessage)
Creates a new extended error result using the provided result code,
matched DN, and diagnostic message.
|
S adaptDecodeException(DecodeException exception)
DecodeException
encountered while decoding an extended request or result. The returned
error result will have the result code ResultCode.PROTOCOL_ERROR
.exception
- The decoding exception to be adapted.NullPointerException
- If exception
was null
.S decodeExtendedResult(ExtendedResult result, DecodeOptions options) throws DecodeException
Result
of
type S
. This method is called when an extended result is received
from the server. The result may indicate success or failure of the
extended request.result
- The extended operation result to be decoded.options
- The set of decode options which should be used when decoding
the extended operation result.DecodeException
- If the provided extended operation result could not be
decoded. For example, if the request name was wrong, or if
the request value was invalid.S newExtendedErrorResult(ResultCode resultCode, String matchedDN, CharSequence diagnosticMessage)
Result
of type S
.resultCode
- The result code.matchedDN
- The matched DN, which may be empty if none was provided.diagnosticMessage
- The diagnostic message, which may be empty if none was
provided.NullPointerException
- If resultCode
, matchedDN
, or
diagnosticMessage
were null
.Copyright 2010-2022 ForgeRock AS.