ColdFusion will invoke this function before invoking the Deserialize function.
Boolean. If true, the deserialize() function of the custom serializer will be called. If false, ColdFusion's default deserializer will be used for serialization.
boolean function canDeSerialize(type)
ColdFusion 11: Added this function. For more information see REST Enhancements in ColdFusion 11.
Parameter |
Description |
|---|---|
type |
Required. String. The type to which the data has to be deserialized. |
<cffunction access="remote" name="canDeSerialize" returntype="boolean"> <cfargument name="type" type="string"/> <!--- If you need to deserialize only XML using the custom serializer. ---> <cfif #type# eq "XML"> <cfreturn true> <cfelse> <cfreturn false> </cfif> </cffunction>
Sign in to your account