Author: veithen
Date: Tue Oct 14 13:01:32 2008
New Revision: 704651
URL: http://svn.apache.org/viewvc?rev=704651&view=rev
Log:
Moved UDP transport from Synapse to WS-Commons.
Added:
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/AbstractTransportTest.java
- copied, changed from r704591,
synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/AbstractTransportTest.java
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/
- copied from r704591,
synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/udp/
webservices/commons/trunk/modules/transport/modules/udp/
webservices/commons/trunk/modules/transport/modules/udp/pom.xml
webservices/commons/trunk/modules/transport/modules/udp/src/
webservices/commons/trunk/modules/transport/modules/udp/src/main/
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/
- copied from r704591,
synapse/trunk/java/modules/transports/src/main/java/org/apache/synapse/transport/udp/
Modified:
webservices/commons/trunk/modules/transport/modules/tests/pom.xml
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UDPTest.java
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UtilsUDPServer.java
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/Endpoint.java
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/IODispatcher.java
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPConstants.java
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPListener.java
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPOutTransportInfo.java
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/package-info.java
webservices/commons/trunk/modules/transport/pom.xml
Modified: webservices/commons/trunk/modules/transport/modules/tests/pom.xml
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/tests/pom.xml?rev=704651&r1=704650&r2=704651&view=diff
==============================================================================
--- webservices/commons/trunk/modules/transport/modules/tests/pom.xml (original)
+++ webservices/commons/trunk/modules/transport/modules/tests/pom.xml Tue Oct
14 13:01:32 2008
@@ -138,6 +138,14 @@
</exclusion>
</exclusions>
</dependency>
+
+ <!-- UDP transport tests -->
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-transport-udp</artifactId>
+ <version>${pom.version}</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<profiles>
Copied:
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/AbstractTransportTest.java
(from r704591,
synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/AbstractTransportTest.java)
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/AbstractTransportTest.java?p2=webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/AbstractTransportTest.java&p1=synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/AbstractTransportTest.java&r1=704591&r2=704651&rev=704651&view=diff
==============================================================================
---
synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/AbstractTransportTest.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/AbstractTransportTest.java
Tue Oct 14 13:01:32 2008
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.apache.synapse.transport;
+package org.apache.axis2.transport;
import javax.xml.stream.XMLStreamReader;
Modified:
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UDPTest.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UDPTest.java?rev=704651&r1=704591&r2=704651&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UDPTest.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UDPTest.java
Tue Oct 14 13:01:32 2008
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.synapse.transport.udp;
+package org.apache.axis2.transport.udp;
import org.apache.axiom.om.OMElement;
import org.apache.axis2.Constants;
@@ -29,9 +29,9 @@
import org.apache.axis2.description.TransportInDescription;
import org.apache.axis2.description.TransportOutDescription;
import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.transport.AbstractTransportTest;
import org.apache.axis2.transport.CustomAxisConfigurator;
import org.apache.axis2.transport.UtilsTransportServer;
-import org.apache.synapse.transport.AbstractTransportTest;
/**
* Test case for [EMAIL PROTECTED] UDPListener} and [EMAIL PROTECTED]
UDPSender}.
Modified:
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UtilsUDPServer.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UtilsUDPServer.java?rev=704651&r1=704591&r2=704651&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UtilsUDPServer.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/tests/src/test/java/org/apache/axis2/transport/udp/UtilsUDPServer.java
Tue Oct 14 13:01:32 2008
@@ -17,7 +17,7 @@
* under the License.
*/
-package org.apache.synapse.transport.udp;
+package org.apache.axis2.transport.udp;
import java.util.LinkedList;
import java.util.List;
Added: webservices/commons/trunk/modules/transport/modules/udp/pom.xml
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/udp/pom.xml?rev=704651&view=auto
==============================================================================
--- webservices/commons/trunk/modules/transport/modules/udp/pom.xml (added)
+++ webservices/commons/trunk/modules/transport/modules/udp/pom.xml Tue Oct 14
13:01:32 2008
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-transport</artifactId>
+ <version>SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+ <artifactId>axis2-transport-udp</artifactId>
+ <name>Apache Axis2 - Transport - UDP</name>
+ <description>UDP transport for Axis2</description>
+ <packaging>bundle</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.0</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-Version>1.0</Bundle-Version>
+ <Bundle-Name>${pom.artifactId}</Bundle-Name>
+ <Bundle-Vendor>Apache Software
Foundation</Bundle-Vendor>
+
<Bundle-Description>${pom.description}</Bundle-Description>
+
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Export-Package>
+
org.apache.axis2.transport.udp.*;-split-package:=merge-last,
+ </Export-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-transport-base</artifactId>
+ <version>${transport.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </dependency>
+ </dependencies>
+</project>
Modified:
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/Endpoint.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/Endpoint.java?rev=704651&r1=704591&r2=704651&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/Endpoint.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/Endpoint.java
Tue Oct 14 13:01:32 2008
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.synapse.transport.udp;
+package org.apache.axis2.transport.udp;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.transport.base.datagram.DatagramEndpoint;
Modified:
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/IODispatcher.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/IODispatcher.java?rev=704651&r1=704591&r2=704651&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/IODispatcher.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/IODispatcher.java
Tue Oct 14 13:01:32 2008
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.synapse.transport.udp;
+package org.apache.axis2.transport.udp;
import java.io.IOException;
import java.net.InetSocketAddress;
Modified:
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPConstants.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPConstants.java?rev=704651&r1=704591&r2=704651&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPConstants.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPConstants.java
Tue Oct 14 13:01:32 2008
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.synapse.transport.udp;
+package org.apache.axis2.transport.udp;
/**
* Utility class defining constants used by the UDP transport.
Modified:
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPListener.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPListener.java?rev=704651&r1=704591&r2=704651&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPListener.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPListener.java
Tue Oct 14 13:01:32 2008
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.synapse.transport.udp;
+package org.apache.axis2.transport.udp;
import java.io.IOException;
Modified:
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPOutTransportInfo.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPOutTransportInfo.java?rev=704651&r1=704591&r2=704651&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPOutTransportInfo.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPOutTransportInfo.java
Tue Oct 14 13:01:32 2008
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.synapse.transport.udp;
+package org.apache.axis2.transport.udp;
import java.net.URI;
import java.net.URISyntaxException;
Modified:
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java?rev=704651&r1=704591&r2=704651&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/UDPSender.java
Tue Oct 14 13:01:32 2008
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.synapse.transport.udp;
+package org.apache.axis2.transport.udp;
import java.io.IOException;
import java.net.DatagramPacket;
Modified:
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/package-info.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/package-info.java?rev=704651&r1=704591&r2=704651&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/package-info.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/udp/src/main/java/org/apache/axis2/transport/udp/package-info.java
Tue Oct 14 13:01:32 2008
@@ -98,4 +98,4 @@
* some of them.</li>
* </ul>
*/
-package org.apache.synapse.transport.udp;
\ No newline at end of file
+package org.apache.axis2.transport.udp;
\ No newline at end of file
Modified: webservices/commons/trunk/modules/transport/pom.xml
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/pom.xml?rev=704651&r1=704650&r2=704651&view=diff
==============================================================================
--- webservices/commons/trunk/modules/transport/pom.xml (original)
+++ webservices/commons/trunk/modules/transport/pom.xml Tue Oct 14 13:01:32 2008
@@ -38,7 +38,8 @@
<module>modules/parent</module>
<module>modules/base</module>
<module>modules/http</module>
- <module>modules/tcp</module>
+ <module>modules/tcp</module>
+ <module>modules/udp</module>
<module>modules/local</module>
<module>modules/xmpp</module>
<module>modules/mail</module>