public abstract class ArgumentsMapperFactory extends Object
| Constructor and Description |
|---|
ArgumentsMapperFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectContextArgumentsMapper(ArgumentsMapperConfig config) |
protected void |
collectSwaggerArgumentsMapper(ArgumentsMapperConfig config) |
protected abstract ArgumentMapper |
createArgumentSame(int swaggerIdx,
int providerIdx) |
protected abstract <T> T |
createArgumentsMapper(ArgumentsMapperConfig config) |
<T> T |
createArgumentsMapper(io.swagger.models.Swagger swagger,
Method swaggerMethod,
List<io.swagger.models.parameters.Parameter> swaggerParameters,
Method providerMethod,
List<io.swagger.models.parameters.Parameter> providerParameters) |
protected abstract ArgumentMapper |
createBodyFieldArgMapper(ArgumentsMapperConfig config,
int swaggerArgIdx,
Map<Integer,Field> fieldMap) |
protected void |
createFactoryMap(List<ContextArgumentMapperFactory> factoryList) |
protected ContextArgumentMapperFactory |
findFactory(Class<?> cls) |
protected int |
findInParameters(String parameterName,
List<io.swagger.models.parameters.Parameter> parameters) |
protected String |
generateSkipParamInfo(String parameterDesc,
ArgumentsMapperConfig config,
String swaggerParameterName) |
protected List<Integer> |
getBodyIndexList(List<io.swagger.models.parameters.Parameter> providerParameters) |
protected void |
mapBodyArg(ArgumentsMapperConfig config,
int providerBodyArgIdx,
int swaggerBodyArgIdx) |
protected void |
processBodyArgMapper(ArgumentsMapperConfig config,
int swaggerIdx) |
protected void |
processBodyFieldArgMapper(ArgumentsMapperConfig config,
int swaggerIdx) |
protected int findInParameters(String parameterName, List<io.swagger.models.parameters.Parameter> parameters)
protected void createFactoryMap(List<ContextArgumentMapperFactory> factoryList)
protected ContextArgumentMapperFactory findFactory(Class<?> cls)
public <T> T createArgumentsMapper(io.swagger.models.Swagger swagger,
Method swaggerMethod,
List<io.swagger.models.parameters.Parameter> swaggerParameters,
Method providerMethod,
List<io.swagger.models.parameters.Parameter> providerParameters)
protected abstract <T> T createArgumentsMapper(ArgumentsMapperConfig config)
protected abstract ArgumentMapper createArgumentSame(int swaggerIdx, int providerIdx)
protected abstract ArgumentMapper createBodyFieldArgMapper(ArgumentsMapperConfig config, int swaggerArgIdx, Map<Integer,Field> fieldMap)
protected void collectSwaggerArgumentsMapper(ArgumentsMapperConfig config)
protected void processBodyArgMapper(ArgumentsMapperConfig config, int swaggerIdx)
protected void mapBodyArg(ArgumentsMapperConfig config, int providerBodyArgIdx, int swaggerBodyArgIdx)
protected void collectContextArgumentsMapper(ArgumentsMapperConfig config)
protected void processBodyFieldArgMapper(ArgumentsMapperConfig config, int swaggerIdx)
protected List<Integer> getBodyIndexList(List<io.swagger.models.parameters.Parameter> providerParameters)
protected String generateSkipParamInfo(String parameterDesc, ArgumentsMapperConfig config, String swaggerParameterName)
Copyright © 2017. All rights reserved.