CUpnpHttpServerTransaction Class Reference

class CUpnpHttpServerTransaction : public CBase

Base abstract class for HTTP server transactions. Client has to derive from this class to implement required behavior.

dlnawebserver.lib
Since
S60 5.1

Inherits from

  • CUpnpHttpServerTransaction

Constructor & Destructor Documentation

CUpnpHttpServerTransaction()

IMPORT_CCUpnpHttpServerTransaction()[protected]

C++ constructor.

~CUpnpHttpServerTransaction()

IMPORT_C~CUpnpHttpServerTransaction()

Destructor.

Member Functions Documentation

AddResponseHeaderL(const TDesC8 &, const TDesC8 &)

IMPORT_C voidAddResponseHeaderL(const TDesC8 &aName,
const TDesC8 &aValue
)

Adds pair : name - value to response header To add HTTP method and HTTP code, pass it as aValue parameter and as aName pass KNullDesC8.

Since
S60 5.1

Parameters

const TDesC8 & aNameheader name
const TDesC8 & aValueheader value

DataSink()

RFile &DataSink()

DataSource()

RFile &DataSource()

Error()

IMPORT_C TIntError()

OnCallbackL(TUpnpHttpServerEvent)

voidOnCallbackL(TUpnpHttpServerEventaEvent)[pure virtual]

Handler for transaction event.

Since
S60 5.1

Parameters

TUpnpHttpServerEvent aEventserver event

QueryRequestHeader(const TDesC8 &)

IMPORT_C TDesC8 &QueryRequestHeader(const TDesC8 &aHeaderName)

Returns request header value. When header not found, returns KNullDesC8.

Since
S60 5.1

Parameters

const TDesC8 & aHeaderNameheader name

QueryResponseHeader()

IMPORT_C const TDesC8 &QueryResponseHeader()

Returns response header buffer.

Since
S60 5.1

SetDataSinkL(RFile &)

IMPORT_C voidSetDataSinkL(RFile &aFile)[protected]

Sets data sink.

Since
S60 5.1

Parameters

RFile & aFileFile handle, may not be on cleanupstack

SetDataSourceL(RFile &)

IMPORT_C voidSetDataSourceL(RFile &aFile)[protected]

Sets data source.

Since
S60 5.1

Parameters

RFile & aFileFile handle, may not be on cleanupstack

SetHttpCode(TInt)

IMPORT_C voidSetHttpCode(TIntaCode)[protected]

Sets http code.

Since
S60 5.1

Parameters

TInt aCodehttp code

SetRequest(CUpnpHttpMessage *)

IMPORT_C voidSetRequest(CUpnpHttpMessage *aRequest)

Parameters

CUpnpHttpMessage * aRequest

Member Enumerations Documentation

Enum TUpnpHttpServerEvent

Http Event type enumerator

Enumerators

EOnRequestStart = 0
EOnResponseStart
EOnComplete

Member Data Documentation

RFile iFile

RFile iFile[private]

RBuf8 iHeaderBuffer

RBuf8 iHeaderBuffer[private]

TInt iHttpCode

TInt iHttpCode[private]

CUpnpHttpMessage * iRequest

CUpnpHttpMessage *iRequest[private]