Search in sources :

Example 1 with StringSerializerFactory

use of lucee.runtime.net.rpc.server.StringSerializerFactory in project Lucee by lucee.

the class TypeMappingUtil method registerDefaults.

public static void registerDefaults(TypeMappingRegistry tmr) {
    TypeMapping tm = tmr.getDefaultTypeMapping();
    if (!tm.isRegistered(QueryBean.class, RPCConstants.QUERY_QNAME))
        tm.register(QueryBean.class, RPCConstants.QUERY_QNAME, new BeanSerializerFactory(QueryBean.class, RPCConstants.QUERY_QNAME), new BeanDeserializerFactory(QueryBean.class, RPCConstants.QUERY_QNAME));
    // Adding custom string serialization for non printable characters.
    tm.register(String.class, RPCConstants.STRING_QNAME, new StringSerializerFactory(String.class, RPCConstants.STRING_QNAME), new StringDeserializerFactory(String.class, RPCConstants.STRING_QNAME));
}
Also used : BeanDeserializerFactory(org.apache.axis.encoding.ser.BeanDeserializerFactory) TypeMapping(javax.xml.rpc.encoding.TypeMapping) BeanSerializerFactory(org.apache.axis.encoding.ser.BeanSerializerFactory) StringSerializerFactory(lucee.runtime.net.rpc.server.StringSerializerFactory) StringDeserializerFactory(lucee.runtime.net.rpc.server.StringDeserializerFactory) QueryBean(coldfusion.xml.rpc.QueryBean)

Aggregations

QueryBean (coldfusion.xml.rpc.QueryBean)1 TypeMapping (javax.xml.rpc.encoding.TypeMapping)1 StringDeserializerFactory (lucee.runtime.net.rpc.server.StringDeserializerFactory)1 StringSerializerFactory (lucee.runtime.net.rpc.server.StringSerializerFactory)1 BeanDeserializerFactory (org.apache.axis.encoding.ser.BeanDeserializerFactory)1 BeanSerializerFactory (org.apache.axis.encoding.ser.BeanSerializerFactory)1