Package org.actioncontroller.meta
Interface HttpParameterMapperFactory<ANNOTATION extends Annotation>
-
- All Superinterfaces:
AnnotationFactory
- All Known Implementing Classes:
ClientCertificate.MapperFactory,ContentBody.ParameterMapperFactory,ContextUrl.MapperFactory,HttpHeader.Mapper,IfModifiedSince.Mapper,Json.MapperFactory,JsonBody.MapperFactory,LastModified.Mapper,PathParam.MapperFactory,QueryString.ParameterMapperFactory,RequestParam.ClientIpParameterMapperFactory,RequestParam.MapperFactory,RequestParam.RemoteUserParameterMapperFactory,ServletUrl.MapperFactory,SessionParameter.MapperFactory,UnencryptedCookie.Factory,UnencryptedCookiePreview.Factory,UnencryptedJsonCookie.MapperFactory,UserPrincipal.MapperFactory
public interface HttpParameterMapperFactory<ANNOTATION extends Annotation> extends AnnotationFactory
Implementations of this interface should be annotated on annotations used to convert HTTP requests into method invocation arguments, such asRequestParam,PathParamandUnencryptedCookie
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default HttpClientParameterMapperclientParameterMapper(ANNOTATION annotation, Parameter parameter)Used byApiClientClassProxyto convert method arguments into HTTP request information.HttpParameterMappercreate(ANNOTATION annotation, Parameter parameter, ApiControllerContext context)Create a mapper to convert aApiHttpExchangeinto method call arguments.static <T extends Annotation>
HttpParameterMapperFactory<T>createFactory(T annotation)static Optional<HttpClientParameterMapper>createNewClientInstance(Parameter parameter)static Optional<HttpParameterMapper>createNewInstance(Parameter parameter, ApiControllerContext context)default HttpParameterMappersafeCreate(ANNOTATION annotation, Parameter parameter, ApiControllerContext context)
-
-
-
Method Detail
-
createNewInstance
static Optional<HttpParameterMapper> createNewInstance(Parameter parameter, ApiControllerContext context)
-
createNewClientInstance
static Optional<HttpClientParameterMapper> createNewClientInstance(Parameter parameter)
-
createFactory
static <T extends Annotation> HttpParameterMapperFactory<T> createFactory(T annotation)
-
create
HttpParameterMapper create(ANNOTATION annotation, Parameter parameter, ApiControllerContext context) throws Exception
Create a mapper to convert aApiHttpExchangeinto method call arguments.- Throws:
Exception
-
safeCreate
default HttpParameterMapper safeCreate(ANNOTATION annotation, Parameter parameter, ApiControllerContext context)
-
clientParameterMapper
default HttpClientParameterMapper clientParameterMapper(ANNOTATION annotation, Parameter parameter)
Used byApiClientClassProxyto convert method arguments into HTTP request information.
-
-