Package org.springdoc.core
Class WebConversionServiceProvider
- java.lang.Object
-
- org.springdoc.core.WebConversionServiceProvider
-
public class WebConversionServiceProvider extends Object
The type Web conversion service provider.- Author:
- bnasslashen
-
-
Constructor Summary
Constructors Constructor Description WebConversionServiceProvider(Optional<org.springframework.boot.autoconfigure.web.format.WebConversionService> webConversionServiceOptional)Instantiates a new Web conversion service provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectconvert(Object source, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)Attempts to convertsourceinto the target type as described bytargetTypeDescriptor.
-
-
-
Constructor Detail
-
WebConversionServiceProvider
public WebConversionServiceProvider(Optional<org.springframework.boot.autoconfigure.web.format.WebConversionService> webConversionServiceOptional)
Instantiates a new Web conversion service provider.- Parameters:
webConversionServiceOptional- the web conversion service optional
-
-
Method Detail
-
convert
@Nullable public Object convert(@Nullable Object source, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)
Attempts to convertsourceinto the target type as described bytargetTypeDescriptor.- Parameters:
source- the sourcetargetTypeDescriptor- the target type descriptor- Returns:
- the converted source
-
-