Class Json.MapperFactory
- java.lang.Object
-
- org.actioncontroller.optional.json.Json.MapperFactory
-
- All Implemented Interfaces:
AnnotationFactory,HttpParameterMapperFactory<Json>,HttpReturnMapperFactory<Json>
- Enclosing class:
- Json
public static class Json.MapperFactory extends Object implements HttpParameterMapperFactory<Json>, HttpReturnMapperFactory<Json>
-
-
Constructor Summary
Constructors Constructor Description MapperFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClientParameterMapperclientParameterMapper(Json annotation, Parameter parameter)Used byApiClientClassProxyto convert method arguments into HTTP request information.HttpParameterMappercreate(Json annotation, Parameter parameter, ApiControllerContext context)Create a mapper to convert aApiHttpExchangeinto method call arguments.HttpReturnMappercreate(Json annotation, Type returnType, ApiControllerContext context)HttpClientReturnMappercreateClientMapper(Json annotation, Type returnType)protected static Optional<Object>readPojo(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(Json annotation, Parameter parameter, ApiControllerContext context) throws Exception
Description copied from interface:HttpParameterMapperFactoryCreate a mapper to convert aApiHttpExchangeinto method call arguments.- Specified by:
createin interfaceHttpParameterMapperFactory<Json>- Throws:
Exception
-
clientParameterMapper
public HttpClientParameterMapper clientParameterMapper(Json annotation, Parameter parameter)
Description copied from interface:HttpParameterMapperFactoryUsed byApiClientClassProxyto convert method arguments into HTTP request information.- Specified by:
clientParameterMapperin interfaceHttpParameterMapperFactory<Json>
-
readPojo
protected static Optional<Object> readPojo(PojoMapper pojoMapper, ApiHttpExchange exchange, Type targetType) throws IOException
- Throws:
IOException
-
create
public HttpReturnMapper create(Json annotation, Type returnType, ApiControllerContext context)
- Specified by:
createin interfaceHttpReturnMapperFactory<Json>
-
createClientMapper
public HttpClientReturnMapper createClientMapper(Json annotation, Type returnType)
- Specified by:
createClientMapperin interfaceHttpReturnMapperFactory<Json>
-
-