You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2013/07/16 07:56:38 UTC

git commit: Refactor redirecor service stub

Updated Branches:
  refs/heads/master 580c7ad92 -> 862d9eaa6


Refactor redirecor service stub

Signed-off-by: Lakmal Warusawithana <la...@wso2.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/862d9eaa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/862d9eaa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/862d9eaa

Branch: refs/heads/master
Commit: 862d9eaa66531c14c268e3d8c21e4a4e32749be9
Parents: 580c7ad
Author: Manula Thantriwatte <ma...@wso2.com>
Authored: Tue Jul 16 11:09:23 2013 +0530
Committer: Lakmal Warusawithana <la...@wso2.com>
Committed: Tue Jul 16 11:26:22 2013 +0530

----------------------------------------------------------------------
 .../pom.xml                                     | 117 +++++++++++++++++++
 .../resources/RedirectorServletService.wsdl     | 102 ++++++++++++++++
 2 files changed, 219 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/862d9eaa/service-stubs/org.apache.stratos.redirector.servlet.stub/pom.xml
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.redirector.servlet.stub/pom.xml b/service-stubs/org.apache.stratos.redirector.servlet.stub/pom.xml
new file mode 100644
index 0000000..019ef6a
--- /dev/null
+++ b/service-stubs/org.apache.stratos.redirector.servlet.stub/pom.xml
@@ -0,0 +1,117 @@
+<?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">
+
+    <parent>
+        <groupId>org.apache.stratos</groupId>
+        <artifactId>stratos-service-stubs-parent</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.apache.stratos.redirector.servlet.stub</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Stratos - Tenant Specific URL redirector Stub</name>
+    <url>http://apache.org</url>
+
+    <build>
+        <plugins>
+            
+	    <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.1</version>
+                <executions>
+                    <execution>
+                        <id>source-code-generation</id>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+                                    <arg line="-uri src/main/resources/RedirectorServletService.wsdl -u -uw -o target/generated-code
+                                    -p org.apache.stratos.redirector.servlet.stub
+                                    -ns2p http://services.servlet.redirector.stratos.apache.org=org.apache.stratos.redirector.servlet.stub.services,http://util.servlet.redirector.stratos.apache.org/xsd=org.apache.stratos.redirector.servlet.stub.beans.xsd"/>
+                                    <classpath refid="maven.dependency.classpath"/>
+                                    <classpath refid="maven.compile.classpath"/>
+                                    <classpath refid="maven.runtime.classpath"/>
+                                </java>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+                        <Bundle-Name>${project.artifactId}</Bundle-Name>
+                        <Export-Package>
+                            org.apache.stratos.redirector.servlet.stub.*; version="${apache.stratos.version}"
+                        </Export-Package>
+                        <Import-Package>
+                            !org.apache.stratos.redirector.servlet.stub.*,
+			    *;resolution:=optional
+                        </Import-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>add-source</id>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>add-source</goal>
+                        </goals>
+                        <configuration>
+                            <sources>
+                                <source>
+                                    target/generated-code/src
+                                </source>
+                            </sources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2.wso2</groupId>
+            <artifactId>axis2-client</artifactId>
+        </dependency>
+    </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/862d9eaa/service-stubs/org.apache.stratos.redirector.servlet.stub/src/main/resources/RedirectorServletService.wsdl
----------------------------------------------------------------------
diff --git a/service-stubs/org.apache.stratos.redirector.servlet.stub/src/main/resources/RedirectorServletService.wsdl b/service-stubs/org.apache.stratos.redirector.servlet.stub/src/main/resources/RedirectorServletService.wsdl
new file mode 100644
index 0000000..6d14a4c
--- /dev/null
+++ b/service-stubs/org.apache.stratos.redirector.servlet.stub/src/main/resources/RedirectorServletService.wsdl
@@ -0,0 +1,102 @@
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://services.servlet.redirector.stratos.apache.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://services.servlet.redirector.stratos.apache.org">
+    <wsdl:documentation>RedirectorServletService</wsdl:documentation>
+    <wsdl:types>
+        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://services.servlet.redirector.stratos.apache.org">
+            <xs:element name="validateTenantException">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="validateTenantException" nillable="true" type="ns:Exception" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:complexType name="Exception">
+                <xs:sequence>
+                    <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
+                </xs:sequence>
+            </xs:complexType>
+            <xs:element name="validateTenant">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="tenantDomain" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="validateTenantResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+        </xs:schema>
+    </wsdl:types>
+    <wsdl:message name="validateTenantRequest">
+        <wsdl:part name="parameters" element="ns:validateTenant" />
+    </wsdl:message>
+    <wsdl:message name="validateTenantResponse">
+        <wsdl:part name="parameters" element="ns:validateTenantResponse" />
+    </wsdl:message>
+    <wsdl:message name="validateTenantException">
+        <wsdl:part name="parameters" element="ns:validateTenantException" />
+    </wsdl:message>
+    <wsdl:portType name="RedirectorServletServicePortType">
+        <wsdl:operation name="validateTenant">
+            <wsdl:input message="ns:validateTenantRequest" wsaw:Action="urn:validateTenant" />
+            <wsdl:output message="ns:validateTenantResponse" wsaw:Action="urn:validateTenantResponse" />
+            <wsdl:fault message="ns:validateTenantException" name="validateTenantException" wsaw:Action="urn:validateTenantvalidateTenantException" />
+        </wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="RedirectorServletServiceSoap11Binding" type="ns:RedirectorServletServicePortType">
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="validateTenant">
+            <soap:operation soapAction="urn:validateTenant" style="document" />
+            <wsdl:input>
+                <soap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="validateTenantException">
+                <soap:fault use="literal" name="validateTenantException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="RedirectorServletServiceSoap12Binding" type="ns:RedirectorServletServicePortType">
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+        <wsdl:operation name="validateTenant">
+            <soap12:operation soapAction="urn:validateTenant" style="document" />
+            <wsdl:input>
+                <soap12:body use="literal" />
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal" />
+            </wsdl:output>
+            <wsdl:fault name="validateTenantException">
+                <soap12:fault use="literal" name="validateTenantException" />
+            </wsdl:fault>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="RedirectorServletServiceHttpBinding" type="ns:RedirectorServletServicePortType">
+        <http:binding verb="POST" />
+        <wsdl:operation name="validateTenant">
+            <http:operation location="validateTenant" />
+            <wsdl:input>
+                <mime:content type="text/xml" part="parameters" />
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="text/xml" part="parameters" />
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="RedirectorServletService">
+        <wsdl:port name="RedirectorServletServiceHttpsSoap11Endpoint" binding="ns:RedirectorServletServiceSoap11Binding">
+            <soap:address location="https://10.100.0.161:9443/services/RedirectorServletService.RedirectorServletServiceHttpsSoap11Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="RedirectorServletServiceHttpsSoap12Endpoint" binding="ns:RedirectorServletServiceSoap12Binding">
+            <soap12:address location="https://10.100.0.161:9443/services/RedirectorServletService.RedirectorServletServiceHttpsSoap12Endpoint/" />
+        </wsdl:port>
+        <wsdl:port name="RedirectorServletServiceHttpsEndpoint" binding="ns:RedirectorServletServiceHttpBinding">
+            <http:address location="https://10.100.0.161:9443/services/RedirectorServletService.RedirectorServletServiceHttpsEndpoint/" />
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>