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_C
|
CUpnpHttpServerTransaction
|
(
|
)
|
[protected]
|
~CUpnpHttpServerTransaction()
IMPORT_C
|
~CUpnpHttpServerTransaction
|
(
|
)
|
|
Member Functions Documentation
AddResponseHeaderL(const TDesC8 &, const TDesC8 &)
IMPORT_C void
|
AddResponseHeaderL
|
(
|
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.
Parameters
const
TDesC8
& aName
|
header name
|
const
TDesC8
& aValue
|
header value
|
OnCallbackL(TUpnpHttpServerEvent)
Handler for transaction event.
QueryRequestHeader(const TDesC8 &)
IMPORT_C
TDesC8
&
|
QueryRequestHeader
|
(
|
const
TDesC8
&
|
aHeaderName
|
)
|
|
Returns request header value. When header not found, returns KNullDesC8.
Parameters
const
TDesC8
& aHeaderName
|
header name
|
QueryResponseHeader()
IMPORT_C const
TDesC8
&
|
QueryResponseHeader
|
(
|
)
|
|
Returns response header buffer.
SetDataSinkL(RFile &)
IMPORT_C void
|
SetDataSinkL
|
(
|
RFile
&
|
aFile
|
)
|
[protected]
|
Parameters
RFile
& aFile
|
File handle, may not be on cleanupstack
|
SetDataSourceL(RFile &)
IMPORT_C void
|
SetDataSourceL
|
(
|
RFile
&
|
aFile
|
)
|
[protected]
|
Parameters
RFile
& aFile
|
File handle, may not be on cleanupstack
|
SetHttpCode(TInt)
IMPORT_C void
|
SetHttpCode
|
(
|
TInt
|
aCode
|
)
|
[protected]
|
SetRequest(CUpnpHttpMessage *)
IMPORT_C void
|
SetRequest
|
(
|
CUpnpHttpMessage *
|
aRequest
|
)
|
|
Parameters
CUpnpHttpMessage * aRequest
|
|
Member Enumerations Documentation
Enum TUpnpHttpServerEvent
Http Event type enumerator
Enumerators
EOnRequestStart = 0
|
|
EOnResponseStart
|
|
EOnComplete
|
|
Member Data Documentation
RBuf8
iHeaderBuffer
RBuf8
|
iHeaderBuffer
|
[private]
|
CUpnpHttpMessage * iRequest
CUpnpHttpMessage *
|
iRequest
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.