package_scan/package_scan library

Classes

Body<T>
DeleteRoute
FunctionAsFilter
GetRoute
GlobalFilter
HeadRoute
Injectable
InjectableProcessor
Injected
OptionsRoute
PackageScanner
PatchRoute
PathParam
NOTE: path-param dont support optional type
PlainBodyWrapper<T>
wrapper around plain body to be able to use generic type
PostRoute
ProcessedComponent
PutRoute
QueryParam
QueryRoute
RawComponent
RequestRoute
ScanComponent
Base annotation for top level annotations, if ANYTHING is not annotated with this, it's not processed All top level annotations SHOULD extends this if they wanna be processed

Functions

bodyListParser<T>(String body, ObjectMapper om) List<T>
internal parser/caster to list
bodyMapParser<T>(String body, ObjectMapper om) Map<String, T>
internal parser/caster to map
plainBodyParser<T>(String body, ObjectMapper om) PlainBodyWrapper<T>
internal parser/caster to plain Object (Wrapped to allow using generics)
processBodyAnnotation(List<ParamExtractor> positionalArgumentsFunctions, Map<Symbol, ParamExtractor> namedArgumentsFunctions, ParameterMirror singleParam, ObjectMapper om) bool
processHeaderAnnotation(List<ParamExtractor> positionalArgumentsFunctions, Map<Symbol, ParamExtractor> namedArgumentsFunctions, ParameterMirror singleParam) bool
processPathParamAnnotation(List<ParamExtractor> positionalArgumentsFunctions, Map<Symbol, ParamExtractor> namedArgumentsFunctions, ParameterMirror singleParam) bool
processQueryParamAnnotation(List<ParamExtractor> positionalArgumentsFunctions, Map<Symbol, ParamExtractor> namedArgumentsFunctions, ParameterMirror singleParam) bool

Typedefs

FunctionFilter = FutureOr<ResponseEntity> Function(RequestEntity request, FilterChain chain)
ParamExtractor = dynamic Function(RequestEntity request)
Function used to extract a param, like the body or an header from a request