KD SOAP API Documentation  2.2
KDSoapMessageAddressingProperties.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap project.
4 **
5 ** SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 #ifndef KDSOAPMESSAGEADDRESSINGPROPERTIES_H
11 #define KDSOAPMESSAGEADDRESSINGPROPERTIES_H
12 
13 #include "KDSoapGlobal.h"
14 #include <QtCore/QSharedDataPointer>
15 
17 #include "KDSoapValue.h"
18 
19 QT_BEGIN_NAMESPACE
20 class QString;
21 QT_END_NAMESPACE
22 
24 class KDSoapMessageAddressingPropertiesData;
25 
34 
36 {
41  {
42  }
43 
51  Relationship(const QString &URI, const QString &type = QString())
52  : uri(URI)
53  , relationshipType(type)
54  {
55  }
56 
57  QString uri;
59 };
60 
61 } // namespace
62 
76 {
77 public:
78  friend class KDSoapMessageWriter;
79  friend class KDSoapMessageReader;
80 
87  {
91  Unspecified
92  };
93 
101  {
105  Addressing200508
106  };
107 
112 
117 
122 
127 
131  QString destination() const;
132 
136  void setDestination(const QString &destination);
137 
141  QString action() const;
142 
146  void setAction(const QString &action);
147 
152  KDSoapEndpointReference sourceEndpoint() const;
153 
158  QString sourceEndpointAddress() const;
159 
164  void setSourceEndpoint(const KDSoapEndpointReference &sourceEndpoint);
165 
169  void setSourceEndpointAddress(const QString &sourceEndpoint);
170 
175  KDSoapEndpointReference replyEndpoint() const;
176 
180  QString replyEndpointAddress() const;
181 
186  void setReplyEndpoint(const KDSoapEndpointReference &replyEndpoint);
187 
191  void setReplyEndpointAddress(const QString &replyEndpoint);
192 
196  KDSoapEndpointReference faultEndpoint() const;
197 
201  QString faultEndpointAddress() const;
202 
207  void setFaultEndpoint(const KDSoapEndpointReference &faultEndpoint);
208 
212  void setFaultEndpointAddress(const QString &faultEndpoint);
213 
217  QString messageID() const;
218 
222  void setMessageID(const QString &id);
223 
229  QVector<KDSoapMessageRelationship::Relationship> relationships() const;
230 
238  void setRelationships(const QVector<KDSoapMessageRelationship::Relationship> &relationships);
239 
246  void addRelationship(const KDSoapMessageRelationship::Relationship &relationship);
247 
251  KDSoapValueList referenceParameters() const;
252 
256  void setReferenceParameters(const KDSoapValueList &values);
257 
261  void addReferenceParameter(const KDSoapValue &oneReferenceParameter);
262 
266  KDSoapValueList metadata() const;
267 
271  void setMetadata(const KDSoapValueList &metadataList);
272 
276  void addMetadata(const KDSoapValue &metadata);
277 
282  KDSoapAddressingNamespace addressingNamespace() const;
283 
290  void setAddressingNamespace(KDSoapAddressingNamespace addressingNamespace);
291 
295  static QString predefinedAddressToString(KDSoapAddressingPredefinedAddress address,
296  KDSoapAddressingNamespace addressingNamespace = Addressing200508);
297 
301  static bool isWSAddressingNamespace(const QString &namespaceUri);
302 
307  static QString addressingNamespaceToString(KDSoapAddressingNamespace addressingNamespace);
308 
309 private:
313  void writeMessageAddressingProperties(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer, const QString &messageNamespace,
314  bool forceQualified) const;
315 
319  void readMessageAddressingProperty(const KDSoapValue &value);
320 
321 private:
322  QSharedDataPointer<KDSoapMessageAddressingPropertiesData> d;
323 };
324 
328 KDSOAP_EXPORT QDebug operator<<(QDebug dbg, const KDSoapMessageAddressingProperties &msg);
329 
330 #endif // KDSOAPMESSAGEADDRESSINGPROPERTIES_H
#define KDSOAP_EXPORT
Definition: KDSoapGlobal.h:22
KDSOAP_EXPORT QDebug operator<<(QDebug dbg, const KDSoapMessageAddressingProperties &msg)
Relationship(const QString &URI, const QString &type=QString())

© 2010-2024 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-soap/
Generated by doxygen 1.9.1