Static Public Member Functions | List of all members
BUrlProtocolRoster Class Reference

Interfaces for protocol-agnostic operations. More...

Static Public Member Functions

static BUrlRequest * MakeRequest (const BUrl &url, BUrlProtocolListener *listener=NULL, BUrlContext *context=NULL)
 Create a BUrlRequest that can handle the given BUrl. More...
 

Detailed Description

Interfaces for protocol-agnostic operations.

Member Function Documentation

◆ MakeRequest()

static BUrlRequest * BUrlProtocolRoster::MakeRequest ( const BUrl url,
BUrlProtocolListener listener = NULL,
BUrlContext *  context = NULL 
)
static

Create a BUrlRequest that can handle the given BUrl.

Parameters
urlThe URL to create a request for
listenerThe BUrlProtocolListener to be registered with the created BUrlRequest, can be NULL
contextThe BUrlContext to be registered with the created BUrlRequest, can be NULL
Returns
A pointer to the BUrlRequest that can handle the given BUrl. NULL will be returned if there aren't any BUrlRequest that can handle the given protocol or if memory couldn't be allocated.