1 16 17 package test.encoding; 18 19 import org.apache.axis.Constants; 20 import org.apache.axis.encoding.DeserializerFactory; 21 22 import java.util.Iterator ; 23 import java.util.Vector ; 24 25 30 public class DataDeserFactory implements DeserializerFactory { 31 private Vector mechanisms; 32 33 public DataDeserFactory() { 34 } 35 public javax.xml.rpc.encoding.Deserializer getDeserializerAs(String mechanismType) { 36 return new DataDeser(); 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 |