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
MessageConverters that potentially use Java deserialization.
- Since:
- 1.5.5
- Author:
- Gary Russell
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllowedListPatterns
(String... patterns) Add package/class patterns to the allowed list.protected void
checkAllowedList
(Class<?> clazz) void
setAllowedListPatterns
(List<String> patterns) Set simple patterns for allowable packages/classes for deserialization.Methods inherited from class org.springframework.amqp.support.converter.AbstractMessageConverter
createMessage, createMessage, isCreateMessageIds, setCreateMessageIds, toMessage, toMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.amqp.support.converter.MessageConverter
fromMessage
-
Constructor Details
-
AllowedListDeserializingMessageConverter
public AllowedListDeserializingMessageConverter()
-
-
Method Details
-
setAllowedListPatterns
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
Add package/class patterns to the allowed list.- Parameters:
patterns
- the patterns to add.- Since:
- 1.5.7
- See Also:
-
checkAllowedList
-