1 16 17 package test.encoding; 18 19 import org.apache.axis.Constants; 20 import org.apache.axis.encoding.SerializerFactory; 21 22 import java.util.Iterator ; 23 import java.util.Vector ; 24 25 30 public class DataSerFactory implements SerializerFactory { 31 private Vector mechanisms; 32 33 public DataSerFactory() { 34 } 35 public javax.xml.rpc.encoding.Serializer getSerializerAs(String mechanismType) { 36 return new DataSer(); 37 } 38 public Iterator getSupportedMechanismTypes() { 39 if (mechanisms == null) { 40 mechanisms = new Vector (); 41 mechanisms.add(Constants.AXIS_SAX); 42 } 43 return mechanisms.iterator(); 44 } 45 } 46 | Popular Tags |