Author: tyrell
Date: Sun Mar 9 23:16:24 2008
New Revision: 14624
Log:
Enabling sharing backward compatibility with previous versions.
Modified:
trunk/mashup/java/modules/coreservices/servicesharinghelper/src/org/wso2/mashup/coreservices/servicesharinghelper/ServiceSharingHelper.java
Modified:
trunk/mashup/java/modules/coreservices/servicesharinghelper/src/org/wso2/mashup/coreservices/servicesharinghelper/ServiceSharingHelper.java
==============================================================================
---
trunk/mashup/java/modules/coreservices/servicesharinghelper/src/org/wso2/mashup/coreservices/servicesharinghelper/ServiceSharingHelper.java
(original)
+++
trunk/mashup/java/modules/coreservices/servicesharinghelper/src/org/wso2/mashup/coreservices/servicesharinghelper/ServiceSharingHelper.java
Sun Mar 9 23:16:24 2008
@@ -52,6 +52,12 @@
throws IOException {
boolean success;
+ //Adding this to maintain backward compatibility with older versions
of the Mashup Server
+ String overWrite = "false";
+ if(overwriteExisting != null){
+ overWrite = overwriteExisting;
+ }
+
MessageContext currentMessageContext =
MessageContext.getCurrentMessageContext();
AxisConfiguration configuration =
currentMessageContext.getAxisService()
.getAxisConfiguration();
@@ -82,7 +88,7 @@
serviceName.substring(serviceName.indexOf(MashupConstants.SEPARATOR_CHAR) + 1);
masshupArchiveManupulator.uploadMashupService(destinationServerAddress,
dataHandler,
configContext,
serviceJS.getName(),
- shortServiceName,
username, password, overwriteExisting);
+ shortServiceName,
username, password, overWrite);
log
.info("Shared Service \'" + serviceName + "' to the
destination server"
+ destinationServerAddress + " at " +
date.format(currentTime) + "from "
@@ -96,12 +102,6 @@
throws IOException {
boolean success;
- //Adding this to maintain backward compatibility with older versions
of the Mashup Server
- String overWrite = "false";
- if(overwriteExisting != null){
- overWrite = overwriteExisting;
- }
-
MessageContext currentMessageContext =
MessageContext.getCurrentMessageContext();
AxisConfiguration configuration =
currentMessageContext.getAxisService()
.getAxisConfiguration();
@@ -132,7 +132,7 @@
serviceName.substring(serviceName.indexOf(MashupConstants.SEPARATOR_CHAR) + 1);
masshupArchiveManupulator.uploadMashupService(destinationServerAddress,
dataHandler,
configContext,
serviceJS.getName(),
- shortServiceName,
infoCardToken, overWrite);
+ shortServiceName,
infoCardToken, overwriteExisting);
log
.info("Shared Service \'" + serviceName + "' to the
destination server"
+ destinationServerAddress + " at " +
date.format(currentTime) + "from "
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev