From e6e918ef537c4aa9802ca27b92e1dc566c2cffda Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 16 Feb 2012 15:38:34 +0000 Subject: Delete old RC tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1245033 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/helloworld/HelloWorld.java | 31 -------------- .../src/main/java/helloworld/HelloWorldClient.java | 49 ---------------------- .../main/java/helloworld/HelloWorldException.java | 34 --------------- .../main/java/helloworld/HelloWorldService.java | 44 ------------------- .../src/main/java/helloworld/StatusImpl.java | 32 -------------- 5 files changed, 190 deletions(-) delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorld.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldException.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/StatusImpl.java (limited to 'sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld') diff --git a/sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorld.java b/sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorld.java deleted file mode 100644 index 1f5b8b365d..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/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/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java b/sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java deleted file mode 100644 index 7a94a90b19..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/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/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldException.java b/sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldException.java deleted file mode 100644 index b4a9fec640..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/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/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldService.java b/sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldService.java deleted file mode 100644 index 40c0c7618a..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/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/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/StatusImpl.java b/sca-java-2.x/tags/2.0-Beta3-RC1/testing/itest/policy/interceptors/src/main/java/helloworld/StatusImpl.java deleted file mode 100644 index 644853d6c2..0000000000 --- a/sca-java-2.x/tags/2.0-Beta3-RC1/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"; - } - -} -- cgit v1.2.3