public class BotBaseRequestMethodProcessor extends Object implements BotHandlerMethodReturnValueHandler
BaseRequest return type.| Constructor and Description |
|---|
BotBaseRequestMethodProcessor() |
| Modifier and Type | Method and Description |
|---|---|
com.pengrad.telegrambot.request.BaseRequest |
handleReturnValue(Object returnValue,
org.springframework.core.MethodParameter returnType,
TelegramRequest telegramRequest)
Resolves a method parameter into an argument value from a given request.
|
boolean |
supportsReturnType(org.springframework.core.MethodParameter returnType)
Whether the given method return type is supported by this handler.
|
public boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
BotHandlerMethodReturnValueHandlersupportsReturnType in interface BotHandlerMethodReturnValueHandlerreturnType - the method return type to checktrue if this handler supports the supplied return type; false otherwisepublic com.pengrad.telegrambot.request.BaseRequest handleReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType, TelegramRequest telegramRequest)
BotHandlerMethodReturnValueHandlerhandleReturnValue in interface BotHandlerMethodReturnValueHandlerreturnValue - method result to handlereturnType - the method parameter to resolve. This parameter must have previously been passed to BotHandlerMethodReturnValueHandler.supportsReturnType(org.springframework.core.MethodParameter) which must have returned true.telegramRequest - the current telegram requestnull if not resolvableCopyright © 2022. All rights reserved.