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

rwsf::TransportManager

Group:  Transport

HIERARCHY

Local Index

Members

Non-Members

Header File

#include <rw/rwsf/soapworx/transport/TransportManager.h>

Description

The class rwsf::TransportManager manages the use of transports and listeners for a message. It is used by the generated proxy to initialize the appropriate transport or listener for that proxy.

If you customize or write your own client proxy, always use this class to locate and instantiate a transport or listener. For example, in the following code...

myProxy myp = myProxy::make("http://someurl");

...the proxy make() function gets an HTTP transport through the Transport Manager.

If you are specifying the type of transport directly instead of relying on the scheme indicated by a location url, use the method findTransport().


NOTE -- The default "transports configuration" and "client transports configuration" files are "transports.xml" and "client-transports.xml" respectively, although you may create your own or modify the name. For more information, see Chapter 11, "Dynamic Transports," in the HydraExpress Web Service Development Guide

Global Typedefs

typedef rwsf::NamedObjectImp* (*NamedObjectCreateMethod) ();

Public Member Functions

struct TransportInfo {
      rwsf::CString                   name_;
      rwsf::CString                   uri_;
      rwsf::CString                   scheme_;
      rwsf::CString                   default_;  
      rwsf::Config                    initParams;
      rwsf::NamedObjectCreateMethod   createMethod_;
    };
static void 
clearListeners();
static void 
clearTransports();
static rwsf::MessageListener *
findListener(const rwsf::CString& id);
static rwsf::MessageListener 
findListenerByUrl(const rwsf::CString& url); 
static rwsf::Transport 
findTransport(const rwsf::CString& id);
static rwsf::Transport 
findTransportByUrl(const rwsf::CString& url);
static rwsf::Enumeration<rwsf::CString> 
getTransportNames(); 
static rwsf::Enumeration<rwsf::CString> 
getListenerNames(); 
static void 
initialize(const rwsf::CString& transportXmlFile, 
                      const rwsf::CString& libSuffix =  
           rwsf::CString(rwsf_DEFAULT_LIBSUFFIX));
static void 
registerTransport(const TransportInfo& transport);
static void 
registerListener (const TransportInfo& transport);

Protected Member Functions

static rwsf::CString 
getSchemeFromUrl(const rwsf::CString& url);


Previous fileTop of DocumentContentsIndex pageNo next 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.