Class AllowedListDeserializingMessageConverter

java.lang.Object
org.springframework.amqp.support.converter.AbstractMessageConverter
org.springframework.amqp.support.converter.AllowedListDeserializingMessageConverter
All Implemented Interfaces:
MessageConverter
Direct Known Subclasses:
SerializerMessageConverter, SimpleMessageConverter

public abstract class AllowedListDeserializingMessageConverter extends AbstractMessageConverter
MessageConverters that potentially use Java deserialization.
Since:
1.5.5
Author:
Gary Russell
  • Constructor Details

    • AllowedListDeserializingMessageConverter

      public AllowedListDeserializingMessageConverter()
  • Method Details

    • setAllowedListPatterns

      public void setAllowedListPatterns(List<String> patterns)
      Set simple patterns for allowable packages/classes for deserialization. The patterns will be applied in order until a match is found. 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.
    • addAllowedListPatterns

      public void addAllowedListPatterns(String... patterns)
      Add package/class patterns to the allowed list.
      Parameters:
      patterns - the patterns to add.
      Since:
      1.5.7
      See Also:
    • checkAllowedList

      protected void checkAllowedList(Class<?> clazz)