class Roap::CRoapHttpHandler : public CActive |
Public Member Functions | |
---|---|
~CRoapHttpHandler() | |
void | CreateConnectionL(TRequestStatus *) |
void | DoTransactionL(CRoapResponse &, TDesC8 &, TRequestStatus *) |
CRoapHttpHandler * | NewL() |
void | SetObserver(MRoapObserver *) |
void | SetPreferredIap(TUint32) |
void | SetUrlL(TDesC8 &) |
Protected Member Functions | |
---|---|
TInt | AppendMultipartData(const TDesC8 &) |
TInt | AppendPduData(const TDesC8 &) |
TBool | CheckHttpCode(TInt) |
void | Complete() |
void | ConnectL() |
void | CreateSessionL() |
void | DoCancel() |
void | DoTransactionL() |
TBool | GetCredentialsL(const TUriC8 &, RString, RStringF, RString &, RString &) |
TBool | GetNextDataPart(TPtrC8 &) |
void | HandleResponseHeadersL(RHTTPResponse) |
void | InstallHttpFiltersL() |
TInt | MHFRunError(TInt, RHTTPTransaction, const THTTPEvent &) |
void | MHFRunL(RHTTPTransaction, const THTTPEvent &) |
TInt | OverallDataSize() |
void | ReleaseData() |
TInt | Reset() |
TInt | RunError(TInt) |
void | RunL() |
void | SelfComplete(TInt &) |
void | SetHeaderL(RHTTPHeaders, TInt, const TDesC8 &) |
TInt | StaticTimeOut(TAny *) |
void | TimeOut() |
Private Member Functions | |
---|---|
CRoapHttpHandler() | |
void | ConstructL() |
Private Member Enumerations | |
---|---|
enum | TRoapState { EInit, EStart, EConnect, EReady, ERequest, EComplete, ECloseSession } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus |
TInt | AppendMultipartData | ( | const TDesC8 & | aDataChunk | ) | [protected] |
const TDesC8 & aDataChunk |
TInt | AppendPduData | ( | const TDesC8 & | aDataChunk | ) | [protected] |
const TDesC8 & aDataChunk |
void | CreateConnectionL | ( | TRequestStatus * | aStatus | ) |
TRequestStatus * aStatus |
void | DoCancel | ( | ) | [protected, virtual] |
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel().
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel().
void | DoTransactionL | ( | CRoapResponse & | aResponse, |
TDesC8 & | aReqBody, | |||
TRequestStatus * | aStatus | |||
) |
CRoapResponse & aResponse | |
TDesC8 & aReqBody | |
TRequestStatus * aStatus |
TBool | GetCredentialsL | ( | const TUriC8 & | aURI, |
RString | aRealm, | |||
RStringF | aAuthenticationType, | |||
RString & | aUsername, | |||
RString & | aPassword | |||
) | [protected, virtual] |
TBool | GetNextDataPart | ( | TPtrC8 & | aDataPart | ) | [protected, virtual] |
TPtrC8 & aDataPart |
void | HandleResponseHeadersL | ( | RHTTPResponse | aHttpResponse | ) | [protected] |
RHTTPResponse aHttpResponse |
TInt | MHFRunError | ( | TInt | aError, |
RHTTPTransaction | aTransaction, | |||
const THTTPEvent & | aEvent | |||
) | [protected, virtual] |
TInt aError | |
RHTTPTransaction aTransaction | |
const THTTPEvent & aEvent |
void | MHFRunL | ( | RHTTPTransaction | aTransaction, |
const THTTPEvent & | aEvent | |||
) | [protected, virtual] |
RHTTPTransaction aTransaction | |
const THTTPEvent & aEvent |
void | RunL | ( | ) | [protected, virtual] |
Handles an active object's request completion event.
A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.
The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.
Before calling this active object's RunL() function, the active scheduler has:
1. decided that this is the highest priority active object with a completed request
2. marked this active object's request as complete (i.e. the request is no longer outstanding)
RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.
Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.
CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD
void | SetHeaderL | ( | RHTTPHeaders | aHeaders, |
TInt | aHdrField, | |||
const TDesC8 & | aHdrValue | |||
) | [protected] |
RHTTPHeaders aHeaders | |
TInt aHdrField | |
const TDesC8 & aHdrValue |
void | SetObserver | ( | MRoapObserver * | aRoapObserver | ) |
MRoapObserver * aRoapObserver |
TInt | StaticTimeOut | ( | TAny * | aPointer | ) | [protected, static] |
TAny * aPointer |
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.