public class ConversionServiceParameterValueMapper extends Object implements ParameterValueMapper
ParameterValueMapper
backed by a ConversionService
.NONE
Constructor and Description |
---|
ConversionServiceParameterValueMapper()
Create a new
ConversionServiceParameterValueMapper instance. |
ConversionServiceParameterValueMapper(org.springframework.core.convert.ConversionService conversionService)
Create a new
ConversionServiceParameterValueMapper instance backed by a
specific conversion service. |
Modifier and Type | Method and Description |
---|---|
Object |
mapParameterValue(OperationParameter parameter,
Object value)
Map the specified
input parameter to the given parameterType . |
public ConversionServiceParameterValueMapper()
ConversionServiceParameterValueMapper
instance.public ConversionServiceParameterValueMapper(org.springframework.core.convert.ConversionService conversionService)
ConversionServiceParameterValueMapper
instance backed by a
specific conversion service.conversionService
- the conversion servicepublic Object mapParameterValue(OperationParameter parameter, Object value) throws ParameterMappingException
ParameterValueMapper
input
parameter to the given parameterType
.mapParameterValue
in interface ParameterValueMapper
parameter
- the parameter to mapvalue
- a parameter valueParameterMappingException
- when a mapping failure occursCopyright © 2020 Pivotal Software, Inc.. All rights reserved.