![]() |
Qore xml Module 2.1.0
|
SoapHandler implementation; to be registered as a request handler in the HttpServer class. More...
#include <SoapHandler.qm.dox.h>
Inherits AbstractHttpRequestHandler.
Public Member Methods | |
| void | constructor (AbstractAuthenticator auth, soft< code > n_getLogMessage, bool dbg, soft< int > n_max_message_size) |
| creates the handler with the given method list | |
| void | setDebug (bool dbg) |
| turns on or off debugging; when debugging is enabled more verbose error messages are reported | |
| bool | getDebug () |
| returns the current status of the debug flag | |
| void | setMaxMessageSize (soft< int > size) |
| sets the maximum message size in bytes | |
| soft< int > | getMaxMessageSize () |
| returns the current maximum message size setting | |
| nothing | msglog (hash< auto > cx, hash< auto > msg) |
| auto | dispatchSoapOperationCall (auto args, hash< auto > method, hash< auto > cx) |
| Dispatches the SOAP operation call and returns the result for validation and serialization. | |
Public Attributes | |
| const auto | Version = ... |
| version of the SoapHandler implementation | |
SoapHandler implementation; to be registered as a request handler in the HttpServer class.
| void SoapHandler::SoapHandler::constructor | ( | AbstractAuthenticator | auth, |
| soft< code > | n_getLogMessage, | ||
| bool | dbg, | ||
| soft< int > | n_max_message_size | ||
| ) |
creates the handler with the given method list
| auth | an authentication object (use new AbstractAuthenticator() for no authentication) |
| n_getLogMessage | an optional closure or call reference to be called when an incoming request is received; if this is set then it will be called with the following arguments: a context hash (see HttpServer::AbstractHttpRequestHandler::handleRequest() for a description of the context hash), the method definition as passed in the methods argument to this constructor, and a reference to the arguments in this call |
| dbg | this parameter is set to True, then additional information will be logged when errors occur |
| n_max_message_size | optional maximum message size in bytes; if set, messages larger than this will be rejected with a 413 Payload Too Large response (recommended: 1048576 for 1MB, 10485760 for 10MB) |
| soft< int > SoapHandler::SoapHandler::getMaxMessageSize | ( | ) |
returns the current maximum message size setting
| nothing SoapHandler::SoapHandler::msglog | ( | hash< auto > | cx, |
| hash< auto > | msg | ||
| ) |
Method is to be overriden to implement custom logging HTTP messages handled by this object.
| void SoapHandler::SoapHandler::setMaxMessageSize | ( | soft< int > | size | ) |
sets the maximum message size in bytes
| size | the maximum message size in bytes; if nothing, no limit is enforced |
Messages exceeding this size will be rejected with a 413 Payload Too Large response.