Public Member Functions | Static Public Member Functions | List of all members
Celartem::ResourceBroker Class Referenceabstract

#include <cel_broker.h>

Inheritance diagram for Celartem::ResourceBroker:
Inheritance graph
[legend]

Public Member Functions

virtual AutoPtr< StoragelocateFile (const String &inUriOrFileName)=0
 
- Public Member Functions inherited from Celartem::Referable
 Referable ()
 
void addRef () const
 
void releaseRef () const
 
size_t getReferenceCount () const
 

Static Public Member Functions

static AutoPtr< ResourceBrokercreate ()
 
static AutoPtr< ResourceBrokercreate (const String &inUserAgentName, CredentialProvider *inCredentialProvider=NULL)
 
static AutoPtr< ResourceBrokercreate (HttpManager *inHttpManager)
 
- Static Public Member Functions inherited from Celartem::Referable
static void dumpDbgAllRefCount ()
 

Detailed Description

This class provides the default broker mechanism for cooperating with resources.

Member Function Documentation

static AutoPtr<ResourceBroker> Celartem::ResourceBroker::create ( )
static

Get the default ResourceBroker implementation.
This method actually does not create a new one but returns a shared instance. This is very useful when you don't need your own ResourceBroker instance.

Returns
Pointer to the default ResourceBroker instance.
static AutoPtr<ResourceBroker> Celartem::ResourceBroker::create ( const String inUserAgentName,
CredentialProvider inCredentialProvider = NULL 
)
static

Create a ResourceBroker.
This method internally calls HttpManager::create to create its own HttpManager instance. For more information, see HttpManager.

Parameters
inUserAgentNameUser Agent Name for your application. If this value is not specified (or NullString), it uses system default.
inCredentialProviderPointer to a class instance to get credential information. If it is NULL, no authentication mechanism is supported by the newly created ResourceBroker instance.
Returns
Pointer to the newly created ResourceBroker instance.
static AutoPtr<ResourceBroker> Celartem::ResourceBroker::create ( HttpManager inHttpManager)
static

Create a new ResourceBroker instance.

Parameters
inHttpManagerPointer to a HttpManager instance. If you don't plan to use HTTP based resources, it can be NULL.
virtual AutoPtr<Storage> Celartem::ResourceBroker::locateFile ( const String inUriOrFileName)
pure virtual

This method locates the resource and returns a pointer to read-only Storage instance.

Parameters
inUriOrFileNameURI or local file name of the resource. The default implementation can deal with URIs starts from http, https, file or local file names.
Returns
Pointer to the Storage instance of the specified resource.

The documentation for this class was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo