From c7b50e47dd1dd51a4c1c83f92cd28845853bef90 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 31 Jan 2009 08:59:12 +0000 Subject: Moving iTests that are not part of the main build to contrib git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@739528 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/helloworld/HelloWorldClientImpl.java | 42 ---------------- .../main/java/helloworld/HelloWorldService.java | 30 ------------ .../java/helloworld/HelloWorldServiceImpl.java | 46 ------------------ .../src/main/resources/definitions.xml | 49 ------------------- .../src/main/resources/helloworld.composite | 56 ---------------------- .../src/main/resources/jndi.properties | 39 --------------- 6 files changed, 262 deletions(-) delete mode 100644 java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldClientImpl.java delete mode 100644 java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldService.java delete mode 100644 java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldServiceImpl.java delete mode 100644 java/sca/itest/policy-security-token/src/main/resources/definitions.xml delete mode 100644 java/sca/itest/policy-security-token/src/main/resources/helloworld.composite delete mode 100644 java/sca/itest/policy-security-token/src/main/resources/jndi.properties (limited to 'java/sca/itest/policy-security-token/src/main') diff --git a/java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldClientImpl.java b/java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldClientImpl.java deleted file mode 100644 index 2150cb63c6..0000000000 --- a/java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldClientImpl.java +++ /dev/null @@ -1,42 +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.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldClientImpl implements HelloWorldService { - - @Reference - protected HelloWorldService helloworldWS; - - @Reference - protected HelloWorldService helloworldJMS; - - public String getGreetings(String name) { - return "Hello " + - helloworldWS.getGreetings(name) + - helloworldJMS.getGreetings(name); - } - -} diff --git a/java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldService.java b/java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldService.java deleted file mode 100644 index 18f74b083f..0000000000 --- a/java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldService.java +++ /dev/null @@ -1,30 +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; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -@Remotable -public interface HelloWorldService { - - public String getGreetings(String name); -} diff --git a/java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldServiceImpl.java b/java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldServiceImpl.java deleted file mode 100644 index e9787bfac3..0000000000 --- a/java/sca/itest/policy-security-token/src/main/java/helloworld/HelloWorldServiceImpl.java +++ /dev/null @@ -1,46 +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; -import org.oasisopen.sca.annotation.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldServiceImpl implements HelloWorldService { - - @Context - protected RequestContext requestContext; - - public String getGreetings(String name) { - Subject subject = requestContext.getSecuritySubject(); - - if (subject == null){ - return "Hello " + name + " null subject"; - } else { - return "Hello " + name + " " + subject.toString(); - } - } - -} diff --git a/java/sca/itest/policy-security-token/src/main/resources/definitions.xml b/java/sca/itest/policy-security-token/src/main/resources/definitions.xml deleted file mode 100644 index f7bb9bc374..0000000000 --- a/java/sca/itest/policy-security-token/src/main/resources/definitions.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/java/sca/itest/policy-security-token/src/main/resources/helloworld.composite b/java/sca/itest/policy-security-token/src/main/resources/helloworld.composite deleted file mode 100644 index 1db89fd502..0000000000 --- a/java/sca/itest/policy-security-token/src/main/resources/helloworld.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/sca/itest/policy-security-token/src/main/resources/jndi.properties b/java/sca/itest/policy-security-token/src/main/resources/jndi.properties deleted file mode 100644 index 9abdff215d..0000000000 --- a/java/sca/itest/policy-security-token/src/main/resources/jndi.properties +++ /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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi -- cgit v1.2.3