Package org.actioncontroller.values.json
Class JsonBody.MapperFactory
- java.lang.Object
-
- org.actioncontroller.values.json.JsonBody.MapperFactory
-
- All Implemented Interfaces:
AnnotationFactory,HttpParameterMapperFactory<JsonBody>
- Enclosing class:
- JsonBody
public static class JsonBody.MapperFactory extends Object implements HttpParameterMapperFactory<JsonBody>
-
-
Constructor Summary
Constructors Constructor Description MapperFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClientParameterMapperclientParameterMapper(JsonBody annotation, Parameter parameter)Used byApiClientClassProxyto convert method arguments into HTTP request information.HttpParameterMappercreate(JsonBody annotation, Parameter parameter, ApiControllerContext context)Create a mapper to convert aApiHttpExchangeinto method call arguments.protected HttpParameterMappercreateMapper(org.jsonbuddy.pojo.PojoMapper pojoMapper, Parameter parameter)protected static Optional<Object>readPojo(org.jsonbuddy.pojo.PojoMapper pojoMapper, ApiHttpExchange exchange, Type targetType)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.actioncontroller.meta.HttpParameterMapperFactory
safeCreate
-
-
-
-
Method Detail
-
create
public HttpParameterMapper create(JsonBody annotation, Parameter parameter, ApiControllerContext context)
Description copied from interface:HttpParameterMapperFactoryCreate a mapper to convert aApiHttpExchangeinto method call arguments.- Specified by:
createin interfaceHttpParameterMapperFactory<JsonBody>
-
createMapper
protected HttpParameterMapper createMapper(org.jsonbuddy.pojo.PojoMapper pojoMapper, Parameter parameter)
-
readPojo
protected static Optional<Object> readPojo(org.jsonbuddy.pojo.PojoMapper pojoMapper, ApiHttpExchange exchange, Type targetType) throws IOException
- Throws:
IOException
-
clientParameterMapper
public HttpClientParameterMapper clientParameterMapper(JsonBody annotation, Parameter parameter)
Description copied from interface:HttpParameterMapperFactoryUsed byApiClientClassProxyto convert method arguments into HTTP request information.- Specified by:
clientParameterMapperin interfaceHttpParameterMapperFactory<JsonBody>
-
-