org/objectweb/proactive/ext/webservices/WSConstants.java

00001 /* 
00002  * ################################################################
00003  * 
00004  * ProActive: The Java(TM) library for Parallel, Distributed, 
00005  *            Concurrent computing with Security and Mobility
00006  * 
00007  * Copyright (C) 1997-2007 INRIA/University of Nice-Sophia Antipolis
00008  * Contact: proactive@objectweb.org
00009  * 
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2.1 of the License, or any later version.
00014  *  
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  * 
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00023  * USA
00024  *  
00025  *  Initial developer(s):               The ProActive Team
00026  *                        http://www.inria.fr/oasis/ProActive/contacts.html
00027  *  Contributor(s): 
00028  * 
00029  * ################################################################
00030  */ 
00031 package org.objectweb.proactive.ext.webservices;
00032 
00033 import java.lang.reflect.Array;
00034 import java.math.BigDecimal;
00035 import java.util.Date;
00036 import java.util.Enumeration;
00037 import java.util.GregorianCalendar;
00038 import java.util.Hashtable;
00039 import java.util.Map;
00040 import java.util.Vector;
00041 
00042 import org.apache.soap.util.xml.QName;
00043 
00044 
00049 public class WSConstants {
00050     public static final String PROACTIVE_PROVIDER = "org.objectweb.proactive.ext.webservices.soap.ProActiveProvider";
00051     public static final String PROACTIVE_STUB = "Stub";
00052     public static final String WSDL_FILE = "Wsdl";
00053     public static final String ROUTER = "/soap/servlet/rpcrouter";
00054     public static final String DOCUMENTATION = "ProActive Active Object";
00055     public static final String COMPONENT_INTERFACE = "Compoment Interface";
00056     public static final String URL_PUBLICATION = "URL";
00057     public static final Vector<String> disallowedMethods = new Vector<String>();
00058 
00059     static {
00060         disallowedMethods.addElement("equals");
00061         disallowedMethods.addElement("toString");
00062         disallowedMethods.addElement("runActivity");
00063         disallowedMethods.addElement("setProxy");
00064         disallowedMethods.addElement("getProxy");
00065         disallowedMethods.addElement("setFcItfName");
00066         disallowedMethods.addElement("isFcInternalItf");
00067         disallowedMethods.addElement("setFcOwner");
00068         disallowedMethods.addElement("setFcIsInternal");
00069         disallowedMethods.addElement("getFcItfName");
00070         disallowedMethods.addElement("getFcItfType");
00071         disallowedMethods.addElement("getFcItfOwner");
00072         disallowedMethods.addElement("isFcInternalItf");
00073         disallowedMethods.addElement("setFcItfImpl");
00074         disallowedMethods.addElement("getFcItfImpl");
00075         disallowedMethods.addElement("setFcType");
00076         disallowedMethods.addElement("getFcItfImpl");
00077         disallowedMethods.addElement("getFcItfImpl");
00078         disallowedMethods.addElement("wait");
00079         disallowedMethods.addElement("notify");
00080         disallowedMethods.addElement("notifyAll");
00081         disallowedMethods.addElement("getClass");
00082         disallowedMethods.addElement("hashCode");
00083     }
00084 
00085     /* A vector containing all supported types by Apache Soap */
00086     protected static Vector<Class> supportedTypes = new Vector<Class>();
00087 
00088     static {
00089         supportedTypes.addElement(String.class);
00090         supportedTypes.addElement(Boolean.class);
00091         supportedTypes.addElement(Boolean.TYPE);
00092         supportedTypes.addElement(Double.class);
00093         supportedTypes.addElement(Double.TYPE);
00094         supportedTypes.addElement(Long.class);
00095         supportedTypes.addElement(Long.TYPE);
00096         supportedTypes.addElement(Float.class);
00097         supportedTypes.addElement(Float.TYPE);
00098         supportedTypes.addElement(Integer.class);
00099         supportedTypes.addElement(Integer.TYPE);
00100         supportedTypes.addElement(Short.class);
00101         supportedTypes.addElement(Byte.class);
00102         supportedTypes.addElement(Byte.TYPE);
00103         supportedTypes.addElement(BigDecimal.class);
00104         supportedTypes.addElement(GregorianCalendar.class);
00105         supportedTypes.addElement(Date.class);
00106         supportedTypes.addElement(QName.class);
00107         supportedTypes.addElement(Array.newInstance(Byte.TYPE, 0).getClass());
00108         supportedTypes.addElement(Array.newInstance(Boolean.TYPE, 0).getClass());
00109         supportedTypes.addElement(Array.newInstance(Double.TYPE, 0).getClass());
00110         supportedTypes.addElement(Array.newInstance(Long.TYPE, 0).getClass());
00111         supportedTypes.addElement(Array.newInstance(Float.TYPE, 0).getClass());
00112         supportedTypes.addElement(Array.newInstance(Integer.TYPE, 0).getClass());
00113         supportedTypes.addElement(Array.newInstance(Object.class, 0).getClass());
00114         supportedTypes.addElement(Vector.class);
00115         supportedTypes.addElement(Hashtable.class);
00116         supportedTypes.addElement(Map.class);
00117         supportedTypes.addElement(Enumeration.class);
00118     }
00119 }

Generated on Mon Jan 22 15:16:11 2007 for ProActive by  doxygen 1.5.1