[jboss-svn-commits] JBL Code SVN: r32230 - in labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject: .settings and 13 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Mar 25 18:39:04 EDT 2010


Author: burrsutter
Date: 2010-03-25 18:39:04 -0400 (Thu, 25 Mar 2010)
New Revision: 32230

Added:
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.classpath
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.project
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/.jsdtscope
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.jdt.core.prefs
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.common.component
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.common.project.facet.core.xml
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.jsdt.ui.superType.container
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.jsdt.ui.superType.name
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.ws.service.policy.prefs
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/META-INF/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/META-INF/MANIFEST.MF
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/WEB-INF/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/WEB-INF/lib/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/WEB-INF/web.xml
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/build/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/build/classes/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/webservices/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/webservices/HelloWorld.java
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/webservices/SubmitOrder.java
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/Customer.java
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/OrderHeader.java
   labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/OrderItem.java
Log:
initial checkin

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.classpath
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.classpath	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.classpath	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss SOA GA 5.0 Runtime">
+		<attributes>
+			<attribute name="owner.project.facets" value="jst.web"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+	<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss SOA GA3 5.0 Runtime">
+		<attributes>
+			<attribute name="owner.project.facets" value="jst.web"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss SOA 5.0 Runtime">
+		<attributes>
+			<attribute name="owner.project.facets" value="jst.web"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_18_32bit">
+		<attributes>
+			<attribute name="owner.project.facets" value="jst.java"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="output" path="build/classes"/>
+</classpath>

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.project
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.project	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.project	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>DemoWebProject</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+	</natures>
+</projectDescription>

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/.jsdtscope
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/.jsdtscope	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/.jsdtscope	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+		<attributes>
+			<attribute name="hide" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+	<classpathentry kind="output" path=""/>
+</classpath>

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.jdt.core.prefs	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.jdt.core.prefs	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,7 @@
+#Thu Mar 04 17:40:27 EST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.common.component
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.common.component	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.common.component	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+    <wb-module deploy-name="DemoWebProject">
+        <wb-resource deploy-path="/" source-path="/WebContent"/>
+        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
+        <property name="context-root" value="DemoWebProject"/>
+        <property name="java-output-path" value="/DemoWebProject/build/classes"/>
+    </wb-module>
+</project-modules>

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.common.project.facet.core.xml	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.common.project.facet.core.xml	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+  <runtime name="JBoss SOA 5.0 Runtime"/>
+  <fixed facet="jst.web"/>
+  <fixed facet="jst.java"/>
+  <installed facet="jst.java" version="5.0"/>
+  <installed facet="jst.web" version="2.5"/>
+</faceted-project>

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.jsdt.ui.superType.container	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.jsdt.ui.superType.container	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.jsdt.ui.superType.name	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.jsdt.ui.superType.name	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1 @@
+Window
\ No newline at end of file

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.ws.service.policy.prefs
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.ws.service.policy.prefs	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/.settings/org.eclipse.wst.ws.service.policy.prefs	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,3 @@
+#Thu Mar 18 18:43:05 EDT 2010
+eclipse.preferences.version=1
+org.eclipse.wst.ws.service.policy.projectEnabled=false

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/META-INF/MANIFEST.MF
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/META-INF/MANIFEST.MF	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/META-INF/MANIFEST.MF	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/WEB-INF/web.xml
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/WEB-INF/web.xml	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/WebContent/WEB-INF/web.xml	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
+  <display-name>DemoWebProject</display-name>
+  <welcome-file-list>
+    <welcome-file>index.html</welcome-file>
+    <welcome-file>index.htm</welcome-file>
+    <welcome-file>index.jsp</welcome-file>
+    <welcome-file>default.html</welcome-file>
+    <welcome-file>default.htm</welcome-file>
+    <welcome-file>default.jsp</welcome-file>
+  </welcome-file-list>
+  <servlet>
+    <display-name>HelloWorld</display-name>
+    <servlet-name>HelloWorld</servlet-name>
+    <servlet-class>org.jboss.samples.webservices.HelloWorld</servlet-class>
+  </servlet>
+  <servlet>
+    <display-name>SubmitOrder</display-name>
+    <servlet-name>SubmitOrder</servlet-name>
+    <servlet-class>org.jboss.samples.webservices.SubmitOrder</servlet-class>
+  </servlet>
+  
+  <servlet-mapping>
+    <servlet-name>HelloWorld</servlet-name>
+    <url-pattern>/HelloWorld</url-pattern>
+  </servlet-mapping>
+  
+  <servlet-mapping>
+    <servlet-name>SubmitOrder</servlet-name>
+    <url-pattern>/SubmitOrder</url-pattern>
+  </servlet-mapping>
+  
+</web-app>
\ No newline at end of file

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/webservices/HelloWorld.java
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/webservices/HelloWorld.java	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/webservices/HelloWorld.java	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,14 @@
+package org.jboss.samples.webservices;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+ at WebService()
+public class HelloWorld {
+
+	@WebMethod()
+	public String sayHello(String name) {
+	    System.out.println("Hello: " + name);
+	    return "Hello " + name + "!";
+	}
+}

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/webservices/SubmitOrder.java
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/webservices/SubmitOrder.java	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/samples/webservices/SubmitOrder.java	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,35 @@
+package org.jboss.samples.webservices;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.WebResult;
+import javax.jws.WebParam;
+
+import org.jboss.soa.esb.store.ws.Customer;
+import org.jboss.soa.esb.store.ws.OrderHeader;
+import org.jboss.soa.esb.store.ws.OrderItem;
+import org.apache.log4j.Logger;
+import java.util.List;
+
+ at WebService(targetNamespace = "http://org.jboss.soa.esb.samples")
+public class SubmitOrder {
+	private Logger logger = Logger.getLogger(SubmitOrder.class);
+	
+	@WebMethod()
+	public String sayHello(String name) {
+	    System.out.println("Hello: " + name);
+	    return "Hello " + name + "!";
+	}
+	
+	@WebMethod(operationName="CreateOrder")
+	@WebResult(name="result")
+	public String createOrder(
+			@WebParam(name="Customer") Customer c, 
+			@WebParam(name="Order") OrderHeader o, 
+			@WebParam(name="LineItems") List<OrderItem> l ) {
+		logger.info("Customer: " + c);
+		logger.info("OrderHeader: " + o);
+		logger.info("Items: " + l);
+		return "stuff";
+	}
+}

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/Customer.java
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/Customer.java	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/Customer.java	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.store.ws;
+
+import java.io.Serializable;
+
+/**
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class Customer implements Serializable{
+
+	/**
+     * 
+     */
+    private static final long serialVersionUID = 1L;
+    // <Customer userName="user1" firstName="Harry" lastName="Potter" state="SD"/>
+	private String userName;
+	private String firstName;
+	private String lastName;
+	private String state;
+	private int status;
+	
+	public void setStatus(int status) {
+		this.status = status;
+	}
+	public int getStatus() {
+		return this.status;
+	}
+	/**
+	 * @return Returns the firstName.
+	 */
+	public String getFirstName() {
+		return firstName;
+	}
+	/**
+	 * @param firstName The firstName to set.
+	 */
+	public void setFirstName(String firstName) {
+		//System.out.println("**** firstName: " + firstName);
+		this.firstName = firstName;
+	}
+	/**
+	 * @return Returns the lastName.
+	 */
+	public String getLastName() {
+		return lastName;
+	}
+	/**
+	 * @param lastName The lastName to set.
+	 */
+	public void setLastName(String lastName) {
+		this.lastName = lastName;
+	}
+	/**
+	 * @return Returns the state.
+	 */
+	public String getState() {
+		return state;
+	}
+	/**
+	 * @param state The state to set.
+	 */
+	public void setState(String state) {
+		this.state = state;
+	}
+	/**
+	 * @return Returns the userName.
+	 */
+	public String getUserName() {
+		return userName;
+	}
+	/**
+	 * @param userName The userName to set.
+	 */
+	public void setUserName(String userName) {
+		this.userName = userName;
+	}
+	
+	/* (non-Javadoc)
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return userName + "," + firstName + "," + lastName + "," + state;
+	}
+	
+
+}

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/OrderHeader.java
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/OrderHeader.java	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/OrderHeader.java	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,139 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.store.ws;
+
+import java.util.Calendar;
+import java.io.Serializable;
+
+/**
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class OrderHeader implements Serializable {
+	
+	/**
+     * 
+     */
+    private static final long serialVersionUID = 1L;
+    // <Order orderId="1" orderDate="Wed Nov 15 13:45:28 EST 2006" statusCode="0" netAmount="59.97" totalAmount="64.92" tax="4.95">
+	private String orderId;
+	private Calendar orderDate;
+	private String statusCode;
+	private double netAmount;
+	private double totalAmount;
+	private double tax;
+	private double orderDiscount;
+	private int orderPriority;
+	
+	public void setOrderPriority(int orderPriority) {
+		this.orderPriority = orderPriority;
+	}
+	public int getOrderPriority() {
+		return this.orderPriority;
+	}
+	
+	public void setOrderDiscount(double orderDiscount) {
+		this.orderDiscount = orderDiscount;
+	}
+	public double getOrderDiscount() {
+		return orderDiscount;
+	}
+	/**
+	 * @return Returns the netAmount.
+	 */
+	public double getNetAmount() {
+		return netAmount;
+	}
+	/**
+	 * @param netAmount The netAmount to set.
+	 */
+	public void setNetAmount(double netAmount) {
+		this.netAmount = netAmount;
+	}
+	/**
+	 * @return Returns the orderDate.
+	 */
+	public Calendar getOrderDate() {
+		return orderDate;
+	}
+	/**
+	 * @param orderDate The orderDate to set.
+	 */
+	public void setOrderDate(Calendar orderDate) {
+		this.orderDate = orderDate;
+	}
+	/**
+	 * @return Returns the orderId.
+	 */
+	public String getOrderId() {
+		return orderId;
+	}
+	/**
+	 * @param orderId The orderId to set.
+	 */
+	public void setOrderId(String orderId) {
+		this.orderId = orderId;
+	}
+	/**
+	 * @return Returns the statusCode.
+	 */
+	public String getStatusCode() {
+		return statusCode;
+	}
+	/**
+	 * @param statusCode The statusCode to set.
+	 */
+	public void setStatusCode(String statusCode) {
+		this.statusCode = statusCode;
+	}
+	/**
+	 * @return Returns the tax.
+	 */
+	public double getTax() {
+		return tax;
+	}
+	/**
+	 * @param tax The tax to set.
+	 */
+	public void setTax(double tax) {
+		this.tax = tax;
+	}
+	/**
+	 * @return Returns the totalAmount.
+	 */
+	public double getTotalAmount() {
+		return totalAmount;
+	}
+	/**
+	 * @param totalAmount The totalAmount to set.
+	 */
+	public void setTotalAmount(double totalAmount) {
+		this.totalAmount = totalAmount;
+	}
+	
+	/* (non-Javadoc)
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return orderId + ", " + (orderDate == null?null:orderDate.getTime()) + ", " + statusCode + ", " + netAmount + ", " + totalAmount + ", " + tax + ", ";
+	}
+}

Added: labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/OrderItem.java
===================================================================
--- labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/OrderItem.java	                        (rev 0)
+++ labs/jbossesb/workspace/bsutter/soa5demo_eclipse/DemoWebProject/src/org/jboss/soa/esb/store/ws/OrderItem.java	2010-03-25 22:39:04 UTC (rev 32230)
@@ -0,0 +1,114 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.store.ws;
+
+import java.io.Serializable;
+/**
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class OrderItem implements Serializable {
+
+	/**
+     * 
+     */
+    private static final long serialVersionUID = 1L;
+    // <OrderLine position="1" quantity="1">
+	// 		<Product productId="364" title="The 40-Year-Old Virgin " price="29.98"/>
+	// </OrderLine>
+	private int position;
+	private int quantity;
+	private String productId;
+	private String title;
+	private double price;
+	
+	/**
+	 * @return Returns the position.
+	 */
+	public int getPosition() {
+		return position;
+	}
+	/**
+	 * @param position The position to set.
+	 */
+	public void setPosition(int position) {
+		//System.out.println("**** position: " + position);
+		this.position = position;
+	}
+	/**
+	 * @return Returns the price.
+	 */
+	public double getPrice() {
+		return price;
+	}
+	/**
+	 * @param price The price to set.
+	 */
+	public void setPrice(double price) {
+		//System.out.println("**** price: " + price);
+		this.price = price;
+	}
+	/**
+	 * @return Returns the productId.
+	 */
+	public String getProductId() {
+		return productId;
+	}
+	/**
+	 * @param productId The productId to set.
+	 */
+	public void setProductId(String productId) {
+		this.productId = productId;
+	}
+	/**
+	 * @return Returns the quantity.
+	 */
+	public int getQuantity() {
+		return quantity;
+	}
+	/**
+	 * @param quantity The quantity to set.
+	 */
+	public void setQuantity(int quantity) {
+		this.quantity = quantity;
+	}
+	/**
+	 * @return Returns the title.
+	 */
+	public String getTitle() {
+		return title;
+	}
+	/**
+	 * @param title The title to set.
+	 */
+	public void setTitle(String title) {
+		this.title = title;
+	}
+	
+	/* (non-Javadoc)
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return position + "," + quantity + "," + productId + "," + title + "," + price;
+		
+	}
+}



More information about the jboss-svn-commits mailing list