axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r168281 - in /webservices/axis/trunk/java/modules/core: src/org/apache/axis/addressing/ src/org/apache/axis/addressing/om/ src/org/apache/axis/clientapi/ src/org/apache/axis/context/ src/org/apache/axis/engine/ src/org/apache/axis/handlers/addressing/ test/org/apache/axis/handlers/addressing/
Date Thu, 05 May 2005 06:18:10 GMT
Author: chinthaka
Date: Wed May  4 23:18:09 2005
New Revision: 168281

URL: http://svn.apache.org/viewcvs?rev=168281&view=rev
Log:
Refactoring MessageInformationHeaderCollection. Putting that to o.a.a.addressing from o.a.a.addressing.om

Added:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/addressing/MessageInformationHeadersCollection.java
Removed:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/addressing/om/MessageInformationHeadersCollection.java
Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/MessageContext.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/MessageSender.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingInHandler.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingOutHandler.java
    webservices/axis/trunk/java/modules/core/test/org/apache/axis/handlers/addressing/AddressingInHandlerTest.java

Added: webservices/axis/trunk/java/modules/core/src/org/apache/axis/addressing/MessageInformationHeadersCollection.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/addressing/MessageInformationHeadersCollection.java?rev=168281&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/addressing/MessageInformationHeadersCollection.java
(added)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/addressing/MessageInformationHeadersCollection.java
Wed May  4 23:18:09 2005
@@ -0,0 +1,220 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * 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.axis.addressing;
+
+import org.apache.axis.addressing.EndpointReference;
+import org.apache.axis.addressing.miheaders.RelatesTo;
+import org.apache.axis.om.SOAPHeader;
+
+/**
+ * This holds the WSA Message Information Headers
+ */
+public class MessageInformationHeadersCollection {
+
+    /**
+     * The address of the intended receiver of the message. This is mandatory
+     */
+    private EndpointReference to;
+
+    /**
+     * Reference of the endpoint where the message originated from
+     */
+    private EndpointReference from;
+
+    /**
+     * Pair of values that indicate how this message related to another message
+     */
+    private RelatesTo relatesTo;
+
+    /**
+     * identifies the intended receiver for replies to the message
+     */
+    private EndpointReference replyTo;
+
+    /**
+     * identifies the intended receiver for faults related to the message
+     */
+    private EndpointReference faultTo;
+
+    /**
+     * Field action
+     */
+    private String action;
+
+    /**
+     * Field messageId
+     */
+    private String messageId;
+
+
+    /**
+     * Addressing Header MUST have a to and an action
+     *
+     * @param wsaTo
+     * @param action
+     */
+    public MessageInformationHeadersCollection(EndpointReference wsaTo, String action) {
+        this.to = wsaTo;
+        this.action = action;
+    }
+
+    public MessageInformationHeadersCollection() {
+    }
+
+    /**
+     * Method toOM
+     *
+     * @param soapHeader
+     */
+    public void toOM(SOAPHeader soapHeader) {
+        throw new UnsupportedOperationException();
+    }
+
+    // ------------------- Setters and Getters --------------------------------------
+
+    /**
+     * Method getTo
+     *
+     * @return
+     */
+    public EndpointReference getTo() {
+
+        return to;
+    }
+
+    /**
+     * Method setTo
+     *
+     * @param to
+     */
+    public void setTo(EndpointReference to) {
+        this.to = to;
+    }
+
+    /**
+     * Method getFrom
+     *
+     * @return
+     */
+    public EndpointReference getFrom() {
+        return from;
+    }
+
+    /**
+     * Method setFrom
+     *
+     * @param from
+     */
+    public void setFrom(EndpointReference from) {
+        this.from = from;
+    }
+
+    /**
+     * Method getReplyTo
+     *
+     * @return
+     */
+    public EndpointReference getReplyTo() {
+
+        return replyTo;
+    }
+
+    /**
+     * Method setReplyTo
+     *
+     * @param replyTo
+     */
+    public void setReplyTo(EndpointReference replyTo) {
+        this.replyTo = replyTo;
+    }
+
+    /**
+     * Method getFaultTo
+     *
+     * @return
+     */
+    public EndpointReference getFaultTo() {
+
+        return faultTo;
+    }
+
+    /**
+     * Method setFaultTo
+     *
+     * @param faultTo
+     */
+    public void setFaultTo(EndpointReference faultTo) {
+        this.faultTo = faultTo;
+    }
+
+    /**
+     * Method getAction
+     *
+     * @return
+     */
+    public String getAction() {
+        return action;
+    }
+
+    /**
+     * Method setAction
+     *
+     * @param action
+     */
+    public void setAction(String action) {
+        this.action = action;
+    }
+
+    /**
+     * Method getMessageId
+     *
+     * @return
+     */
+    public String getMessageId() {
+        return messageId;
+    }
+
+    /**
+     * Method setMessageId
+     *
+     * @param messageId
+     */
+    public void setMessageId(String messageId) {
+        this.messageId = messageId;
+    }
+
+    /**
+     * Method getRelatesTo
+     *
+     * @return
+     */
+    public RelatesTo getRelatesTo() {
+
+        return relatesTo;
+    }
+
+    /**
+     * Method setRelatesTo
+     *
+     * @param relatesTo
+     */
+    public void setRelatesTo(RelatesTo relatesTo) {
+
+        this.relatesTo = relatesTo;
+    }
+
+    // --------------------------------------------------------------------------------------------
+}

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java?rev=168281&r1=168280&r2=168281&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java Wed May
 4 23:18:09 2005
