class CHTTPSession : public CBase |
Private Member Functions | |
---|---|
CHTTPSession () | |
void | CleanListImplementationArray ( TAny *) |
void | ConstructL (const TDesC8 &, MHTTPFilterCreationCallback *) |
void | CreateProtocolHandlerL (const TDesC8 &) |
void | InitializeFiltersL (const TDesC8 &) |
Private Member Enumerations | |
---|---|
enum | TBlockingStates { ENormal = 0, EShouldBlock , EHasBlocked } |
void | AddTransactionL | ( | CTransaction * | aTransaction | ) |
CTransaction * aTransaction |
void | CleanListImplementationArray | ( | TAny * | aArray | ) | [private, static] |
TAny * aArray |
void | ConstructL | ( | const TDesC8 & | aProtocol, |
MHTTPFilterCreationCallback * | aSessionCallback | |||
) | [private] |
const TDesC8 & aProtocol | |
MHTTPFilterCreationCallback * aSessionCallback |
void | CreateProtocolHandlerL | ( | const TDesC8 & | aProtocol | ) | [private] |
const TDesC8 & aProtocol |
void | FailSessionEvent | ( | THTTPFilterHandle | aStart = THTTPFilterHandle::EClient | ) |
THTTPFilterHandle aStart = THTTPFilterHandle::EClient |
TInt | FindTransaction | ( | CTransaction * | aTransaction | ) | [inline] |
CTransaction * aTransaction |
void | InitializeFiltersL | ( | const TDesC8 & | aProtocol | ) | [private] |
const TDesC8 & aProtocol |
TBool | IsBlocking | ( | ) | const [inline] |
When 1 transaction runs, the session is blocked using the Block function. It is unblocked at the end with the Unblock function.
If a transaction has run, it must block, and must inform the session of this by calling TransactionHasBlocked
If at least 1 transaction has blocked then when Unblock is called on the session, CTransaction::Unblock will be called on all the transactions. Any transaction that had blocked must then unblock and other transactions must do nothing.
The purpose of this implementation is to be as simple as possible, especialy in terms of storage, but to minimise the ammount of extra code that gets executed in the normal case (when no transactions fire while the session is blocked). This is why the session does not remember which transactions have blocked (which would add complex storage requirements) but it does remember if any have (meaning that all transactions don't need to be unblocked in the normal case)
void | ListAvailableProtocolsL | ( | RPointerArray < HBufC8 > & | aProtocolArray | ) | [static] |
This methods lists all of the available protocols on the device. These are identified by using the list of protocol handler plugins discovered by ECom and appending the data type descriptors to the array. Any existing data in the array is deleted.
RPointerArray < HBufC8 > & aProtocolArray |
CHTTPSession * | NewL | ( | const TDesC8 & | aProtocol | ) | [static] |
const TDesC8 & aProtocol |
CHTTPSession * | NewL | ( | const TDesC8 & | aProtocol, |
MHTTPFilterCreationCallback * | aSessionCallback | |||
) | [static] |
Constructs a session that allows filter configuration. This requires the callback interface of MHTTPFilterCreationCallback that is called during construction, so the client can determine the filters that are installed.
const TDesC8 & aProtocol | |
MHTTPFilterCreationCallback * aSessionCallback |
void | RemoveTransaction | ( | CTransaction * | aTransaction | ) |
CTransaction * aTransaction |
RHTTPHeaders | RequestSessionHeadersL | ( | ) |
RHTTPHeaders | ResponseSessionHeadersL | ( | ) |
void | SendSessionEventL | ( | THTTPSessionEvent | aStatus, |
THTTPSessionEvent::TDirection | aDirection, | |||
THTTPFilterHandle | aStart = THTTPFilterHandle::EClient | |||
) |
THTTPSessionEvent aStatus | |
THTTPSessionEvent::TDirection aDirection | |
THTTPFilterHandle aStart = THTTPFilterHandle::EClient |
TInt | SessionServerCert | ( | TCertInfo & | aServerCert | ) | [inline] |
Get the Server Certificate for this session.
TCertInfo & aServerCert | A TCertInfo which will be filled with the certificate information |
const CCertificate * | SessionServerCert | ( | ) | [inline] |
Get the Server Certificate for the current session.
void | SetSessionEventCallback | ( | MHTTPSessionEventCallback * | aSessionEventCallback | ) |
MHTTPSessionEventCallback * aSessionEventCallback |
void | SetupDefaultProxyFromCommsDatL | ( | ) |
Get the default IAP from CommsDat. For this IAP retrieve Sevrice Id & Service Type. Using these retrieve the default proxy server name & port number. Add these to the properties set of current Http session.
void | SetupHttpDataOptimiser | ( | MHttpDataOptimiser & | aHttpOptimiser | ) |
MHttpDataOptimiser & aHttpOptimiser |
TInt | TransactionServerCert | ( | TCertInfo & | aServerCert, |
RHTTPTransaction | aTransaction | |||
) | [inline] |
Get the Server Certificate for the specified transaction.
TCertInfo & aServerCert | A TCertInfo which will be filled with the certificate information |
RHTTPTransaction aTransaction | The transaction for which the certificate is requested |
const CCertificate * | TransactionServerCert | ( | RHTTPTransaction | aTransaction | ) | [inline] |
Get the Server Certificate for the current session.
RHTTPTransaction aTransaction | The transaction for which the certificate is requested |
void | Unblock | ( | ) |
Called by transaction to indicate that other transactions should stop blocking (and if transaction have blocked, they should be awakened)
Indicates that transactions should stop blocking (and if transaction has blocked, they should be awakened)
TDummyTransactionCallback | iDummyTransactionCallback | [private] |
TFilterConfigurationIterator * | iFilterConfigIter | [private] |
RPointerArray < TSessionFilterInfo > | iFilterInfoList | [private] |
RArray < THTTPFilterRegistration > | iFilterQueue | [private] |
__DECLARE_PERFORMANCE_LOG MHttpDataOptimiser * | iHttpDataOptimiser | [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.