Package org.actioncontroller.meta
Interface HttpReturnMapperFactory<ANNOTATION extends Annotation>
-
- All Superinterfaces:
AnnotationFactory
- All Known Implementing Classes:
ContentBody.MapperFactory,ContentLocationHeader.MappingFactory,HttpHeader.Mapper,HttpResponseHeader.MappingFactory,Json.MapperFactory,JsonBody.ReturnMapperFactory,SendRedirect.MappingFactory
public interface HttpReturnMapperFactory<ANNOTATION extends Annotation> extends AnnotationFactory
Implementations of this interface should be annotated on annotations used to convert method invocation return values to HTTP response information, such asContentBodyandSendRedirect
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description HttpReturnMappercreate(ANNOTATION annotation, Type returnType, ApiControllerContext context)default HttpClientReturnMappercreateClientMapper(ANNOTATION annotation, Type returnType)static <T extends Annotation>
HttpReturnMapperFactory<T>createFactory(T annotation)static Optional<HttpClientReturnMapper>createNewClientInstance(Method action)static Optional<HttpReturnMapper>createNewInstance(Method action, ApiControllerContext context)
-
-
-
Method Detail
-
createNewInstance
static Optional<HttpReturnMapper> createNewInstance(Method action, ApiControllerContext context)
-
createNewClientInstance
static Optional<HttpClientReturnMapper> createNewClientInstance(Method action)
-
createFactory
static <T extends Annotation> HttpReturnMapperFactory<T> createFactory(T annotation)
-
create
HttpReturnMapper create(ANNOTATION annotation, Type returnType, ApiControllerContext context)
-
createClientMapper
default HttpClientReturnMapper createClientMapper(ANNOTATION annotation, Type returnType)
-
-