001: package org.objectweb.celtix.bus.ws.addressing;
002:
003: import org.objectweb.celtix.ws.addressing.AddressingProperties;
004: import org.objectweb.celtix.ws.addressing.AttributedURIType;
005: import org.objectweb.celtix.ws.addressing.EndpointReferenceType;
006: import org.objectweb.celtix.ws.addressing.RelatesToType;
007:
008: /**
009: * Abstraction of Message Addressing Properties.
010: */
011: public class AddressingPropertiesImpl implements AddressingProperties {
012: private AttributedURIType to;
013: private AttributedURIType messageID;
014: private EndpointReferenceType replyTo;
015: private EndpointReferenceType faultTo;
016: private RelatesToType relatesTo;
017: private AttributedURIType action;
018: private String namespaceURI;
019:
020: /**
021: * Constructor, defaults to 2005/08 namespace.
022: */
023: public AddressingPropertiesImpl() {
024: this (Names.WSA_NAMESPACE_NAME);
025: }
026:
027: /**
028: * Constructor.
029: *
030: * @param uri the namespace URI
031: */
032: public AddressingPropertiesImpl(String uri) {
033: namespaceURI = uri;
034: }
035:
036: /**
037: * Accessor for the <b>To</b> property.
038: * @return To property
039: */
040: public AttributedURIType getTo() {
041: return to;
042: }
043:
044: /**
045: * Mutator for the <b>To</b> property.
046: * @param iri new value for To property
047: */
048: public void setTo(AttributedURIType iri) {
049: to = iri;
050: }
051:
052: /**
053: * Accessor for the <b>MessageID</b> property.
054: * @return current value of MessageID property
055: */
056: public AttributedURIType getMessageID() {
057: return messageID;
058: }
059:
060: /**
061: * Mutator for the <b>MessageID</b> property.
062: * @param iri new value for MessageTo property
063: */
064: public void setMessageID(AttributedURIType iri) {
065: messageID = iri;
066: }
067:
068: /**
069: * Accessor for the <b>ReplyTo</b> property.
070: * @return current value of ReplyTo property
071: */
072: public EndpointReferenceType getReplyTo() {
073: return replyTo;
074: }
075:
076: /**
077: * Mutator for the <b>ReplyTo</b> property.
078: * @param ref new value for ReplyTo property
079: */
080: public void setReplyTo(EndpointReferenceType ref) {
081: replyTo = ref;
082: }
083:
084: /**
085: * Accessor for the <b>FaultTo</b> property.
086: * @return current value of FaultTo property
087: */
088: public EndpointReferenceType getFaultTo() {
089: return faultTo;
090: }
091:
092: /**
093: * Mutator for the <b>FaultTo</b> property.
094: * @param ref new value for FaultTo property
095: */
096: public void setFaultTo(EndpointReferenceType ref) {
097: faultTo = ref;
098: }
099:
100: /**
101: * Accessor for the <b>RelatesTo</b> property.
102: * @return current value of RelatesTo property
103: */
104: public RelatesToType getRelatesTo() {
105: return relatesTo;
106: }
107:
108: /**
109: * Mutator for the <b>RelatesTo</b> property.
110: * @param rel new value for RelatesTo property
111: */
112: public void setRelatesTo(RelatesToType rel) {
113: relatesTo = rel;
114: }
115:
116: /**
117: * Accessor for the <b>Action</b> property.
118: * @return current value of Action property
119: */
120: public AttributedURIType getAction() {
121: return action;
122: }
123:
124: /**
125: * Mutator for the <b>Action</b> property.
126: * @param iri new value for Action property
127: */
128: public void setAction(AttributedURIType iri) {
129: action = iri;
130: }
131:
132: /**
133: * @return WS-Addressing namespace URI
134: */
135: public String getNamespaceURI() {
136: return namespaceURI;
137: }
138:
139: /**
140: * Used to specify a different WS-Addressing namespace URI,
141: * so as to cause MAPs to be exposed (i.e. encoded in externalized
142: * message with a different WS-Addressing version).
143: *
144: * @return WS-Addressing namespace URI
145: */
146: public void exposeAs(String uri) {
147: namespaceURI = uri;
148: }
149: }
|