RUpnpHttpMessageFactory Class Reference

class RUpnpHttpMessageFactory

Member Functions Documentation

Http11ResponseL(CUpnpHttpMessage *, TInt)

IMPORT_C CUpnpHttpMessage * Http11ResponseL ( CUpnpHttpMessage * aMessage,
TInt aStatus
) [static]

Creates a HTTP reply message.

Parameters

CUpnpHttpMessage * aMessage Message in which should be replied.
TInt aStatus Number of status code.

Http11ResponseL(const TInetAddr &, TInt)

IMPORT_C CUpnpHttpMessage * Http11ResponseL ( const TInetAddr & aDestination,
TInt aStatus
) [static]

Creates a HTTP reply message.

Parameters

const TInetAddr & aDestination Destination of the reply message.
TInt aStatus Number of status code.

HttpGetL(TInetAddr &, const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpGetL ( TInetAddr & aDestination,
const TDesC8 & aPath
) [static]

Constructor function; Creates HTTP get message, which is used normally to get content from remote servers.

Parameters

TInetAddr & aDestination Destination of the message.
const TDesC8 & aPath path to file in Http server.

HttpGetL(TInetAddr &, const TDesC8 &, const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpGetL ( TInetAddr & aDestination,
const TDesC8 & aHeadPath,
const TDesC8 & aTailPath
) [static]

Constructor function; Creates HTTP get message, which is used normally to get content from remote servers.

Parameters

TInetAddr & aDestination Destination of the message.
const TDesC8 & aHeadPath Start path to file in Http server.
const TDesC8 & aTailPath End path to file in Http server.

HttpGetL(const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpGetL ( const TDesC8 & aUrl ) [static]

Constructor function; Creates HTTP get message, which is used normally to get content from remote servers.

Parameters

const TDesC8 & aUrl Url to file.

HttpGetL(const TDesC8 &, const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpGetL ( const TDesC8 & aDestination,
const TDesC8 & aPath
) [static]

Constructor function; Creates HTTP get message, which is used normally to get content from remote servers.

Parameters

const TDesC8 & aDestination Destination of the message.
const TDesC8 & aPath path to file in Http server.

HttpHeadL(const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpHeadL ( const TDesC8 & aUrl ) [static]

Constructor function; Creates HTTP HEAD message.

Parameters

const TDesC8 & aUrl Url to file/target/service.

HttpHeadL(const TDesC8 &, const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpHeadL ( const TDesC8 & aDestination,
const TDesC8 & aPath
) [static]

Constructor function; Creates HTTP HEAD message.

Parameters

const TDesC8 & aDestination Destination of the message.
const TDesC8 & aPath path to file in Http server.

HttpHeadL(TInetAddr &, const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpHeadL ( TInetAddr & aDestination,
const TDesC8 & aPath
) [static]

Constructor function; Creates HTTP HEAD message.

Parameters

TInetAddr & aDestination Destination of the message.
const TDesC8 & aPath path to file in Http server.

HttpPostL(const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpPostL ( const TDesC8 & aUrl ) [static]

Constructor function; Creates HTTP POST message.

Parameters

const TDesC8 & aUrl Url to file/target/service.

HttpPostL(const TDesC8 &, const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpPostL ( const TDesC8 & aDestination,
const TDesC8 & aPath
) [static]

Constructor function; Creates HTTP POST message.

Parameters

const TDesC8 & aDestination Destination of the message.
const TDesC8 & aPath path to file in Http server.

HttpPostL(const TInetAddr &, const TDesC8 &)

IMPORT_C CUpnpHttpMessage * HttpPostL ( const TInetAddr & aDestination,
const TDesC8 & aPath
) [static]

Constructor function; Creates HTTP POST message.

Parameters

const TInetAddr & aDestination Destination of the message.
const TDesC8 & aPath path to file in Http server.

HttpResponseErrorL(CUpnpHttpMessage *, TInt)

IMPORT_C CUpnpHttpMessage * HttpResponseErrorL ( CUpnpHttpMessage * aMessage,
TInt aError
) [static]

Creates a HTTP Error message.

Parameters

CUpnpHttpMessage * aMessage Message in which should be replied.
TInt aError Number of error code.

HttpResponseErrorL(const TInetAddr &, TInt)

IMPORT_C CUpnpHttpMessage * HttpResponseErrorL ( const TInetAddr & aAddr,
TInt aError
) [static]

Creates a HTTP Error message.

Parameters

const TInetAddr & aAddr Destination of the error message.
TInt aError Number of error code.

HttpResponseOkL(CUpnpHttpMessage *)

IMPORT_C CUpnpHttpMessage * HttpResponseOkL ( CUpnpHttpMessage * aMessage ) [static]

Creates a HTTP OK reply message, Code 200.

Parameters

CUpnpHttpMessage * aMessage Message in which should be replied.

HttpResponseOkL(const TInetAddr &)

IMPORT_C CUpnpHttpMessage * HttpResponseOkL ( const TInetAddr & aDestination ) [static]

Creates a HTTP OK reply message, Code 200.

Parameters

const TInetAddr & aDestination Destination of the reply message.

SetHostHeaderL(CUpnpHttpMessage *, const TInetAddr &)

void SetHostHeaderL ( CUpnpHttpMessage * aMessage,
const TInetAddr & aDestination
) [private, static]

Sets Host HTTP header to given message basing on given destinstion address.

Parameters

CUpnpHttpMessage * aMessage Message for which the Host header will be set.
const TInetAddr & aDestination Destination address.

UpnpResponseErrorL(CUpnpHttpMessage *, TUpnpErrorCode)

IMPORT_C CUpnpHttpMessage * UpnpResponseErrorL ( CUpnpHttpMessage * aMessage,
TUpnpErrorCode aError
) [static]

Creates a HTTP Error message with UPnp error codes.

Parameters

CUpnpHttpMessage * aMessage Message in which should be replied.
TUpnpErrorCode aError Number of error code.

UpnpResponseErrorL(const TInetAddr &, TUpnpErrorCode)

IMPORT_C CUpnpHttpMessage * UpnpResponseErrorL ( const TInetAddr & aDestination,
TUpnpErrorCode aError
) [static]

Creates a HTTP Error message with UPnp error codes.

Parameters

const TInetAddr & aDestination Destination of the error message.
TUpnpErrorCode aError Number of error code.