public interface ReturnValueHandler
Implementations of this interface are responsible for converting handler method return values to the appropriate protocol response types.
ReturnValueHandlerComposite| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
handleReturnValue(java.lang.Object returnValue,
AcpMethodParameter returnType,
AcpInvocationContext context)
Handle the return value and convert to protocol response.
|
boolean |
supportsReturnType(AcpMethodParameter returnType)
Determine whether this handler supports the given return type.
|
boolean supportsReturnType(AcpMethodParameter returnType)
returnType - the return type metadatajava.lang.Object handleReturnValue(java.lang.Object returnValue,
AcpMethodParameter returnType,
AcpInvocationContext context)
returnValue - the value returned by the handler methodreturnType - the return type metadatacontext - the invocation contextReturnValueHandlingException - if handling fails