16 #ifndef KDSOAPSERVEROBJECTINTERFACE_H 17 #define KDSOAPSERVEROBJECTINTERFACE_H 19 #include "KDSoapServerGlobal.h" 20 #include <KDSoapClient/KDSoapMessage.h> 21 #include "KDSoapDelayedResponseHandle.h" 23 #include <QtCore/QObject> 24 #include <QtCore/QByteArray> 25 #include <QtCore/QVector> 28 class KDSoapServerSocket;
31 class QAbstractSocket;
104 virtual QIODevice *processFileRequest(
const QString &path, QByteArray &contentType);
124 virtual void processRequestWithPath(
const KDSoapMessage &request,
KDSoapMessage &response,
const QByteArray &soapAction,
const QString &path);
126 struct KDSOAPSERVER_EXPORT HttpResponseHeaderItem {
127 HttpResponseHeaderItem();
128 HttpResponseHeaderItem(
const QByteArray &name,
const QByteArray &value);
133 typedef QVector<HttpResponseHeaderItem> HttpResponseHeaderItems;
141 virtual HttpResponseHeaderItems additionalHttpResponseHeaderItems()
const;
161 QByteArray soapAction()
const;
175 void setResponseNamespace(
const QString &ns);
188 void setFault(
const QString &faultCode,
const QString &faultString,
const QString &faultActor = QString(),
const QString &detail = QString());
201 void setFault(
const QString &faultCode,
const QString &faultString,
const QString &faultActor,
const KDSoapValue &detail);
206 bool hasFault()
const;
213 QAbstractSocket *serverSocket()
const;
229 bool isDelayedResponse()
const;
245 void writeHTTP(
const QByteArray &httpReply);
255 void writeXML(
const QByteArray &reply,
bool isFault =
false);
258 friend class KDSoapServerSocket;
259 void setServerSocket(KDSoapServerSocket *serverSocket);
260 void setRequestHeaders(
const KDSoapHeaders &headers,
const QByteArray &soapAction);
262 QString responseNamespace()
const;
270 "com.kdab.KDSoap.ServerObjectInterface/1.0")
273 #endif // KDSOAPSERVEROBJECTINTERFACE_H Definition: KDSoapValue.h:69
Definition: KDSoapServerObjectInterface.h:65
Definition: KDSoapMessage.h:34
Definition: KDSoapDelayedResponseHandle.h:32