KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tableapp > business > axis > AccessSerFactory


1 package tableapp.business.axis;
2
3 /**
4  * <p>Title: </p>
5  * <p>Description: </p>
6  * <p>Copyright: Copyright (c) 2005</p>
7  * <p>Company: </p>
8  * @author not attributable
9  * @version 1.0
10  */

11
12 import tableapp.business.axis.AccessSer;
13
14 import org.apache.axis.Constants;
15 import org.apache.axis.encoding.SerializerFactory;
16
17 import java.util.Iterator JavaDoc;
18 import java.util.Vector JavaDoc;
19
20 public class AccessSerFactory implements SerializerFactory {
21     private Vector JavaDoc mechanisms;
22
23     public AccessSerFactory() {
24     }
25     public javax.xml.rpc.encoding.Serializer JavaDoc getSerializerAs(String JavaDoc mechanismType) {
26         return new AccessSer();
27     }
28     public Iterator JavaDoc getSupportedMechanismTypes() {
29         if (mechanisms == null) {
30             mechanisms = new Vector JavaDoc();
31             mechanisms.add(Constants.AXIS_SAX);
32         }
33         return mechanisms.iterator();
34     }
35
36 }
Popular Tags