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

rwsf::MessageListenerImp

Group:  Listener


rwsf::MessageListenerImp rwsf::MessageHandlerImp

Local Index

Members

Non-Members

Header File

#include <rw/rwsf/soapworx/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. Note: Use rwsf_DEFINE_MESSAGE_HANDLER if the listener is compiled into a library, and rwsf_DEFINE_STATIC_MESSAGE_HANDLER if the listener is compiled into an executable, such as creating a listener to be used on a client for the message pattern notification.

  4. 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

Global Macro

#define rwsf_DEFINE_MESSAGE_HANDLER(NAME) 

Public Constructor

MessageListenerImp();

Destructor

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

Protected Member Functions

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

Global Macro

#define rwsf_DEFINE_rwsf_LISTENER(NAME)


Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.