![]() |
KD SOAP API Documentation
2.1
|
#include <KDSoapServerRawXMLInterface.h>
Public Member Functions | |
KDSoapServerRawXMLInterface () | |
virtual | ~KDSoapServerRawXMLInterface () |
virtual void | endRequest () |
virtual bool | newRequest (const QByteArray &requestType, const QMap< QByteArray, QByteArray > &httpHeaders) |
virtual void | processXML (const QByteArray &xmlChunk) |
Additional interface for processing incoming XML directly, without the use of KDSoapMessage.
In addition to deriving from KDSoapServerObjectInterface, you can derive from KDSoapServerRawXMLInterface in order to handle XML as it comes in.
Use Q_INTERFACES(KDSoapServerRawXMLInterface) in your derived class (under Q_OBJECT) so that Qt can discover the additional inheritance.
This can be useful for pre-processing invalid XML, or for handling very large requests (received in chunks) in an incremental way, saving memory compared to the usual buffering of the entire request.
KDSoapServer will receive all HTTP headers, call newRequest(), call processXML() for every chunk of XML, and finally call endRequest(). Use writeHTTP() or writeXML() (from KDSoapServerObjectInterface) to reply back.
Definition at line 40 of file KDSoapServerRawXMLInterface.h.
KDSoapServerRawXMLInterface::KDSoapServerRawXMLInterface | ( | ) |
Constructor
Definition at line 13 of file KDSoapServerRawXMLInterface.cpp.
|
virtual |
Destructor
Definition at line 18 of file KDSoapServerRawXMLInterface.cpp.
|
inlinevirtual |
Called at the end of the request. Use writeHTTP() or writeXML() (from KDSoapServerObjectInterface) to reply back.
Definition at line 79 of file KDSoapServerRawXMLInterface.h.
|
inlinevirtual |
Called when starting to receive a new request.
requestType | GET or POST |
httpHeaders | the map of http headers (keys have been lowercased since they are case insensitive) |
Definition at line 60 of file KDSoapServerRawXMLInterface.h.
|
inlinevirtual |
Called with the chunks of XML data as they come in
Definition at line 70 of file KDSoapServerRawXMLInterface.h.