Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress C++ API Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::MessageListenerImp

Group:  Web Services


rwsf::MessageListenerImprwsf::MessageHandlerImp

Local Index

Members

Header File

#include rwsf/webservice/listener/MessageListenerImp.h

Description

rwsf::MessageListenerImp is the abstract base class from which all listener body classes derive. Since listeners are handlers in rwsf, rwsf::MessageListenerImp derives from rwsf::MessageHandlerImp.

rwsf::MessageListenerImp implements the handle/body pattern in which rwsf::MessageListener is the handle, and rwsf::MessageListenerImp is the body.

For properties that can be set on a listener, and other details, see the handle class rwsf::MessageListener.

To create a new listener:

  1. Implement the member functions initServer(), doStart(), and doStop().

  2. Define the macro RWSF_DEFINE_MESSAGE_HANDLER(NAME).

  3. Configure the listener in the configuration file client-transports.xml, or use this class to set properties.

For more information, see Section 11.6, "Creating a Transport," in the HydraExpress Web Service Development Guide.

Public Constructors

MessageListenerImp();

Public Destructors

virtual
~MessageListenerImp();

Public Member Functions

std::string
getProperty(const std::string & value);
void
init(const rwsf::Config & initParams);
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);
void
reset();
void
setHandler(const rwsf::MessageHandler & handler);
void
setProperty(const std::string & key,
    const std::string & value);
void
start();
void
stop();

Protected Member Functions

void
doInit(const rwsf::Config & initParams) = 0;
void
doReset() = 0;
void
doStart() = 0;
void
doStop() = 0;
void
initServer() = 0;


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.