Poco::Remoting::SoapLite

class Listener

Library: Remoting/SoapLite
Package: SoapLite
Header: Poco/Remoting/SoapLite/Listener.h

Description

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.

Inheritance

Direct Base Classes: Poco::Remoting::Listener

All Base Classes: Poco::Remoting::Listener

Member Summary

Member Functions: getTransportId, registerObject, start, stop, unregisterObject

Inherited Functions: getLocalEndPoint, getTransportId, registerObject, start, stop, unregisterObject

Constructors

Listener

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

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

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

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

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

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

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

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

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

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.

Destructor

~Listener virtual

~Listener();

Destroys the Listener.

Member Functions

getTransportId virtual inline

const std::string & getTransportId() const;

Returns the transportId.

See also: Poco::Remoting::Listener::getTransportId()

registerObject inline

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.

start virtual inline

void start();

Starts accepting requests.

See also: Poco::Remoting::Listener::start()

stop virtual inline

void stop();

Stops accepting requests.

See also: Poco::Remoting::Listener::stop()

unregisterObject inline

void unregisterObject(
    Poco::AutoPtr < Poco::Remoting::RemoteObject > param368
);

Unregisters the given object.