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.
Maps parameter values to the required type when invoking an endpoint.
- Since:
- 2.0.0
- Author:
- Stephane Nicoll
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ParameterValueMapper
AParameterValueMapper
that does nothing. -
Method Summary
Modifier and TypeMethodDescriptionmapParameterValue
(OperationParameter parameter, Object value) Map the specifiedinput
parameter to the givenparameterType
.
-
Field Details
-
NONE
AParameterValueMapper
that does nothing.
-
-
Method Details
-
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
-