Interface ParameterValueMapper
- All Known Implementing Classes:
ConversionServiceParameterValueMapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ParameterValueMapper
Maps parameter values to the required type when invoking an endpoint.- Since:
- 2.0.0
Field Summary
Fields Modifier and Type Field Description static ParameterValueMapper
NONE
AParameterValueMapper
that does nothing.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
mapParameterValue(OperationParameter parameter, Object value)
Map the specifiedinput
parameter to the givenparameterType
.
Field Detail
NONE
static final ParameterValueMapper NONE
AParameterValueMapper
that does nothing.
Method Detail
mapParameterValue
Object mapParameterValue(OperationParameter parameter, Object value) throws ParameterMappingException
Map the specifiedinput
parameter to the givenparameterType
.- Parameters:
parameter
- the parameter to mapvalue
- a parameter value- Returns:
- a value suitable for that parameter
- Throws:
ParameterMappingException
- when a mapping failure occurs