Class WebConversionServiceProvider

java.lang.Object
org.springdoc.core.providers.WebConversionServiceProvider

public class WebConversionServiceProvider extends Object
The type Web conversion service provider.
Author:
bnasslashen
  • Constructor Details

    • WebConversionServiceProvider

      public WebConversionServiceProvider(Optional<org.springframework.core.convert.support.GenericConversionService> webConversionServiceOptional)
      Instantiates a new Web conversion service provider.
      Parameters:
      webConversionServiceOptional - the web conversion service optional
  • Method Details

    • convert

      @Nullable public Object convert(@Nullable Object source, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)
      Attempts to convert source into the target type as described by targetTypeDescriptor.
      Parameters:
      source - the source
      targetTypeDescriptor - the target type descriptor
      Returns:
      the converted source
    • getSpringConvertedType

      public Class<?> getSpringConvertedType(Class<?> clazz)
      Gets spring converted type.
      Parameters:
      clazz - the clazz
      Returns:
      the spring converted type