applayerpluginsandutils/httpprotocolplugins/httpclient/chttpclienttransaction.cpp
branchRCL_3
changeset 20 a0da872af3fa
parent 19 c0c2f28ace9c
equal deleted inserted replaced
19:c0c2f28ace9c 20:a0da872af3fa
   108 		
   108 		
   109 		needDisconnectNotification = ( hdrVal.StrF().Index(iStringTable) == HTTP::EEnableDisconnectNotification );
   109 		needDisconnectNotification = ( hdrVal.StrF().Index(iStringTable) == HTTP::EEnableDisconnectNotification );
   110 		}
   110 		}
   111 	return needDisconnectNotification;	
   111 	return needDisconnectNotification;	
   112 	}
   112 	}
       
   113 
       
   114 
       
   115 TBool CHttpClientTransaction::PropogateDefaultError() const
       
   116     {
       
   117     TBool noRetry=EFalse;
       
   118     RHTTPTransaction myTransaction = Transaction (); 
       
   119     RHTTPSession mySession = myTransaction.Session ();
       
   120     RStringPool myStringPool ( mySession.StringPool () );
       
   121     RStringF retrySet = myStringPool.StringF( HTTP::ENotifyOnDisconnect, iStringTable );
       
   122 
       
   123     RHTTPPropertySet transactionProperties = myTransaction.PropertySet();
       
   124     RHTTPPropertySet sessionProperties = mySession.ConnectionInfo();
       
   125         
       
   126     THTTPHdrVal hdrVal;
       
   127         
       
   128     // Check the transaction properties for the disconnect notification
       
   129     // If it is set then it should be used.
       
   130     if ( transactionProperties.Property ( retrySet, hdrVal ) || sessionProperties.Property ( retrySet, hdrVal ) )   
       
   131         {
       
   132         __ASSERT_DEBUG( hdrVal.Type() == THTTPHdrVal::KStrFVal, User::Invariant() );
       
   133             
       
   134         noRetry = ( hdrVal.StrF().Index(iStringTable) == HTTP::EHttpPropagateDefaultError );
       
   135         }
       
   136     return noRetry;  
       
   137     }