webservices/wshttpchanneltransportplugin/src/senhttpchannelimpl.cpp
branchRCL_3
changeset 15 32ab7ae9ec94
parent 14 9e96e2676219
child 21 6f5ef5fc65b4
equal deleted inserted replaced
14:9e96e2676219 15:32ab7ae9ec94
   174 #endif	
   174 #endif	
   175 
   175 
   176 // Ask IAP from user
   176 // Ask IAP from user
   177 void CSenHttpChannelImpl::ConstructL()
   177 void CSenHttpChannelImpl::ConstructL()
   178     {
   178     {
       
   179     TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenHttpChannelImpl::ConstructL()")));
       
   180     	
   179     // Open the RHTTPSession
   181     // Open the RHTTPSession
   180     TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("- Opening HTTP/TCP session.")));
   182     TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenHttpChannelImpl::ConstructL() - Opening HTTP/TCP session.")));
   181 
   183 
   182     iSess.OpenL();
   184     iSess.OpenL();
   183 
   185 
   184     // Store the string pool for this HTTP session
   186     // Store the string pool for this HTTP session
   185     iStringPool = iSess.StringPool();
   187     iStringPool = iSess.StringPool();
   186 
   188 	TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenHttpChannelImpl::ConstructL() - Calling InstallAuthenticationL()")));
   187     // Install this class as the callback for authentication requests
   189     // Install this class as the callback for authentication requests
   188     InstallAuthenticationL( iSess );
   190     InstallAuthenticationL( iSess );
       
   191     TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenHttpChannelImpl::ConstructL() - Completed InstallAuthenticationL()")));
   189     //Install Proxy Filter  
   192     //Install Proxy Filter  
   190     iDeflateFilter = EFalse;
   193     iDeflateFilter = EFalse;
   191 
   194 
   192 #ifdef EKA2
   195 #ifdef EKA2
   193   //#ifndef _DEBUG 
   196   //#ifndef _DEBUG 
       
   197   	TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenHttpChannelImpl::ConstructL() - Installing  HTTPProxyFilter for EKA2 build.")));
   194     CHttpFilterProxyInterface::InstallFilterL( iSess );
   198     CHttpFilterProxyInterface::InstallFilterL( iSess );
       
   199     TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenHttpChannelImpl::ConstructL() - HTTPProxyFilter installed for EKA2 build.")));
   195     iSess.StringPool().OpenL(HttpFilterCommonStringsExt::GetLanguageTable());
   200     iSess.StringPool().OpenL(HttpFilterCommonStringsExt::GetLanguageTable());
   196     iSess.StringPool().OpenL(HttpFilterCommonStringsExt::GetTable());
   201     iSess.StringPool().OpenL(HttpFilterCommonStringsExt::GetTable());
   197 
   202 	TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenHttpChannelImpl::ConstructL() - Installing  HTTPAcceptProxyFilter for EKA2 build.")));
   198     CHttpFilterAcceptHeaderInterface::InstallFilterL(iSess);
   203     CHttpFilterAcceptHeaderInterface::InstallFilterL(iSess);
   199     TLSLOG_L(KSenHttpChannelLogChannelBase , KNormalLogLevel,"HTTPProxyFilter installed for EKA2 build.");
   204     TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenHttpChannelImpl::ConstructL() - HTTPAcceptProxyFilter installed for EKA2 build.")));
   200     TLSLOG_L(KSenHttpChannelLogChannelBase , KNormalLogLevel,"HTTPAcceptFilter installed for EKA2 build.");
       
   201   //#else
   205   //#else
   202   //  LOG_WRITE_L("HTTPProxyFilter is NOT in use with EKA2 debug builds.");
   206   //  LOG_WRITE_L("HTTPProxyFilter is NOT in use with EKA2 debug builds.");
   203   //#endif
   207   //#endif
   204 #else // __INSTALL_HTTP_PROXY_FILTER__ is not defined by macro in .mmp
   208 #else // __INSTALL_HTTP_PROXY_FILTER__ is not defined by macro in .mmp
   205     TLSLOG_L(KSenHttpChannelLogChannelBase , KNormalLogLevel,"HTTPProxyFilter is NOT in use with EKA1.");
   209     TLSLOG_L(KSenHttpChannelLogChannelBase , KMinLogLevel,"HTTPProxyFilter is NOT in use with EKA1.");
   206     TLSLOG_L(KSenHttpChannelLogChannelBase , KNormalLogLevel,"HTTPAcceptProxyFilter is NOT in use with EKA1.");
   210     TLSLOG_L(KSenHttpChannelLogChannelBase , KMinLogLevel,"HTTPAcceptProxyFilter is NOT in use with EKA1.");
   207 #endif // __INSTALL_HTTP_PROXY_FILTER__
   211 #endif // __INSTALL_HTTP_PROXY_FILTER__
   208 
   212 
   209     iTransObs = CSenHttpEventHandler::NewL(this);//, &iLog);
   213     iTransObs = CSenHttpEventHandler::NewL(this);//, &iLog);
   210     iTxnStates =
   214     iTxnStates =
   211         new (ELeave) CArrayPtrFlat<CSenTxnState>(KMinimumArrayGranularity);
   215         new (ELeave) CArrayPtrFlat<CSenTxnState>(KMinimumArrayGranularity);
   217 #endif    
   221 #endif    
   218 
   222 
   219 #ifdef _SENDEBUG
   223 #ifdef _SENDEBUG
   220     ListFilters();
   224     ListFilters();
   221 #endif // _SENDEBUG
   225 #endif // _SENDEBUG
       
   226 	TLSLOG(KSenHttpChannelLogChannelBase , KMinLogLevel,(_L("CSenHttpChannelImpl::ConstructL() Completed")));
   222     }
   227     }
   223 
   228 
   224 // Forces preselected IAP to be used!
   229 // Forces preselected IAP to be used!
   225 void CSenHttpChannelImpl::ConstructL( TUint32 aIapId )
   230 void CSenHttpChannelImpl::ConstructL( TUint32 aIapId )
   226     {
   231     {