Qorus Integration Engine® Community Edition 6.0.0_dev
Loading...
Searching...
No Matches
OMQ::AbstractServiceSoapHandler Class Reference

This class is used to customize and control the behavior of the Qorus HTTP server with SOAP messages. More...

Inherits OMQ::AbstractServiceHttpHandlerifdef QorusServer, and SoapHandler::SoapHandlerendif.

Public Member Methods

constructor(string path, HttpServer::AbstractAuthenticator auth=new DefaultQorusRBACAuthenticator()) hash< HttpResponseInfo > handleRequest (HttpListenerInterface listener, Socket s, hash< auto > cx, hash< auto > hdr, *data body)
 creates the object with the given arguments More...
 
*hash< auto > handleRequestImpl (reference< hash< auto > > cx, hash< auto > hdr, *data body)
 This method is called by this class's handleRequest() More...
 

Detailed Description

This class is used to customize and control the behavior of the Qorus HTTP server with SOAP messages.

Since
Qorus 5.1.30 This class redirects URLs to Qorus services providing HTTP-based SOAP services If any listeners are added to the AbstractServiceSoapHandler object, then the URL set in the object is only bound to the new listeners specified in this object.

Otherwise, the URL is bound to all listeners in the system HTTP server.

Member Function Documentation

◆ handleRequest()

constructor(string path, HttpServer::AbstractAuthenticator auth=new DefaultQorusRBACAuthenticator()) hash< HttpResponseInfo > OMQ::AbstractServiceSoapHandler::handleRequest ( HttpListenerInterface  listener,
Socket  s,
hash< auto >  cx,
hash< auto >  hdr,
*data  body 
)

creates the object with the given arguments

Parameters
paththe string or regular expression for the path to match on incoming requests (ex "my-service")
auththe HttpServer::AbstractAuthenticator for the object; if no argument is passed, then the system authenticator is used; meaning all users can connect without authentication
Example:
class MySoapHandler inherits AbstractServiceSoapHandler {
constructor() : AbstractServiceSoapHandler("my-service")) {
}
}
Note
that the path argument defaults to a string instead of a regular expression in this constructor
Since
Qorus 5.1.30 this method ensures that thread-local data is set properly

◆ handleRequestImpl()

*hash< auto > OMQ::AbstractServiceSoapHandler::handleRequestImpl ( reference< hash< auto > >  cx,
hash< auto >  hdr,
*data  body 
)

This method is called by this class's handleRequest()

This method is called before trying to service the request automatically based on service file resources


The documentation for this class was generated from the following file: