| Modifier and Type | Field and Description |
|---|---|
| public static final Log | defaultLogger
Public for wrapping with fallback logger. |
| private Log | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HandlerMethodReturnValueHandlerComposite | addHandler(HandlerMethodReturnValueHandler returnValueHandler)
Add the given |
| public HandlerMethodReturnValueHandlerComposite | addHandlers(List<? extends HandlerMethodReturnValueHandler> handlers)
Add the given |
| public void | |
| public Log | |
| private HandlerMethodReturnValueHandler | |
| public List | |
| public void | handleReturnValue(Object
the value returned from the handler method returnValue, MethodParameter the type of the return value. This type must have previously
been passed to returnType, Message<?> supportsReturnType(org.
and it must have returned true.the message that caused this method to be called message)Implements org. Handle the given return value. |
| public boolean | isAsyncReturnValue(Object
the value returned from the handler method returnValue, MethodParameter the type of the return value returnType)Implements org. Whether the return value represents an asynchronous, Future-like type with success and error callbacks. |
| public void | |
| public boolean | supportsReturnType(MethodParameter
the method return type to check returnType)Implements org. Whether the given method return type is supported by this handler. |
| public CompletableFuture | toCompletableFuture(Object
the value returned from the handler method returnValue, MethodParameter the type of the return value returnType)Implements org. Adapt the asynchronous return value to a |
| defaultLogger | back to summary |
|---|---|
| public static final Log defaultLogger Public for wrapping with fallback logger. | |
| logger | back to summary |
|---|---|
| private Log logger | |
| returnValueHandlers | back to summary |
|---|---|
| private final List<HandlerMethodReturnValueHandler> returnValueHandlers | |
| HandlerMethodReturnValueHandlerComposite | back to summary |
|---|---|
| public HandlerMethodReturnValueHandlerComposite() | |
| addHandler | back to summary |
|---|---|
| public HandlerMethodReturnValueHandlerComposite addHandler(HandlerMethodReturnValueHandler returnValueHandler) Add the given | |
| addHandlers | back to summary |
|---|---|
| public HandlerMethodReturnValueHandlerComposite addHandlers(List<? extends HandlerMethodReturnValueHandler> handlers) Add the given | |
| clear | back to summary |
|---|---|
| public void clear() Clear the list of configured handlers. | |
| getLogger | back to summary |
|---|---|
| public Log getLogger() Return the currently configured Logger.
| |
| getReturnValueHandler | back to summary |
|---|---|
private HandlerMethodReturnValueHandler getReturnValueHandler(MethodParameter returnType)
| |
| getReturnValueHandlers | back to summary |
|---|---|
| public List Return a read-only list with the configured handlers. | |
| handleReturnValue | back to summary |
|---|---|
| public void handleReturnValue(Object returnValue, MethodParameter returnType, Message<?> message) throws Exception Implements org. Doc from org. Handle the given return value.
| |
| isAsyncReturnValue | back to summary |
|---|---|
| public boolean isAsyncReturnValue(Object returnValue, MethodParameter returnType) Implements org. Whether the return value represents an asynchronous, Future-like type
with success and error callbacks. If this method returns Note this method will only be invoked after
| |
| setLogger | back to summary |
|---|---|
| public void setLogger(Log logger) Set an alternative logger to use than the one based on the class name.
| |
| supportsReturnType | back to summary |
|---|---|
| public boolean supportsReturnType(MethodParameter returnType) Implements org. Doc from org. Whether the given method return type is supported by this handler.
| |
| toCompletableFuture | back to summary |
|---|---|
| public CompletableFuture Implements org. Adapt the asynchronous return value to a Return value handling will then continue when the CompletableFuture is completed with either success or error. Note this method will only be invoked after
| |