From 5963a2d3d6860fe57afc138f095bf2d2eb5a7b80 Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 7 Oct 2013 22:23:21 +0000 Subject: Official Tuscany 2.0.1 Release git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1530096 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/test/server/CreditCardPaymentImpl.java | 82 ---------------------- .../server/CreditCardPaymentRequestServer.java | 39 ---------- .../server/CreditCardPaymentRequestServerSync.java | 37 ---------- 3 files changed, 158 deletions(-) delete mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentImpl.java delete mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentRequestServer.java delete mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentRequestServerSync.java (limited to 'sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server') diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentImpl.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentImpl.java deleted file mode 100644 index 8d946b5723..0000000000 --- a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentImpl.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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. - */ - -package test.server; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Service; - -import test.client.CreditCardPaymentCallback; -import test.client.CreditCardPaymentCallbackSync; - -import com.example.test.jaxb.server.CreditCardDetailsType; -import com.example.test.jaxws.server.AuthorizeFault; -import com.example.test.jaxws.server.CreditCardPayment; - -/** - * Mocked implementation of CreditCardPayment - */ -@Service({CreditCardPayment.class, CreditCardPaymentRequestServer.class, CreditCardPaymentRequestServerSync.class}) -public class CreditCardPaymentImpl implements CreditCardPayment, CreditCardPaymentRequestServer, - CreditCardPaymentRequestServerSync { - @Callback - protected CreditCardPaymentCallback callback; - - @Callback - protected CreditCardPaymentCallbackSync callbackSync; - - @Override - public void authorizeRequestOneway(CreditCardDetailsType creditCard, float amount) { - String status; - try { - status = authorize(creditCard, amount); - } catch (AuthorizeFault e) { - status = "FAIL: " + e.getFaultInfo().getErrorCode(); - } - callback.authorizeResponseOneway(creditCard.getCreditCardNumber(), status); - } - - @Override - public String authorizeRequest(CreditCardDetailsType creditCard, float amount) { - String status; - try { - status = authorize(creditCard, amount); - } catch (AuthorizeFault e) { - status = "FAIL: " + e.getFaultInfo().getErrorCode(); - } - callbackSync.authorizeResponse(creditCard.getCreditCardNumber(), status); - return "ACK"; - } - - @Override - public String authorize(CreditCardDetailsType creditCard, float amount) throws AuthorizeFault { - if (creditCard != null) { - System.out.println("Checking card: name = " + creditCard.getCardOwner().getName() - + " number = " - + creditCard.getCreditCardNumber() - + " for amount " - + amount); - } else { - System.out.println("Checking card is null"); - } - - return "OK"; - } - -} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentRequestServer.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentRequestServer.java deleted file mode 100644 index f257e5a0ee..0000000000 --- a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentRequestServer.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -package test.server; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.OneWay; -import org.oasisopen.sca.annotation.Remotable; - -import test.client.CreditCardPaymentCallback; - -import com.example.test.jaxb.server.CreditCardDetailsType; - -/** - * The bi-direction interface for the server side - */ -@Remotable -@Callback(CreditCardPaymentCallback.class) -public interface CreditCardPaymentRequestServer { - // Send out the request - @OneWay - void authorizeRequestOneway(CreditCardDetailsType creditCard, float amount); -} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentRequestServerSync.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentRequestServerSync.java deleted file mode 100644 index 93351c0f89..0000000000 --- a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/async-interactions/src/main/java/test/server/CreditCardPaymentRequestServerSync.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ - -package test.server; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; - -import test.client.CreditCardPaymentCallbackSync; - -import com.example.test.jaxb.server.CreditCardDetailsType; - -/** - * The synchronous bi-direction interface for the client side (we need separate classes for the client and server so that they can take different CreditCardDetailsType) - */ -@Remotable -@Callback(CreditCardPaymentCallbackSync.class) -public interface CreditCardPaymentRequestServerSync { - // Send out the request - String authorizeRequest(CreditCardDetailsType creditCard, float amount); -} -- cgit v1.2.3