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 Summary
Constructors Constructor Description AllowedListDeserializingMessageConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
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:
setAllowedListPatterns(List)
-
checkAllowedList
protected void checkAllowedList(Class<?> clazz)
-
-