Class CustomMimeTypeConverter

java.lang.Object
org.springframework.cloud.stream.converter.CustomMimeTypeConverter

public class CustomMimeTypeConverter extends Object
A custom converter for MimeType that accepts a plain java class name as a shorthand for application/x-java-object;type=the.qualified.ClassName.
Author:
Eric Bottard, David Turanski
  • Constructor Details

    • CustomMimeTypeConverter

      public CustomMimeTypeConverter()
  • Method Details

    • convert

      public org.springframework.util.MimeType convert(String source)
    • andThen

      default <U> org.springframework.core.convert.converter.Converter<String, @Nullable U> andThen(org.springframework.core.convert.converter.Converter<? super org.springframework.util.MimeType, ? extends @Nullable U> arg0)