cms::ConnectionFactory Class Reference

#include <ConnectionFactory.h>

List of all members.

Public Member Functions

virtual ~ConnectionFactory (void)
virtual ConnectioncreateConnection (void)=0 throw ( CMSException )
virtual ConnectioncreateConnection (const std::string &username, const std::string &password, const std::string &clientId)=0 throw ( CMSException )


Detailed Description

Defines the interface for a factory that creates connection objects


Constructor & Destructor Documentation

virtual cms::ConnectionFactory::~ConnectionFactory void   )  [inline, virtual]
 


Member Function Documentation

virtual Connection* cms::ConnectionFactory::createConnection const std::string &  username,
const std::string &  password,
const std::string &  clientId
throw ( CMSException ) [pure virtual]
 

Creates a connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Parameters:
username - name to login with
password - password to authenticate with
clientId - User provided Client Id
Returns:
Pointer to a connection object, caller owns the pointer
Exceptions:
CMSException. 

virtual Connection* cms::ConnectionFactory::createConnection void   )  throw ( CMSException ) [pure virtual]
 

Creates a connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

Returns:
Pointer to a connection object, caller owns the pointer
Exceptions:
CMSException 


The documentation for this class was generated from the following file:
Generated on Thu Aug 3 16:39:15 2006 for cms by  doxygen 1.4.5