public interface RequestMappingsMatcherStrategy
| Modifier and Type | Method and Description |
|---|---|
@NotNull Map<String,String> |
extractPatternVariables(@NotNull String text,
@NotNull RequestMappingInfo mappingInfo)
Extracts variables from event text according to the matched pattern.
|
boolean |
isMatched(@NotNull TelegramEvent telegramEvent,
@NotNull RequestMappingInfo mappingInfo)
Check if mapping info is matched with Telegram event.
|
@NotNull List<HandlerMethodContainer.RequestMapping> |
postProcess(@NotNull List<HandlerMethodContainer.RequestMapping> mappings)
Will be invoked after all mappings is discovered.
|
@NotNull @NotNull List<HandlerMethodContainer.RequestMapping> postProcess(@NotNull @NotNull List<HandlerMethodContainer.RequestMapping> mappings)
mappings - all discovered mappingsboolean isMatched(@NotNull
@NotNull TelegramEvent telegramEvent,
@NotNull
@NotNull RequestMappingInfo mappingInfo)
telegramEvent - event received from Telegram APImappingInfo - mapping info@NotNull @NotNull Map<String,String> extractPatternVariables(@NotNull @NotNull String text, @NotNull @NotNull RequestMappingInfo mappingInfo)
text - Telegram event textmappingInfo - matched handler method metainfoCopyright © 2022. All rights reserved.