You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2005/07/29 05:21:48 UTC
svn commit: r226331 -
/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/addressing/MessageInformationHeaders.java
Author: chinthaka
Date: Thu Jul 28 20:21:38 2005
New Revision: 226331
URL: http://svn.apache.org/viewcvs?rev=226331&view=rev
Log:
This is a temporary hack. Glen has renamed the MessageInformationHeaders class but has not added the new class to SVN.
Added:
webservices/axis/trunk/java/modules/core/src/org/apache/axis2/addressing/MessageInformationHeaders.java
Added: webservices/axis/trunk/java/modules/core/src/org/apache/axis2/addressing/MessageInformationHeaders.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/addressing/MessageInformationHeaders.java?rev=226331&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis2/addressing/MessageInformationHeaders.java (added)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis2/addressing/MessageInformationHeaders.java Thu Jul 28 20:21:38 2005
@@ -0,0 +1,240 @@
+/*
+ * 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.axis2.addressing;
+
+import org.apache.axis2.addressing.miheaders.RelatesTo;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.soap.SOAPHeader;
+
+import java.util.ArrayList;
+
+/**
+ * This holds the WSA Message Information Headers
+ */
+public class MessageInformationHeaders {
+
+ /**
+ * 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;
+
+ private ArrayList referenceParameters;
+
+
+ /**
+ * Addressing Header MUST have a to and an action
+ *
+ * @param wsaTo
+ * @param action
+ */
+ public MessageInformationHeaders(EndpointReference wsaTo,
+ String action) {
+ this.to = wsaTo;
+ this.action = action;
+ }
+
+ public MessageInformationHeaders() {
+ }
+
+ /**
+ * 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;
+ }
+
+ public ArrayList getReferenceParameters() {
+ return referenceParameters;
+ }
+
+ public void setReferenceParameters(ArrayList referenceParameters) {
+ this.referenceParameters = referenceParameters;
+ }
+
+ public void addReferenceParameter(OMElement referenceParameter) {
+ if (referenceParameters == null) {
+ referenceParameters = new ArrayList(5);
+ }
+ referenceParameters.add(referenceParameter);
+ }
+
+ // --------------------------------------------------------------------------------------------
+}