#include <cel_broker.h>
Public Member Functions | |
virtual AutoPtr< Storage > | locateFile (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< ResourceBroker > | create () |
static AutoPtr< ResourceBroker > | create (const String &inUserAgentName, CredentialProvider *inCredentialProvider=NULL) |
static AutoPtr< ResourceBroker > | create (HttpManager *inHttpManager) |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
This class provides the default broker mechanism for cooperating with resources.
|
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.
|
static |
Create a ResourceBroker.
This method internally calls HttpManager::create to create its own HttpManager instance. For more information, see HttpManager.
inUserAgentName | User Agent Name for your application. If this value is not specified (or NullString), it uses system default. |
inCredentialProvider | Pointer to a class instance to get credential information. If it is NULL , no authentication mechanism is supported by the newly created ResourceBroker instance. |
|
static |
Create a new ResourceBroker instance.
inHttpManager | Pointer to a HttpManager instance. If you don't plan to use HTTP based resources, it can be NULL . |
|
pure virtual |
This method locates the resource and returns a pointer to read-only Storage instance.
inUriOrFileName | URI or local file name of the resource. The default implementation can deal with URIs starts from http , https , file or local file names. |