[jboss-svn-commits] JBL Code SVN: r5644 - labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Aug 9 12:09:47 EDT 2006
Author: daniel.brum at jboss.com
Date: 2006-08-09 12:09:45 -0400 (Wed, 09 Aug 2006)
New Revision: 5644
Added:
labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckResponseNotification.java
Log:
Copied: labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckResponseNotification.java (from rev 5602, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckResponse.java)
===================================================================
--- labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckResponse.java 2006-08-08 14:57:05 UTC (rev 5602)
+++ labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckResponseNotification.java 2006-08-09 16:09:45 UTC (rev 5644)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.soa.esb.samples.loanbroker.creditagency;
+
+import java.io.*;
+
+public class CreditCheckResponseNotification implements Serializable{
+ public long customerUID;
+ public long requestID;
+ public long timestamp;
+ public int score;
+
+ public CreditCheckResponseNotification(long requestID, int score, long customerUID) {
+ this.requestID=requestID;
+ this.timestamp=System.currentTimeMillis();
+ this.score = score;
+ this.customerUID=customerUID;
+ }
+
+ private CreditCheckResponseNotification(long requestID, long timestamp, int score, long customerUID) {
+ this.requestID=requestID;
+ this.timestamp=timestamp;
+ this.score = score;
+ this.customerUID=customerUID;
+ }
+
+ public String[] toArray() {
+ return new String[] {Long.toString(requestID),Long.toString(timestamp),Integer.toString(score),Long.toString(customerUID) };
+ }
+
+ public static CreditCheckResponseNotification fromArray(String[] array) {
+ return new CreditCheckResponseNotification(Long.parseLong(array[0]), Long.parseLong(array[1]), Integer.parseInt(array[2]), Long.parseLong(array[3]));
+ }
+
+ public String toString() {
+ return "CreditCheckResponseNotification: " + this.requestID + " >> " + this.score + " >> " + this.timestamp + " >> " + this.customerUID;
+ }
+
+}
More information about the jboss-svn-commits
mailing list