class CTransaction : private CActive |
Public Member Functions | |
---|---|
MHTTPTransactionCallback & | Callback() |
void | CancelTransaction(THTTPFilterHandle) |
RString | CipherSuite() |
void | Close() |
CHeaderCodec & | Codec() |
void | Fail(THTTPFilterHandle) |
RHTTPTransaction | Handle() |
MHttpDataOptimiser * | HttpDataOptimiser() |
TInt | Id() |
CTransaction * | Implementation(RHTTPTransaction) |
TBool | IsValid() |
CTransaction * | NewL(MHTTPTransactionCallback &, const TUriC8 &, CHTTPSession &, RStringF) |
RHTTPTransactionPropertySet | PropertySet() |
CRequest & | Request() |
CResponse & | Response() |
TInt | SendEvent(THTTPEvent &, TInt, THTTPFilterHandle) |
void | SendEventL(THTTPEvent &, TInt, THTTPFilterHandle) |
TInt | ServerCert(TCertInfo &) |
const CCertificate * | ServerCert() |
RHTTPSession | Session() |
void | SetupHttpDataOptimiser(MHttpDataOptimiser &) |
TBool | SyncMode() |
void | SynchronousSendEvent(THTTPEvent, TInt, THTTPFilterHandle) |
void | Unblock() |
Private Member Functions | |
---|---|
CTransaction(MHTTPTransactionCallback &, CHTTPSession &) | |
void | Activate(TTransactionStates) |
TInt | AddEvent(THTTPEvent &, TInt, THTTPFilterHandle) |
TInt | AppendEvent(TEventRegistration &) |
void | ConstructL(const TUriC8 &, RStringF) |
const TEventRegistration & | CurrentEvent() |
void | DoCancel() |
TBool | EventAvailable() |
TTransactionStates | FindFilterForThisEvent() |
TTransactionStates | FindNextFilter() |
void | NextFilter() |
CProtTransaction * | ProtocolTransaction() |
void | RemoveEvent() |
TInt | RunError(TInt) |
void | RunL() |
TBool | RunOneFilterL() |
void | SetProtocolTransaction(CProtTransaction *) |
Private Member Enumerations | |
---|---|
enum | TTransactionStates { EPassive = 0, EFilter, EInFilter, EExiting, EBlocked, ECancelled, ESuspended } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus |
CTransaction | ( | MHTTPTransactionCallback & | aCallback, |
CHTTPSession & | aSession | ||
) | [private, inline] |
MHTTPTransactionCallback & aCallback | |
CHTTPSession & aSession |
void | Activate | ( | TTransactionStates | aStatus | ) | [private] |
TTransactionStates aStatus |
TInt | AddEvent | ( | THTTPEvent & | aEvent, |
TInt | aDirection, | |||
THTTPFilterHandle | aStart | |||
) | [private] |
THTTPEvent & aEvent | |
TInt aDirection | |
THTTPFilterHandle aStart |
TInt | AppendEvent | ( | TEventRegistration & | aEvent | ) | [private] |
TEventRegistration & aEvent |
void | CancelTransaction | ( | THTTPFilterHandle | aStart | ) |
Cancels the transaction. This removes all outstanding events and sends a cancel event outward.
THTTPFilterHandle aStart |
void | Close | ( | ) |
'Closes the transaction'. This is essentialy the way other objects destroy the transaction. They don't directly call the destructor in order to cope with filters closing the transaction, in which situation the transaction will zombify itself, deleting itself when the stack is unwound.
void | DoCancel | ( | ) | [private, 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 | Fail | ( | THTTPFilterHandle | aStart | ) | [inline] |
Fails the transaction. That is to say, cancel the transaction and send the synchronous events 'EUnrecoverableError' and 'EFailed'. It implements the RHTTPTransaction::Fail function.
THTTPFilterHandle aStart |
TTransactionStates | FindFilterForThisEvent | ( | ) | [private] |
Finds the next filter for the current event.
TTransactionStates | FindNextFilter | ( | ) | [private] |
Finds the next filter (possibly in another event).
CTransaction * | Implementation | ( | RHTTPTransaction | aHandle | ) | [static, inline] |
RHTTPTransaction aHandle |
CTransaction * | NewL | ( | MHTTPTransactionCallback & | aCallback, |
const TUriC8 & | aURI, | |||
CHTTPSession & | aSession, | |||
RStringF | aMethod | |||
) | [static, inline] |
MHTTPTransactionCallback & aCallback | |
const TUriC8 & aURI | |
CHTTPSession & aSession | |
RStringF aMethod |
void | RunL | ( | ) | [private, 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
TInt | SendEvent | ( | THTTPEvent & | aEvent, |
TInt | aDirection, | |||
THTTPFilterHandle | aStart | |||
) |
THTTPEvent & aEvent | |
TInt aDirection | |
THTTPFilterHandle aStart |
void | SendEventL | ( | THTTPEvent & | aEvent, |
TInt | aDirection, | |||
THTTPFilterHandle | aStart | |||
) |
THTTPEvent & aEvent | |
TInt aDirection | |
THTTPFilterHandle aStart |
TInt | ServerCert | ( | TCertInfo & | aServerCert | ) | [inline] |
Get the Server Certificate for this transaction.
TCertInfo & aServerCert | A TCertInfo which will be filled with the certificate information |
const CCertificate * | ServerCert | ( | ) | [inline] |
Get the Server Certificate for this transaction.
void | SetProtocolTransaction | ( | CProtTransaction * | aTrans | ) | [private, inline] |
CProtTransaction * aTrans |
void | SetupHttpDataOptimiser | ( | MHttpDataOptimiser & | aHttpOptimiser | ) |
MHttpDataOptimiser & aHttpOptimiser |
void | SynchronousSendEvent | ( | THTTPEvent | aEvent, |
TInt | aDirection, | |||
THTTPFilterHandle | aStart | |||
) |
Sends an event syncronously. Only callable when there are no outstanding events. SendEventL __ASSERT_DEBUG will panic if there are outstanding events.
THTTPEvent aEvent | |
TInt aDirection | |
THTTPFilterHandle aStart |
void | Unblock | ( | ) | [inline] |
If the transaction has previously blocked, set itself active and continue running.
EPassive = 0 | |
EFilter | |
EInFilter | |
EExiting |
The transaction has been closed from within a filter's MHFRunL (detectable as the state is either EInFilter or ECancelled at the time of the close) and so is 'zombified' until the filter returns from its MHFRunL, at which point the transaction will delete itself. |
EBlocked |
The transaction's RunL has fired from within an active scheduler started from within a filter on another transaction. This transaction must be rescheduled once the other transaction has finished. |
ECancelled | |
ESuspended |
__DECLARE_LOG RArray< TEventRegistration > | iEventQueue | [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.