Class BinaryToMessageConverter

java.lang.Object
org.springframework.integration.mongodb.support.BinaryToMessageConverter
All Implemented Interfaces:
Converter<org.bson.types.Binary,Message<?>>

@ReadingConverter public class BinaryToMessageConverter extends Object implements Converter<org.bson.types.Binary,Message<?>>
Since:
5.0
Author:
Artem Bilan, Gary Russell
  • Constructor Details

    • BinaryToMessageConverter

      public BinaryToMessageConverter()
  • Method Details

    • convert

      public Message<?> convert(org.bson.types.Binary source)
      Specified by:
      convert in interface Converter<org.bson.types.Binary,Message<?>>
    • addAllowedPatterns

      public void addAllowedPatterns(String... patterns)
      Add patterns for packages/classes that are allowed to be deserialized. A class can be fully qualified or a wildcard '*' is allowed at the beginning or end of the class name. Examples: com.foo.*, *.MyClass.
      Parameters:
      patterns - the patterns.
      Since:
      5.4