summaryrefslogtreecommitdiffstats
path: root/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing
diff options
context:
space:
mode:
Diffstat (limited to 'tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing')
-rw-r--r--tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/AddressingConstants.java33
-rw-r--r--tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/AddressingFactory.java37
-rw-r--r--tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/EndpointReference.java120
-rw-r--r--tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/impl/AddressingFactoryImpl.java50
-rw-r--r--tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/impl/EndpointReferenceImpl.java182
5 files changed, 0 insertions, 422 deletions
diff --git a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/AddressingConstants.java b/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/AddressingConstants.java
deleted file mode 100644
index 8154ad4709..0000000000
--- a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/AddressingConstants.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 org.apache.tuscany.core.addressing;
-
-/**
- */
-public interface AddressingConstants {
-
- String NS_URI = "http://schemas.xmlsoap.org/ws/2004/08/addressing";
- String TO_HEADER_NAME = NS_URI + "#To";
- String FROM_HEADER_NAME = NS_URI + "#From";
- String MESSAGE_ID_HEADER_NAME = NS_URI + "#MessageID";
- String ACTION_HEADER_NAME = NS_URI + "#Action";
- String REPLY_TO_HEADER_NAME = NS_URI + "#ReplyTo";
- String RELATES_TO_HEADER_NAME = NS_URI + "#RelatesTo";
- String FAULT_TO_HEADER_NAME = NS_URI + "#FaultTo";
- String ENDPOINT_REFERENCE_HEADER_NAME = NS_URI + "#EndpointReference";
-
-}
diff --git a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/AddressingFactory.java b/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/AddressingFactory.java
deleted file mode 100644
index 878322bc6e..0000000000
--- a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/AddressingFactory.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 org.apache.tuscany.core.addressing;
-
-
-/**
- * The <b>Factory</b> for the model.
- */
-public interface AddressingFactory {
-
- /**
- * Returns a new object of class '<em>Endpoint Reference</em>'.
- */
- EndpointReference createEndpointReference();
-
- /**
- * Create a new message ID
- *
- * @return
- */
- String createMessageID();
-
-}
diff --git a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/EndpointReference.java b/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/EndpointReference.java
deleted file mode 100644
index f8ecd34354..0000000000
--- a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/EndpointReference.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 org.apache.tuscany.core.addressing;
-
-import java.util.Map;
-
-import org.apache.tuscany.core.invocation.MessageHandler;
-import org.apache.tuscany.model.assembly.ConfiguredPort;
-
-/**
- * A representation of the model object '<em><b>Endpoint Reference</b></em>'.
- */
-public interface EndpointReference extends org.osoa.sca.ServiceReference, MessageHandler {
-
- /**
- * Returns the endpoint address.
- *
- * @return The address.
- */
- String getAddress();
-
- /**
- * Sets the endpoint address.
- *
- * @param address The address.
- */
- void setAddress(String address);
-
- /**
- * Returns the QName of the WSDL portType associated with this endpoint reference.
- *
- * @return The QName of the portType.
- */
- String getPortTypeName();
-
- /**
- * Sets the QName of the WSDL portType associated with this endpoint reference.
- *
- * @param qname The QName of the portType.
- */
- void setPortTypeName(String qname);
-
- /**
- * Returns the QName of the WSDL service associated with this endpoint reference.
- *
- * @return The QName of the service.
- */
- String getServiceName();
-
- /**
- * Sets the QName of the WSDL service associated with this endpoint reference.
- *
- * @param qname The QName of the service.
- */
- void setServiceName(String qname);
-
- /**
- * Returns the name of the WSDL port associated with this endpoint reference.
- *
- * @return The name of the port.
- */
- String getPortName();
-
- /**
- * Sets the name of the WSDL port associated with this endpoint reference.
- *
- * @param name The name of the port.
- */
- void setPortName(String name);
-
- /**
- * Returns the endpoint reference parameters..
- *
- * @return The collection of reference parameters.
- */
- Map<String, Object> getReferenceParameters();
-
- /**
- * Returns the configured port corresponding to this endpoint reference.
- *
- * @return
- */
- ConfiguredPort getConfiguredPort();
-
- /**
- * Returns the configured port corresponding to this endpoint reference.
- *
- * @return
- */
- void setConfiguredPort(ConfiguredPort configuredPort);
-
- /**
- * Returns the message handler associated with this endpoint reference
- *
- * @return
- */
- MessageHandler getMessageHandler();
-
- /**
- * Sets the message handler associated with this endpoint reference
- *
- * @param messageHandler
- */
- void setMessageHandler(MessageHandler messageHandler);
-
-} // EndpointReference
diff --git a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/impl/AddressingFactoryImpl.java b/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/impl/AddressingFactoryImpl.java
deleted file mode 100644
index 882e3157c2..0000000000
--- a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/impl/AddressingFactoryImpl.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 org.apache.tuscany.core.addressing.impl;
-
-import org.eclipse.emf.ecore.util.EcoreUtil;
-
-import org.apache.tuscany.core.addressing.AddressingFactory;
-import org.apache.tuscany.core.addressing.EndpointReference;
-
-/**
- * A factory for endpoint references.
- *
- */
-public class AddressingFactoryImpl implements AddressingFactory {
-
- /**
- * Constructor
- */
- public AddressingFactoryImpl() {
- super();
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.AddressingFactory#createEndpointReference()
- */
- public EndpointReference createEndpointReference() {
- return new EndpointReferenceImpl();
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.AddressingFactory#createMessageID()
- */
- public String createMessageID() {
- return EcoreUtil.generateUUID();
- }
-}
diff --git a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/impl/EndpointReferenceImpl.java b/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/impl/EndpointReferenceImpl.java
deleted file mode 100644
index f4fbd2036b..0000000000
--- a/tags/java-stable-20060304/sca/core/src/main/java/org/apache/tuscany/core/addressing/impl/EndpointReferenceImpl.java
+++ /dev/null
@@ -1,182 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 org.apache.tuscany.core.addressing.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.tuscany.core.addressing.EndpointReference;
-import org.apache.tuscany.core.invocation.MessageHandler;
-import org.apache.tuscany.core.message.Message;
-import org.apache.tuscany.model.assembly.ConfiguredPort;
-
-/**
- * An implementation of EndpointReference.
- */
-public class EndpointReferenceImpl implements EndpointReference {
-
- private ConfiguredPort configuredPort;
- private MessageHandler messageHandler;
- private String address;
- private String portTypeName;
- private String portName;
- private String serviceName;
- private Map<String, Object> referenceParameters;
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#getAddress()
- */
- public String getAddress() {
- return address;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#setAddress(java.lang.String)
- */
- public void setAddress(String value) {
- this.address=value;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#getPortTypeName()
- */
- public String getPortTypeName() {
- return portTypeName;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#setPortTypeName(java.lang.String)
- */
- public void setPortTypeName(String value) {
- this.portTypeName=value;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#getServiceName()
- */
- public String getServiceName() {
- return serviceName;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#getPortName()
- */
- public String getPortName() {
- return portName;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#setServiceName(java.lang.String)
- */
- public void setServiceName(String value) {
- this.serviceName=value;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#setPortName(java.lang.String)
- */
- public void setPortName(String portName) {
- this.portName=portName;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#getReferenceParameters()
- */
- public Map<String, Object> getReferenceParameters() {
- if (referenceParameters==null)
- referenceParameters=new HashMap<String, Object>();
- return referenceParameters;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#getConfiguredPort()
- */
- public ConfiguredPort getConfiguredPort() {
- return configuredPort;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#setConfiguredPort(org.apache.tuscany.model.assembly.ConfiguredPort)
- */
- public void setConfiguredPort(ConfiguredPort configuredPort) {
- this.configuredPort = configuredPort;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#getMessageHandler()
- */
- public MessageHandler getMessageHandler() {
- return messageHandler;
- }
-
- /**
- * @see org.apache.tuscany.core.addressing.EndpointReference#setMessageHandler(org.apache.tuscany.core.invocation.MessageHandler)
- */
- public void setMessageHandler(MessageHandler messageHandler) {
- this.messageHandler = messageHandler;
- }
-
- /**
- * @see org.osoa.sca.ServiceReference#getSessionID()
- */
- public Object getSessionID() {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @see org.osoa.sca.ServiceReference#endSession()
- */
- public void endSession() {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @see org.osoa.sca.ServiceReference#getCallbackID()
- */
- public Object getCallbackID() {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @see org.osoa.sca.ServiceReference#setCallbackID(java.lang.Object)
- */
- public void setCallbackID(Object callbackID) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @see org.osoa.sca.ServiceReference#getCallback()
- */
- public Object getCallback() {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @see org.osoa.sca.ServiceReference#setCallback(java.lang.Object)
- */
- public void setCallback(Object callback) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @see org.apache.tuscany.core.invocation.MessageHandler#processMessage(org.apache.tuscany.core.message.Message)
- */
- public boolean processMessage(Message message) {
- return messageHandler.processMessage(message);
- }
-
-}