RUpnpHttpMessageFactory Class Reference

class RUpnpHttpMessageFactory

Member Functions Documentation

Http11ResponseL(CUpnpHttpMessage *, TInt)

IMPORT_C CUpnpHttpMessage *Http11ResponseL(CUpnpHttpMessage *aMessage,
TIntaStatus
)[static]

Creates a HTTP reply message.

Parameters

CUpnpHttpMessage * aMessageMessage in which should be replied.
TInt aStatusNumber of status code.

Http11ResponseL(const TInetAddr &, TInt)

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

Creates a HTTP reply message.

Parameters

const TInetAddr & aDestinationDestination of the reply message.
TInt aStatusNumber 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 & aDestinationDestination of the message.
const TDesC8 & aPathpath 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 & aDestinationDestination of the message.
const TDesC8 & aHeadPathStart path to file in Http server.
const TDesC8 & aTailPathEnd 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 & aUrlUrl 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 & aDestinationDestination of the message.
const TDesC8 & aPathpath 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 & aUrlUrl 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 & aDestinationDestination of the message.
const TDesC8 & aPathpath 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 & aDestinationDestination of the message.
const TDesC8 & aPathpath 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 & aUrlUrl 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 & aDestinationDestination of the message.
const TDesC8 & aPathpath 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 & aDestinationDestination of the message.
const TDesC8 & aPathpath to file in Http server.

HttpResponseErrorL(CUpnpHttpMessage *, TInt)

IMPORT_C CUpnpHttpMessage *HttpResponseErrorL(CUpnpHttpMessage *aMessage,
TIntaError
)[static]

Creates a HTTP Error message.

Parameters

CUpnpHttpMessage * aMessageMessage in which should be replied.
TInt aErrorNumber of error code.

HttpResponseErrorL(const TInetAddr &, TInt)

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

Creates a HTTP Error message.

Parameters

const TInetAddr & aAddrDestination of the error message.
TInt aErrorNumber of error code.

HttpResponseOkL(CUpnpHttpMessage *)

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

Creates a HTTP OK reply message, Code 200.

Parameters

CUpnpHttpMessage * aMessageMessage 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 & aDestinationDestination of the reply message.

SetHostHeaderL(CUpnpHttpMessage *, const TInetAddr &)

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

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

Parameters

CUpnpHttpMessage * aMessageMessage for which the Host header will be set.
const TInetAddr & aDestinationDestination address.

UpnpResponseErrorL(CUpnpHttpMessage *, TUpnpErrorCode)

IMPORT_C CUpnpHttpMessage *UpnpResponseErrorL(CUpnpHttpMessage *aMessage,
TUpnpErrorCodeaError
)[static]

Creates a HTTP Error message with UPnp error codes.

Parameters

CUpnpHttpMessage * aMessageMessage in which should be replied.
TUpnpErrorCode aErrorNumber of error code.

UpnpResponseErrorL(const TInetAddr &, TUpnpErrorCode)

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

Creates a HTTP Error message with UPnp error codes.

Parameters

const TInetAddr & aDestinationDestination of the error message.
TUpnpErrorCode aErrorNumber of error code.