ws-wsrf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r225606 - in /webservices/wsrf/trunk/src/java/org/apache/ws/util/platform: axis/AxisJaxRpcPlatform.java weblogic/ weblogic/WeblogicJaxRpcPlatform.java
Date Wed, 27 Jul 2005 20:23:51 GMT
Author: scamp
Date: Wed Jul 27 13:23:48 2005
New Revision: 225606

URL: http://svn.apache.org/viewcvs?rev=225606&view=rev
Log: (empty)

Added:
    webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/axis/AxisJaxRpcPlatform.java
    webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/weblogic/
    webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/weblogic/WeblogicJaxRpcPlatform.java

Added: webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/axis/AxisJaxRpcPlatform.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/axis/AxisJaxRpcPlatform.java?rev=225606&view=auto
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/axis/AxisJaxRpcPlatform.java
(added)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/axis/AxisJaxRpcPlatform.java
Wed Jul 27 13:23:48 2005
@@ -0,0 +1,75 @@
+package org.apache.ws.util.platform.axis;
+
+import org.apache.ws.util.platform.JaxRpcPlatform;
+
+
+/**
+ * @author Sal Campana
+ */
+public class AxisJaxRpcPlatform extends JaxRpcPlatform
+{
+
+    /**
+     * Axis description.
+     */
+    private static final String AXIS_DESC = "Apache Axis";
+
+    /**
+     * Class name of Axis' impl of SAAJ {@link javax.xml.soap.SOAPFactory} interface.
+     */
+    private static final String IMPL_SOAP_FACTORY_AXIS = "org.apache.axis.soap.SOAPFactoryImpl";
+
+    /**
+     * The services portion of the endpoint url.
+     */
+    private static final String SERVICES_CONTEXT = "/services/";
+
+
+    /**
+     * Returns a short description of the platform.
+     *
+     * @return a short description of the platform
+     */
+    public String getDescription()
+    {
+        return AXIS_DESC;
+    }
+
+    /**
+     * Returns the SOAPFactoryImpl class name.
+     *
+     * @return SOAPFactoryImpl class name.
+     */
+    public String getSoapFactoryImpl()
+    {
+        return IMPL_SOAP_FACTORY_AXIS;
+    }
+
+    /**
+     * Returns the platform-specific endpoint url for a service on a given platform.
+     * <p/>
+     * An example of this would be:</br>
+     * baseWebappUrl = http://localhost:8080/wsrf</br>
+     * serviceName = filesystem</br>
+     * <p/>
+     * On the Axis platform the endpoint URL is:  http://localhost:8080/wsrf/services/filesystem
+     *
+     * @param baseWebappUrl The url containing the webapp context (i.e. http://localhost:8080/wsrf)
+     * @param serviceName   The service name which is registered with the platform
+     * @return The endpoint url for the service.
+     */
+    public String getEndpointUrl(String baseWebappUrl, String serviceName)
+    {
+        return baseWebappUrl + SERVICES_CONTEXT + serviceName;
+    }
+
+    /**
+     * Returns the description of the JAX-RPC platform.
+     *
+     * @return String
+     */
+    public String toString()
+    {
+        return AXIS_DESC;
+    }
+}

Added: webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/weblogic/WeblogicJaxRpcPlatform.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/weblogic/WeblogicJaxRpcPlatform.java?rev=225606&view=auto
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/weblogic/WeblogicJaxRpcPlatform.java
(added)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/util/platform/weblogic/WeblogicJaxRpcPlatform.java
Wed Jul 27 13:23:48 2005
@@ -0,0 +1,69 @@
+package org.apache.ws.util.platform.weblogic;
+
+import org.apache.ws.util.platform.JaxRpcPlatform;
+
+
+/**
+ * @author Sal Campana
+ */
+public class WeblogicJaxRpcPlatform extends JaxRpcPlatform
+{
+
+    /**
+     * WebLogic description.
+     */
+    private static final String WEBLOGIC_DESC = "BEA WebLogic Server";
+
+    /**
+     * Class name of WebLogic's impl of SAAJ {@link javax.xml.soap.SOAPFactory} interface.
+     */
+    private static final String IMPL_SOAP_FACTORY_WEBLOGIC = "weblogic.webservice.core.soap.SOAPFactoryImpl";
+
+    /**
+     * Returns a short description of the platform.
+     *
+     * @return a short description of the platform
+     */
+    public String getDescription()
+    {
+        return WEBLOGIC_DESC;
+    }
+
+    /**
+     * Returns the SOAPFactoryImpl class name.
+     *
+     * @return SOAPFactoryImpl class name.
+     */
+    public String getSoapFactoryImpl()
+    {
+        return IMPL_SOAP_FACTORY_WEBLOGIC;
+    }
+
+    /**
+     * Returns the platform-specific endpoint url for a service on a given platform.
+     * <p/>
+     * An example of this would be:</br>
+     * baseWebappUrl = http://localhost:8080/wsrf</br>
+     * serviceName = filesystem</br>
+     * <p/>
+     * On the Axis platform the endpoint URL is:  http://localhost:8080/wsrf/services/filesystem
+     *
+     * @param baseWebappUrl The url containing the webapp context (i.e. http://localhost:8080/wsrf)
+     * @param serviceName   The service name which is registered with the platform
+     * @return The endpoint url for the service.
+     */
+    public String getEndpointUrl(String baseWebappUrl, String serviceName)
+    {
+        return baseWebappUrl + "/" + serviceName;
+    }
+
+    /**
+     * Returns the description of the JAX-RPC platform.
+     *
+     * @return String
+     */
+    public String toString()
+    {
+        return WEBLOGIC_DESC;
+    }
+}



Mime
View raw message