svn commit: r1328884 - /axis/axis2/java/sandesha/trunk/pom.xml

2012-04-22 Thread veithen
Author: veithen
Date: Sun Apr 22 14:05:24 2012
New Revision: 1328884

URL: http://svn.apache.org/viewvc?rev=1328884&view=rev
Log:
Setting uniqueVersion=true to prevent the Synapse build from downloading the 
wrong version.

Modified:
axis/axis2/java/sandesha/trunk/pom.xml

Modified: axis/axis2/java/sandesha/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/pom.xml?rev=1328884&r1=1328883&r2=1328884&view=diff
==
--- axis/axis2/java/sandesha/trunk/pom.xml (original)
+++ axis/axis2/java/sandesha/trunk/pom.xml Sun Apr 22 14:05:24 2012
@@ -434,14 +434,4 @@
  
http://maven.apache.org/plugins/maven-site-plugin/examples/creating-content.html
 -->
 ${project.version}
 
-
-
-
-apache.snapshots.https
-${distMgmtSnapshotsName}
-${distMgmtSnapshotsUrl}
-false
-
-
-
 




svn commit: r1328921 - in /axis/axis2/java/core/trunk/modules: jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java kernel/src/org/apache/axis2/util/WrappedDataHandler.java

2012-04-22 Thread veithen
Author: veithen
Date: Sun Apr 22 18:11:43 2012
New Revision: 1328921

URL: http://svn.apache.org/viewvc?rev=1328921&view=rev
Log:
Some code simplifications using Axiom features.

Modified:

axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java

axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/WrappedDataHandler.java

Modified: 
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java?rev=1328921&r1=1328920&r2=1328921&view=diff
==
--- 
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java
 Sun Apr 22 18:11:43 2012
@@ -23,13 +23,13 @@ import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMOutputFormat;
 import org.apache.axiom.om.OMSourcedElement;
 import org.apache.axiom.om.impl.OMMultipartWriter;
-import org.apache.axiom.util.activation.DataHandlerWrapper;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.jaxws.handler.AttachmentsAdapter;
 import org.apache.axis2.jaxws.message.databinding.DataSourceBlock;
 import org.apache.axis2.transport.MessageFormatter;
 import org.apache.axis2.transport.http.ApplicationXMLFormatter;
 import org.apache.axis2.transport.http.util.URLTemplatingUtil;
