23 #ifndef KDSOAPSERVEROBJECTINTERFACE_H 24 #define KDSOAPSERVEROBJECTINTERFACE_H 26 #include "KDSoapServerGlobal.h" 27 #include <KDSoapClient/KDSoapMessage.h> 28 #include "KDSoapDelayedResponseHandle.h" 30 #include <QtCore/QObject> 31 #include <QtCore/QByteArray> 32 #include <QtCore/QVector> 35 class KDSoapServerSocket;
38 class QAbstractSocket;
111 virtual QIODevice *processFileRequest(
const QString &path, QByteArray &contentType);
131 virtual void processRequestWithPath(
const KDSoapMessage &request,
KDSoapMessage &response,
const QByteArray &soapAction,
const QString &path);
133 struct KDSOAPSERVER_EXPORT HttpResponseHeaderItem {
134 HttpResponseHeaderItem();
135 HttpResponseHeaderItem(
const QByteArray &name,
const QByteArray &value);
140 typedef QVector<HttpResponseHeaderItem> HttpResponseHeaderItems;
148 virtual HttpResponseHeaderItems additionalHttpResponseHeaderItems()
const;
168 QByteArray soapAction()
const;
182 void setResponseNamespace(
const QString &ns);
195 void setFault(
const QString &faultCode,
const QString &faultString,
const QString &faultActor = QString(),
const QString &detail = QString());
208 void setFault(
const QString &faultCode,
const QString &faultString,
const QString &faultActor,
const KDSoapValue &detail);
213 bool hasFault()
const;
220 QAbstractSocket *serverSocket()
const;
236 bool isDelayedResponse()
const;
252 void writeHTTP(
const QByteArray &httpReply);
262 void writeXML(
const QByteArray &reply,
bool isFault =
false);
265 friend class KDSoapServerSocket;
266 void setServerSocket(KDSoapServerSocket *serverSocket);
267 void setRequestHeaders(
const KDSoapHeaders &headers,
const QByteArray &soapAction);
269 QString responseNamespace()
const;
277 "com.kdab.KDSoap.ServerObjectInterface/1.0")
280 #endif // KDSOAPSERVEROBJECTINTERFACE_H Definition: KDSoapValue.h:76
Definition: KDSoapServerObjectInterface.h:72
Definition: KDSoapMessage.h:41
Definition: KDSoapDelayedResponseHandle.h:39