@@ -7,8 +7,9 @@
 
 import org.apache.axis.Constants;
 import org.apache.axis.addressing.EndpointReference;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
 import org.apache.axis.addressing.miheaders.RelatesTo;
-import org.apache.axis.addressing.om.MessageInformationHeadersCollection;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
 import org.apache.axis.context.EngineContext;
 import org.apache.axis.context.MessageContext;
 import org.apache.axis.context.OperationContextFactory;

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/MessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/MessageContext.java?rev=168281&r1=168280&r2=168281&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/MessageContext.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/MessageContext.java
Wed May  4 23:18:09 2005
@@ -19,8 +19,9 @@
 import java.util.Map;
 
 import org.apache.axis.addressing.EndpointReference;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
 import org.apache.axis.addressing.miheaders.RelatesTo;
-import org.apache.axis.addressing.om.MessageInformationHeadersCollection;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
 import org.apache.axis.description.AxisOperation;
 import org.apache.axis.description.AxisTransportIn;
 import org.apache.axis.description.AxisTransportOut;

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/MessageSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/MessageSender.java?rev=168281&r1=168280&r2=168281&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/MessageSender.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/MessageSender.java
Wed May  4 23:18:09 2005
@@ -18,7 +18,7 @@
 import java.io.File;
 import java.io.InputStream;
 
-import org.apache.axis.addressing.om.MessageInformationHeadersCollection;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
 import org.apache.axis.context.EngineContext;
 import org.apache.axis.context.OperationContext;
 import org.apache.axis.context.MessageContext;

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingInHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingInHandler.java?rev=168281&r1=168280&r2=168281&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingInHandler.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingInHandler.java
Wed May  4 23:18:09 2005
@@ -7,8 +7,9 @@
 
 import org.apache.axis.addressing.AddressingConstants;
 import org.apache.axis.addressing.EndpointReference;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
 import org.apache.axis.addressing.miheaders.RelatesTo;
-import org.apache.axis.addressing.om.MessageInformationHeadersCollection;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
 import org.apache.axis.context.MessageContext;
 import org.apache.axis.engine.AxisFault;
 import org.apache.axis.handlers.AbstractHandler;

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingOutHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingOutHandler.java?rev=168281&r1=168280&r2=168281&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingOutHandler.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/handlers/addressing/AddressingOutHandler.java
Wed May  4 23:18:09 2005
@@ -7,7 +7,7 @@
 import org.apache.axis.addressing.EndpointReference;
 import org.apache.axis.addressing.ServiceName;
 import org.apache.axis.addressing.miheaders.RelatesTo;
-import org.apache.axis.addressing.om.MessageInformationHeadersCollection;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
 import org.apache.axis.context.MessageContext;
 import org.apache.axis.engine.AxisFault;
 import org.apache.axis.handlers.AbstractHandler;

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis/handlers/addressing/AddressingInHandlerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis/handlers/addressing/AddressingInHandlerTest.java?rev=168281&r1=168280&r2=168281&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis/handlers/addressing/AddressingInHandlerTest.java
(original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis/handlers/addressing/AddressingInHandlerTest.java
Wed May  4 23:18:09 2005
@@ -3,7 +3,8 @@
 import org.apache.axis.AbstractTestCase;
 import org.apache.axis.addressing.AddressingConstants;
 import org.apache.axis.addressing.EndpointReference;
-import org.apache.axis.addressing.om.MessageInformationHeadersCollection;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
+import org.apache.axis.addressing.MessageInformationHeadersCollection;
 import org.apache.axis.handlers.util.TestUtil;
 import org.apache.axis.om.SOAPEnvelope;
 import org.apache.axis.om.SOAPHeader;



Mime
View raw message