+import org.apache.axis2.util.WrappedDataHandler;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -70,11 +70,7 @@ public class DataSourceFormatter impleme
 OMMultipartWriter mpw = new OMMultipartWriter(outputStream, 
format);
 DataHandler rootDataHandler = new DataHandler(busObject);
 if (!rootDataHandler.getContentType().equals(contentType)) {
-rootDataHandler = new DataHandlerWrapper(rootDataHandler) {
-public String getContentType() {
-return contentType;
-}
-};
+rootDataHandler = new WrappedDataHandler(rootDataHandler, 
contentType);
 }
 try {
 mpw.writePart(rootDataHandler, format.getRootContentId());

Modified: 
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/WrappedDataHandler.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/WrappedDataHandler.java?rev=1328921&r1=1328920&r2=1328921&view=diff
==
--- 
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/WrappedDataHandler.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/WrappedDataHandler.java
 Sun Apr 22 18:11:43 2012
@@ -19,17 +19,9 @@
 
 package org.apache.axis2.util;
 
-import java.awt.datatransfer.DataFlavor;
-import java.awt.datatransfer.UnsupportedFlavorException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import javax.activation.CommandInfo;
-import javax.activation.CommandMap;
 import javax.activation.DataHandler;
-import javax.activation.DataSource;
 
+import org.apache.axiom.util.activation.DataHandlerWrapper;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -39,41 +31,11 @@ import org.apache.commons.logging.LogFac
  * the DataHandler instance.   We'll delegate all method calls except for 
getContentType()
  * to the real DataHandler instance.   
  */
-public class WrappedDataHandler extends DataHandler {
+public class WrappedDataHandler extends DataHandlerWrapper {
 
 private static final Log log = LogFactory.getLog(WrappedDataHandler.class);
 
-DataHandler delegate;
-String contentType;
-
-private static FakeDataSource FAKE_DS = new FakeDataSource();
-
-// This class is simply used as a fake DataSource implementation so that 
the
-// WrappedDataHandler class can call it's superclass's ctor with a non-null
-// value that implements DataSource.   The FakeDataSource instance will 
never
-// be used, however.  It's simply a placeholder.
-private static class FakeDataSource implements DataSource {
-
-
-public String getContentType() {
-return "application/octet-stream";
-}
-
-
-public InputStream getInputStream() throws IOException {
-throw new UnsupportedOperationException();
-}
-
-
-public String getName() {
-return "FakeDataSource";
-}
-
-
-public OutputStream getOutputStream() throws IOException {
- 

svn commit: r1329076 - /axis/axis2/java/sandesha/branches/1_6/pom.xml

2012-04-22 Thread sagara
Author: sagara
Date: Mon Apr 23 06:06:10 2012
New Revision: 1329076

URL: http://svn.apache.org/viewvc?rev=1329076&view=rev
Log:
Set 1.6.2 as Axis2 version. 

Modified:
axis/axis2/java/sandesha/branches/1_6/pom.xml

Modified: axis/axis2/java/sandesha/branches/1_6/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/sandesha/branches/1_6/pom.xml?rev=1329076&r1=1329075&r2=1329076&view=diff
==
--- axis/axis2/java/sandesha/branches/1_6/pom.xml (original)
+++ axis/axis2/java/sandesha/branches/1_6/pom.xml Mon Apr 23 06:06:10 2012
@@ -435,7 +435,7 @@
 
 
 
-1.6.2-SNAPSHOT
+1.6.2
 1.6.2-SNAPSHOT
 1.2.13
 1.1.1




svn commit: r1329077 - /axis/axis2/java/rampart/branches/1_6/pom.xml

2012-04-22 Thread sagara
Author: sagara
Date: Mon Apr 23 06:08:07 2012
New Revision: 1329077

URL: http://svn.apache.org/viewvc?rev=1329077&view=rev
Log:
Set 1.6.2 as Axis2 version.

Modified:
axis/axis2/java/rampart/branches/1_6/pom.xml

Modified: axis/axis2/java/rampart/branches/1_6/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/rampart/branches/1_6/pom.xml?rev=1329077&r1=1329076&r2=1329077&view=diff
==
--- axis/axis2/java/rampart/branches/1_6/pom.xml (original)
+++ axis/axis2/java/rampart/branches/1_6/pom.xml Mon Apr 23 06:08:07 2012
@@ -394,7 +394,7 @@
 
 
 
-1.6.2-SNAPSHOT
+1.6.2
 1.2.13
 
 1.6.4




svn commit: r1329084 - /axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java

2012-04-22 Thread sagara
Author: sagara
Date: Mon Apr 23 06:50:35 2012
New Revision: 1329084

URL: http://svn.apache.org/viewvc?rev=1329084&view=rev
Log:
Fixed - AXIS2-5298 , added a logic to cover the mentioned issue. 

Modified:

axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java

Modified: 
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java?rev=1329084&r1=1329083&r2=1329084&view=diff
==
--- 
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java
 Mon Apr 23 06:50:35 2012
@@ -126,6 +126,11 @@ public class Axis2EndpointReferenceFacto
 // just to keep it clean:
 if (axis2EPR.getAddress().endsWith("/") && 
wsdlDocumentLocation.startsWith("/")) {
 wsdlDocumentLocation = axis2EPR.getAddress() + 
wsdlDocumentLocation.substring(1);
+
+} else if (axis2EPR.getAddress().endsWith("/")){
+String eprAddress = axis2EPR.getAddress();
+wsdlDocumentLocation = eprAddress.substring(0, 
eprAddress.length() - 1)  + wsdlDocumentLocation;
+
 } else {
 wsdlDocumentLocation = axis2EPR.getAddress() + 
wsdlDocumentLocation;
 }