Package org.actioncontroller.meta
The meta-package contains annotations used on other annotations
to attach behavior to the annotations. The package consists of
Annotations
Apply these to specific annotations to specify their effect:-
HttpParameterMappingannotates annotations used on parameters to specify how to populate the arguments in the context onf anApiHttpExchange(andApiClientExchange) -
HttpReturnMappingannotates annotations used on methods to specify how to deal with a return value in the context of anApiHttpExchange(andApiClientExchange) -
HttpRouterMappingannotates annotations used on methods to specify how to generateApiControllerActions from the methods
Factories
These are used when a controller is initialized to convert the class structure into a list of actions with mappers of parameters and return value.-
ApiControllerActionFactorycreates aApiControllerActionfrom a method -
HttpParameterMapperFactorycreates mappers fromApiHttpExchangeto method invocation arguments -
HttpReturnMapperFactorycreates mappers from method invocation return valueApiHttpExchange
Mappers
These are used during a specific method invocation to convert from the HTTP values to the actual method invocation values.-
HttpParameterMappermaps from anApiHttpExchangeto a method invocation argument -
HttpReturnMappermaps from an method invocation return value toApiHttpExchange -
HttpClientParameterMappermaps from an method invocation arguments toApiClientExchange -
HttpClientParameterMappermaps from anApiClientExchangeto a method invocation return value
-
Interface Summary Interface Description AnnotationFactory ApiControllerActionFactory<ANNOTATION extends Annotation> HttpClientParameterMapper Returned byHttpParameterMapperFactoryto be used withApiClientClassProxyto convert method arguments into HTTP request information.HttpClientReturnMapper Returned byHttpReturnMapperFactoryto be used withApiClientClassProxyto convert HTTP response information into method return values.HttpParameterMapper Returned byHttpParameterMapperFactoryto be used withApiHttpExchangeto convert HTTP request information into method invocation arguments.HttpParameterMapperFactory<ANNOTATION extends Annotation> Implementations of this interface should be annotated on annotations used to convert HTTP requests into method invocation arguments, such asRequestParam,PathParamandUnencryptedCookieHttpReturnMapper Returned byHttpReturnMapperFactoryto be used withApiHttpExchangeto method invocation return values to HTTP response information.HttpReturnMapperFactory<ANNOTATION extends Annotation> Implementations of this interface should be annotated on annotations used to convert method invocation return values to HTTP response information, such asContentBodyandSendRedirect -
Annotation Types Summary Annotation Type Description HttpParameterMapping Attach parameter mapping behavior to an annotation.HttpReturnMapping Attach return value mapping behavior to an annotation.HttpRouterMapping Attach action generation behavior to an annotation.