KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > bus > ws > addressing > AddressingPropertiesImpl


1 package org.objectweb.celtix.bus.ws.addressing;
2
3
4 import org.objectweb.celtix.ws.addressing.AddressingProperties;
5 import org.objectweb.celtix.ws.addressing.AttributedURIType;
6 import org.objectweb.celtix.ws.addressing.EndpointReferenceType;
7 import org.objectweb.celtix.ws.addressing.RelatesToType;
8
9
10 /**
11  * Abstraction of Message Addressing Properties.
12  */

13 public class AddressingPropertiesImpl implements AddressingProperties {
14     private AttributedURIType to;
15     private AttributedURIType messageID;
16     private EndpointReferenceType replyTo;
17     private EndpointReferenceType faultTo;
18     private RelatesToType relatesTo;
19     private AttributedURIType action;
20     private String JavaDoc namespaceURI;
21
22     /**
23      * Constructor, defaults to 2005/08 namespace.
24      */

25     public AddressingPropertiesImpl() {
26         this(Names.WSA_NAMESPACE_NAME);
27     }
28
29     /**
30      * Constructor.
31      *
32      * @param uri the namespace URI
33      */

34     public AddressingPropertiesImpl(String JavaDoc uri) {
35         namespaceURI = uri;
36     }
37
38     /**
39      * Accessor for the <b>To</b> property.
40      * @return To property
41      */

42     public AttributedURIType getTo() {
43         return to;
44     }
45
46     /**
47      * Mutator for the <b>To</b> property.
48      * @param iri new value for To property
49      */

50     public void setTo(AttributedURIType iri) {
51         to = iri;
52     }
53
54     /**
55      * Accessor for the <b>MessageID</b> property.
56      * @return current value of MessageID property
57      */

58     public AttributedURIType getMessageID() {
59         return messageID;
60     }
61
62     /**
63      * Mutator for the <b>MessageID</b> property.
64      * @param iri new value for MessageTo property
65      */

66     public void setMessageID(AttributedURIType iri) {
67         messageID = iri;
68     }
69
70     /**
71      * Accessor for the <b>ReplyTo</b> property.
72      * @return current value of ReplyTo property
73      */

74     public EndpointReferenceType getReplyTo() {
75         return replyTo;
76     }
77
78     /**
79      * Mutator for the <b>ReplyTo</b> property.
80      * @param ref new value for ReplyTo property
81      */

82     public void setReplyTo(EndpointReferenceType ref) {
83         replyTo = ref;
84     }
85
86     /**
87      * Accessor for the <b>FaultTo</b> property.
88      * @return current value of FaultTo property
89      */

90     public EndpointReferenceType getFaultTo() {
91         return faultTo;
92     }
93
94     /**
95      * Mutator for the <b>FaultTo</b> property.
96      * @param ref new value for FaultTo property
97      */

98     public void setFaultTo(EndpointReferenceType ref) {
99         faultTo = ref;
100     }
101
102     
103     /**
104      * Accessor for the <b>RelatesTo</b> property.
105      * @return current value of RelatesTo property
106      */

107     public RelatesToType getRelatesTo() {
108         return relatesTo;
109     }
110
111     /**
112      * Mutator for the <b>RelatesTo</b> property.
113      * @param rel new value for RelatesTo property
114      */

115     public void setRelatesTo(RelatesToType rel) {
116         relatesTo = rel;
117     }
118     
119     /**
120      * Accessor for the <b>Action</b> property.
121      * @return current value of Action property
122      */

123     public AttributedURIType getAction() {
124         return action;
125     }
126
127     /**
128      * Mutator for the <b>Action</b> property.
129      * @param iri new value for Action property
130      */

131     public void setAction(AttributedURIType iri) {
132         action = iri;
133     }
134     
135     /**
136      * @return WS-Addressing namespace URI
137      */

138     public String JavaDoc getNamespaceURI() {
139         return namespaceURI;
140     }
141     
142     /**
143      * Used to specify a different WS-Addressing namespace URI,
144      * so as to cause MAPs to be exposed (i.e. encoded in externalized
145      * message with a different WS-Addressing version).
146      *
147      * @return WS-Addressing namespace URI
148      */

149     public void exposeAs(String JavaDoc uri) {
150         namespaceURI = uri;
151     }
152 }
153
Popular Tags