public class JmsDefaultDeserializationPolicy extends Object implements JmsDeserializationPolicy
| Modifier and Type | Field and Description |
|---|---|
static String |
BLACKLIST_PROPERTY |
static String |
CATCH_ALL_WILDCARD
Value used to indicate that all classes should be white or black listed,
|
static String |
WHITELIST_PROPERTY |
| Constructor and Description |
|---|
JmsDefaultDeserializationPolicy()
Creates an instance of this policy with default configuration.
|
JmsDefaultDeserializationPolicy(JmsDefaultDeserializationPolicy source) |
| Modifier and Type | Method and Description |
|---|---|
JmsDeserializationPolicy |
copy() |
boolean |
equals(Object obj) |
String |
getBlackList() |
String |
getWhiteList() |
int |
hashCode() |
boolean |
isTrustedType(JmsDestination destination,
Class<?> clazz)
Returns whether the given class is a trusted type and can be deserialized
by the client when calls to
ObjectMessage.getObject() are made. |
void |
setBlackList(String blackList)
Replaces the currently configured blackList with a comma separated
string containing the new blackList.
|
void |
setWhiteList(String whiteList)
Replaces the currently configured whiteList with a comma separated
string containing the new whiteList.
|
public static final String CATCH_ALL_WILDCARD
public static final String WHITELIST_PROPERTY
public static final String BLACKLIST_PROPERTY
public JmsDefaultDeserializationPolicy()
public JmsDefaultDeserializationPolicy(JmsDefaultDeserializationPolicy source)
source - The instance whose configuration should be copied from.public JmsDeserializationPolicy copy()
copy in interface JmsDeserializationPolicypublic boolean isTrustedType(JmsDestination destination, Class<?> clazz)
JmsDeserializationPolicyObjectMessage.getObject() are made.isTrustedType in interface JmsDeserializationPolicydestination - the Destination for the message containing the type to be deserialized.clazz - the Type of the object that is about to be read.public String getWhiteList()
public String getBlackList()
public void setWhiteList(String whiteList)
whiteList - the whiteList that this policy is configured to recognize.public void setBlackList(String blackList)
blackList - the blackList that this policy is configured to recognize.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.