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

Interfaces for protocol-agnostic operations. More...

Static Public Member Functions

static BUrlRequestMakeRequest (const BUrl &url, BDataIO *output, 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,
BDataIO output,
BUrlProtocolListener listener = NULL,
BUrlContext *  context = NULL 
)
static

Create a BUrlRequest that can handle the given BUrl.

Parameters
urlThe URL to create a request for
outputThe BDataIO to output to
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.