Package org.apache.qpid.jms.policy
Interface JmsDeserializationPolicy
-
- All Known Implementing Classes:
JmsDefaultDeserializationPolicy
public interface JmsDeserializationPolicyDefines the interface for a policy object that controls what types of message content are permissible when the body of an incoming ObjectMessage is being deserialized.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JmsDeserializationPolicycopy()booleanisTrustedType(JmsDestination destination, java.lang.Class<?> clazz)Returns whether the given class is a trusted type and can be deserialized by the client when calls toObjectMessage.getObject()are made.
-
-
-
Method Detail
-
copy
JmsDeserializationPolicy copy()
-
isTrustedType
boolean isTrustedType(JmsDestination destination, java.lang.Class<?> clazz)
Returns whether the given class is a trusted type and can be deserialized by the client when calls toObjectMessage.getObject()are made.- Parameters:
destination- the Destination for the message containing the type to be deserialized.clazz- the Type of the object that is about to be read.- Returns:
- true if the type is trusted or false if not.
-
-