Class WebConversionServiceProvider

java.lang.Object
org.springdoc.core.providers.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

    Modifier and Type
    Method
    Description
    convert(Object source, org.springframework.core.convert.TypeDescriptor targetTypeDescriptor)
    Attempts to convert source into the target type as described by targetTypeDescriptor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 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