1 4 5 9 10 25 26 package org.openlaszlo.remote.soap; 27 28 import org.apache.axis.Constants; 29 import org.apache.axis.encoding.TypeMapping; 30 import org.apache.axis.encoding.ser.Base64SerializerFactory; 31 import org.apache.axis.encoding.ser.Base64DeserializerFactory; 32 33 40 public class LZDefaultSOAPEncodingTypeMapping extends LZDefaultTypeMapping { 41 42 private static LZDefaultSOAPEncodingTypeMapping tm = null; 43 46 public static TypeMapping create() { 47 if (tm == null) { 48 tm = new LZDefaultSOAPEncodingTypeMapping(); 49 } 50 return tm; 51 } 52 53 public static TypeMapping createWithDelegate() { 54 TypeMapping ret = new LZDefaultSOAPEncodingTypeMapping(); 55 ret.setDelegate(LZDefaultTypeMapping.getSingleton()); 56 return ret; 57 } 58 59 protected LZDefaultSOAPEncodingTypeMapping() { 60 registerSOAPTypes(); 61 } 62 63 67 private void registerSOAPTypes() { 68 myRegisterSimple(Constants.SOAP_STRING, java.lang.String .class); 71 myRegisterSimple(Constants.SOAP_BOOLEAN, java.lang.Boolean .class); 72 myRegisterSimple(Constants.SOAP_DOUBLE, java.lang.Double .class); 73 myRegisterSimple(Constants.SOAP_FLOAT, java.lang.Float .class); 74 myRegisterSimple(Constants.SOAP_INT, java.lang.Integer .class); 75 myRegisterSimple(Constants.SOAP_INTEGER, java.math.BigInteger .class); 76 myRegisterSimple(Constants.SOAP_DECIMAL, java.math.BigDecimal .class); 77 myRegisterSimple(Constants.SOAP_LONG, java.lang.Long .class); 78 myRegisterSimple(Constants.SOAP_SHORT, java.lang.Short .class); 79 myRegisterSimple(Constants.SOAP_BYTE, java.lang.Byte .class); 80 } 91 } 92 | Popular Tags |