1 16 package org.apache.axis2.addressing; 17 18 import org.apache.axis2.addressing.miheaders.RelatesTo; 19 import org.apache.axis2.om.OMElement; 20 import org.apache.axis2.soap.SOAPHeader; 21 22 import java.util.ArrayList ; 23 24 27 public class MessageInformationHeadersCollection { 28 29 32 private EndpointReference to; 33 34 37 private EndpointReference from; 38 39 42 private RelatesTo relatesTo; 43 44 47 private EndpointReference replyTo; 48 49 52 private EndpointReference faultTo; 53 54 57 private String action; 58 59 62 private String messageId; 63 64 private ArrayList referenceParameters; 65 66 67 73 public MessageInformationHeadersCollection(EndpointReference wsaTo, String action) { 74 this.to = wsaTo; 75 this.action = action; 76 } 77 78 public MessageInformationHeadersCollection() { 79 } 80 81 86 public void toOM(SOAPHeader soapHeader) { 87 throw new UnsupportedOperationException (); 88 } 89 90 92 97 public EndpointReference getTo() { 98 99 return to; 100 } 101 102 107 public void setTo(EndpointReference to) { 108 this.to = to; 109 } 110 111 116 public EndpointReference getFrom() { 117 return from; 118 } 119 120 125 public void setFrom(EndpointReference from) { 126 this.from = from; 127 } 128 129 134 public EndpointReference getReplyTo() { 135 136 return replyTo; 137 } 138 139 144 public void setReplyTo(EndpointReference replyTo) { 145 this.replyTo = replyTo; 146 } 147 148 153 public EndpointReference getFaultTo() { 154 155 return faultTo; 156 } 157 158 163 public void setFaultTo(EndpointReference faultTo) { 164 this.faultTo = faultTo; 165 } 166 167 172 public String getAction() { 173 return action; 174 } 175 176 181 public void setAction(String action) { 182 this.action = action; 183 } 184 185 190 public String getMessageId() { 191 return messageId; 192 } 193 194 199 public void setMessageId(String messageId) { 200 this.messageId = messageId; 201 } 202 203 208 public RelatesTo getRelatesTo() { 209 210 return relatesTo; 211 } 212 213 218 public void setRelatesTo(RelatesTo relatesTo) { 219 220 this.relatesTo = relatesTo; 221 } 222 223 public ArrayList getReferenceParameters() { 224 return referenceParameters; 225 } 226 227 public void setReferenceParameters(ArrayList referenceParameters) { 228 this.referenceParameters = referenceParameters; 229 } 230 231 public void addReferenceParameter(OMElement referenceParameter){ 232 if(referenceParameters == null){ 233 referenceParameters = new ArrayList (5); 234 } 235 referenceParameters.add(referenceParameter); 236 } 237 238 } 240 | Popular Tags |