summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-07-28 10:58:07 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-07-28 10:58:07 +0000
commit04dcd09976ecc5aa2948993b9a9a2d90d239ee44 (patch)
treef3d3148a4c4ae6d56185cbd55333aaf119532d26 /sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld
parent19aadc9a267456fe8b84a9a4d3afca74ba9ef969 (diff)
Delete old beta3 branch as its going to be recreated from the current trunk
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1151789 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld')
-rw-r--r--sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorld.java31
-rw-r--r--sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java49
-rw-r--r--sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldException.java34
-rw-r--r--sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldService.java44
-rw-r--r--sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/StatusImpl.java32
5 files changed, 0 insertions, 190 deletions
diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorld.java b/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorld.java
deleted file mode 100644
index 1f5b8b365d..0000000000
--- a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorld.java
+++ /dev/null
@@ -1,31 +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 helloworld;
-
-import org.oasisopen.sca.annotation.Remotable;
-
-@Remotable
-public interface HelloWorld {
-
- String getGreetings(String s);
-
- String getGreetingsException(String s) throws HelloWorldException;
-
-}
diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java b/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java
deleted file mode 100644
index 7a94a90b19..0000000000
--- a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java
+++ /dev/null
@@ -1,49 +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 helloworld;
-
-import org.oasisopen.sca.annotation.Reference;
-import org.oasisopen.sca.annotation.Requires;
-
-@Requires("{http://tuscany.apache.org/xmlns/sca/1.1}testIntent")
-public class HelloWorldClient implements HelloWorld {
-
- @Reference
- public HelloWorld helloWorldWS;
-
- public String getGreetings(String s) {
- StatusImpl.appendStatus("At client.getGreetings() pre-invoke", s);
- String response = helloWorldWS.getGreetings(s);
- StatusImpl.appendStatus("At client.getGreetings() post-invoke", response);
- return response;
- }
-
- public String getGreetingsException(String s) throws HelloWorldException {
- StatusImpl.appendStatus("At client.getGreetingsException() pre-invoke", s);
- try {
- String response = helloWorldWS.getGreetingsException(s);
- StatusImpl.appendStatus("At client.getGreetingsException() post-invoke", response);
- return response;
- } catch (HelloWorldException ex){
- StatusImpl.appendStatus("At client.getGreetingsException() post-exception", ex.getMessage());
- throw ex;
- }
- }
-}
diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldException.java b/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldException.java
deleted file mode 100644
index b4a9fec640..0000000000
--- a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldException.java
+++ /dev/null
@@ -1,34 +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 helloworld;
-
-
-public class HelloWorldException extends Exception {
-
- private static final long serialVersionUID = 4608283774062947117L;
-
- public HelloWorldException(){
- }
-
- public HelloWorldException(String message){
- super(message);
- }
-
-}
diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldService.java b/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldService.java
deleted file mode 100644
index 40c0c7618a..0000000000
--- a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldService.java
+++ /dev/null
@@ -1,44 +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 helloworld;
-
-import javax.security.auth.Subject;
-
-import org.oasisopen.sca.RequestContext;
-import org.oasisopen.sca.annotation.Context;
-
-public class HelloWorldService implements HelloWorld {
-
- @Context
- protected RequestContext requestContext;
-
- public String getGreetings(String s) {
- //Subject subject = requestContext.getSecuritySubject();
- String response = "Hello " + s;
- StatusImpl.appendStatus("At service.getGreetings()", response);
- return response;
- }
-
- public String getGreetingsException(String s) throws HelloWorldException {
- String response = "Hello " + s;
- StatusImpl.appendStatus("At service.getGreetingsException()", response);
- throw new HelloWorldException(response);
- }
-}
diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/StatusImpl.java b/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/StatusImpl.java
deleted file mode 100644
index 644853d6c2..0000000000
--- a/sca-java-2.x/branches/2.0-Beta3/testing/itest/policy/interceptors/src/main/java/helloworld/StatusImpl.java
+++ /dev/null
@@ -1,32 +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 helloworld;
-
-public class StatusImpl {
-
- public static String statusString = "";
-
- public static void appendStatus(String event, String location){
- // remove any addresses from the strings
- location = location.replaceAll("\\(@.*Endpoint", "Endpoint");
- statusString += event + " - " + location + "\n";
- }
-
-}