Library: Remoting/SoapLite
Package: SoapLite
Header: Poco/Remoting/SoapLite/Listener.h
The Listener implementation for SoapLite.
The listener uses a Poco::Net::HTTPServer to accept incoming SOAP requests.
For more information about the specific SOAP implementation, please see the Transport class.
Direct Base Classes: Poco::Remoting::Listener
All Base Classes: Poco::Remoting::Listener
Member Functions: getTransportId, registerObject, start, stop, unregisterObject
Inherited Functions: getLocalEndPoint, getTransportId, registerObject, start, stop, unregisterObject
Listener(
std::auto_ptr < Poco::Net::HTTPServer > server
);
Creates the listener with the given HTTPServer. Note that the HTTPServer must be created with a Poco::Net::HTTPRequestHandlerFactory that creates a RpcRequestHandler for paths starting with "/soap".
Listener(
const std::string & portStr
);
Creates an uninitialized Listener which has the sole purpose of reserving a port entry in the ORB for an external HTTPServer.
Note that the external HTTPServer must have a Poco::Net::HTTPRequestHandlerFactory that creates a RpcRequestHandler for paths starting with "/soap".
Listener(
Poco::UInt16 port,
bool enableSOAP,
Poco::Net::HTTPServerParams::Ptr pParams
);
Creates the Listener by setting up a Poco::Net::HTTPServer on the specified port.
If enableSOAP is true, messages must be formatted according to SOAP 1.1 rules. The given Poco::Net::HTTPServerParams pointer (can be null) is passed to the Poco::Net::HTTPServer.
Listener(
const Poco::Net::ServerSocket & sock,
bool enableSOAP,
Poco::Net::HTTPServerParams::Ptr pParams
);
Creates the listener by setting up a Poco::Net::HTTPServer using the given server socket.
If enableSOAP is true, messages must be formatted according to SOAP 1.1 rules. The given Poco::Net::HTTPServerParams pointer (can be null) is passed to the Poco::Net::HTTPServer.
The given socket can be a Poco::Net::SecureServerSocket to enable HTTPS.
Listener(
const std::string & wsdlPath,
Poco::UInt16 port,
Poco::Net::HTTPServerParams::Ptr pParams
);
Creates the Listener by setting up a Poco::Net::HTTPServer on the specified port.
Messages are always formatted according to SOAP 1.1 rules. wsdlPath specifies the directory where WSDL files (served by WSDLRequestHandler) can be found. The given Poco::Net::HTTPServerParams pointer (can be null) is passed to the Poco::Net::HTTPServer.
Listener(
const std::string & wsdlPath,
const Poco::Net::ServerSocket & sock,
Poco::Net::HTTPServerParams::Ptr pParams
);
Creates the listener by setting up a Poco::Net::HTTPServer using the given server socket.
Messages are always formatted according to SOAP 1.1 rules. wsdlPath specifies the directory where WSDL files (served by WSDLRequestHandler) can be found. The given Poco::Net::HTTPServerParams pointer (can be null) is passed to the Poco::Net::HTTPServer.
The given socket can be a Poco::Net::SecureServerSocket to enable HTTPS.
Listener(
Poco::UInt16 port,
bool enableSOAP = true,
int maxQueued = 256,
int maxThreads = 256,
bool keepAlive = false,
int maxKeepAliveRequests = 0
);
Creates the Listener by setting up a Poco::Net::HTTPServer on the specified port.
If enableSOAP is true, messages must be formatted according to SOAP 1.1 rules. maxQueued, maxThreads, keepAlive and maxKeepAliveRequests are parameters for the HTTP server.
Listener(
const Poco::Net::ServerSocket & sock,
bool enableSOAP = true,
int maxQueued = 256,
int maxThreads = 256,
bool keepAlive = false,
int maxKeepAliveRequests = 0
);
Creates the listener by setting up a Poco::Net::HTTPServer using the given server socket.
If enableSOAP is true, messages must be formatted according to SOAP 1.1 rules. maxQueued, maxThreads, keepAlive and maxKeepAliveRequests are parameters for the HTTP server.
The given socket can be a Poco::Net::SecureServerSocket to enable HTTPS.
Listener(
const std::string & wsdlPath,
Poco::UInt16 port,
int maxQueued = 256,
int maxThreads = 256,
bool keepAlive = false,
int maxKeepAliveRequests = 0
);
Creates the Listener by setting up a Poco::Net::HTTPServer on the specified port.
Messages are always formatted according to SOAP 1.1 rules. wsdlPath specifies the directory where WSDL files (served by WSDLRequestHandler) can be found. maxQueued, maxThreads, keepAlive and maxKeepAliveRequests are parameters for the HTTP server.
Listener(
const std::string & wsdlPath,
const Poco::Net::ServerSocket & sock,
int maxQueued = 256,
int maxThreads = 256,
bool keepAlive = false,
int maxKeepAliveRequests = 0
);
Creates the listener by setting up a Poco::Net::HTTPServer using the given server socket.
Messages are always formatted according to SOAP 1.1 rules. wsdlPath specifies the directory where WSDL files (served by WSDLRequestHandler) can be found. maxQueued, maxThreads, keepAlive and maxKeepAliveRequests are parameters for the HTTP server.
The given socket can be a Poco::Net::SecureServerSocket to enable HTTPS.
~Listener();
Destroys the Listener.
const std::string & getTransportId() const;
Returns the transportId.
void registerObject(
Poco::AutoPtr < Poco::Remoting::RemoteObject > param364,
Poco::AutoPtr < Poco::Remoting::Skeleton > param365,
const Poco::Remoting::Identifiable::ObjectId & param366,
const Poco::Remoting::Identifiable::TypeId & param367,
bool
);
Registers the given object with the transport.
void start();
Starts accepting requests.
See also: Poco::Remoting::Listener::start()
void stop();
Stops accepting requests.
See also: Poco::Remoting::Listener::stop()
void unregisterObject(
Poco::AutoPtr < Poco::Remoting::RemoteObject > param368
);
Unregisters the given object.