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

rwsf::HandlerManager

Group:  Handler

Local Index

Members

Header File

#include <rw/rwsf/soapworx/HandlerManager.h>

Description

rwsf::HandlerManager loads, stores, and locates handlers for a service. In generated clients, it is used to set a logger. In addition, clients accessing a service through a notification-type method -- which requires setting up a listener on the client -- also use this class to initialize the client-handlers.xml configuration file.

For a discussion on handlers and how to use or create them, see Chapter 15, "SOAP Message Handler SDK," in the HydraExpress Web Service Development Guide

When deploying services, the static method loadConfiguration() is called automatically.

To initialize handlers in a client executable, however, you must call loadConfiguration("client-handlers.xml") directly. To use a custom handler configuration file, specify that file name instead of "client-handlers.xml".

Public Member Functions

static void 
addHandler(const std::string& name, 
            const rwsf::MessageHandler& handler);
static void 
clearHandlers();
static bool 
containsHandler(const std::string& name);
static rwsf::MessageHandler 
findHandler(const std::string& name);
static rwsf::Enumeration<std::string> 
getHandlerNames();
static void 
loadConfiguration(const std::string& fileName);
static void 
setLogger(const rwsf::MessageHandler& handler);
static void 
invokeLogger(rwsf::CallInfo& callInfo);
static void 
invokeLogger(const std::string& message, 
            rwsf::CallInfo::LogLevel logLevel =
rwsf::CallInfo::Info);

Related Classes

See also rwsf::MessageHandler.



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.