HydraExpress™ C++ API Reference Guide

Product Documentation:
   HydraExpress C++
Documentation Home
List of all members | Protected Member Functions
rwsf::HttpMessageListener Class Reference

Represents an HTTP message listener for either web services or clients. More...

#include <rwsf/webservice/listener/HttpMessageListener.h>

Inheritance diagram for rwsf::HttpMessageListener:
rwsf::MessageListenerImp rwsf::MessageHandlerImp rwsf::HttpsMessageListener

Protected Member Functions

virtual void doInit (const rwsf::Config &initParams)
 
virtual void doReset ()
 
virtual void doStart ()
 
virtual void doStop ()
 
virtual void initServer ()
 

Additional Inherited Members

- Public Member Functions inherited from rwsf::MessageListenerImp
 MessageListenerImp ()
 
virtual ~MessageListenerImp ()
 
virtual std::string getProperty (const std::string &key)
 
virtual void init (const rwsf::Config &initParams)
 
virtual void invoke (rwsf::CallInfo &callInfo)
 
bool isStopped ()
 
void log (const std::string &message, rwsf::CallInfo::LogLevel l=rwsf::CallInfo::Error)
 
void log (rwsf::CallInfo &callInfo, rwsf::CallInfo::LogLevel l=rwsf::CallInfo::Error)
 
virtual void setProperty (const std::string &key, const std::string &value)
 
- Public Member Functions inherited from rwsf::MessageHandlerImp
 MessageHandlerImp ()
 
virtual ~MessageHandlerImp ()
 
virtual void destroy ()
 

Detailed Description

This class creates an HTTP listener based on the parameters configured in either the transport.xml file (servers) or the client-transports.xml file. It receives and parses the HTTP message and forwards the request data to the appropriate client or web service code.

Note
This class is not intended for direct use.

Member Function Documentation

virtual void rwsf::HttpMessageListener::doInit ( const rwsf::Config initParams)
protectedvirtual

Pure virtual function. In derived classes, init() calls this method to handle any initialization specific to the implementation.

Implements rwsf::MessageListenerImp.

Reimplemented in rwsf::HttpsMessageListener.

virtual void rwsf::HttpMessageListener::doReset ( )
protectedvirtual

Pure virtual function. In the derived classes, this method is called by reset() to handle resetting the listener.

Note
This method does not restart the listener.

Implements rwsf::MessageListenerImp.

virtual void rwsf::HttpMessageListener::doStart ( )
protectedvirtual

Pure virtual function. In derived classes, this method is the entry point for the listening thread, which is spawned in start() after calling initServer().

Implements rwsf::MessageListenerImp.

virtual void rwsf::HttpMessageListener::doStop ( )
protectedvirtual

Pure virtual function. In the derived classes, this method is called by stop() to handle any listener thread shutdown specific to the implementation.

Implements rwsf::MessageListenerImp.

virtual void rwsf::HttpMessageListener::initServer ( )
protectedvirtual

Pure virtual function. In derived classes, start() calls this method, which is expected to handle any setup needed by the listening thread specific to the implementation.

Implements rwsf::MessageListenerImp.

Reimplemented in rwsf::HttpsMessageListener.

Copyright © 2020 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is registered trademark of Rogue Wave Software, Inc. in the United States and other countries, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.