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.
|
<R extends ExtendedResult> |
adaptExtendedResultHandler(ExtendedRequest<R> request,
LdapResultHandler<? super R> resultHandler,
DecodeOptions options)
Adapts the provided extended result handler into a result handler which
is compatible with this extended result decoder.
|
S |
decodeExtendedResult(ExtendedResult result,
DecodeOptions options)
Decodes the provided extended operation result as a
Result of
type S . |
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
.<R extends ExtendedResult> LdapResultHandler<S> adaptExtendedResultHandler(ExtendedRequest<R> request, LdapResultHandler<? super R> resultHandler, DecodeOptions options)
R
- The type of result handler to be adapted.request
- The extended request whose result handler is to be adapted.resultHandler
- The extended result handler which is to be adapted.options
- The set of decode options which should be used when decoding
the extended operation result.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 2011-2017 ForgeRock AS.