javacommons/gcfprotocols/http/src.s60/chttptransactionclient.cpp
branchRCL_3
changeset 19 71c436fe3ce0
parent 14 04becd199f91
child 23 e5618cc85d74
equal deleted inserted replaced
18:9ac0a0a7da70 19:71c436fe3ce0
   624         {
   624         {
   625             LOG(ESOCKET,EInfo,"MHFRunL ENotifyNewRequestBodyPart");
   625             LOG(ESOCKET,EInfo,"MHFRunL ENotifyNewRequestBodyPart");
   626             iStatus = CHttpTransactionClient::ERequestNextBodayData;
   626             iStatus = CHttpTransactionClient::ERequestNextBodayData;
   627             break;
   627             break;
   628         }
   628         }
       
   629         
       
   630         case THTTPEvent::EReceiveTimeOut:
       
   631         {
       
   632         	  ELOG(ESOCKET,"MHFRunL EReceiveTimeOut");
       
   633         	  NotifyErrorL(KErrTimedOut);  // send timeout error to java
       
   634         	  break;
       
   635         	
       
   636         }        
   629         /*
   637         /*
   630         * -j2me expects the http stack to be able to post body data with no content type
   638         * -j2me expects the http stack to be able to post body data with no content type
   631         *   the native stack default validation filter does not allow this.
   639         *   the native stack default validation filter does not allow this.
   632         * -j2me expects the http stack to allow post requests to have body data
   640         * -j2me expects the http stack to allow post requests to have body data
   633         *   the native stack default validation filter does not allow this. */
   641         *   the native stack default validation filter does not allow this. */
   692     if ((aErrorCode  ==  KErrNotReady))
   700     if ((aErrorCode  ==  KErrNotReady))
   693     {
   701     {
   694         iTransaction.Cancel();
   702         iTransaction.Cancel();
   695         iHttpSession.RestartConnection();
   703         iHttpSession.RestartConnection();
   696 
   704 
   697 
       
   698     }
   705     }
   699     if (iJavaWaitingOnCallBack)
   706     if (iJavaWaitingOnCallBack)
   700     {
   707     {
   701         iJavaWaitingOnCallBack=EFalse;
   708         iJavaWaitingOnCallBack=EFalse;
   702         LOG(ESOCKET,EInfo,"CHttpTransactionClient::MHFRunL  Notifiy Java unknown Event");
   709         LOG(ESOCKET,EInfo,"CHttpTransactionClient::MHFRunL  Notifiy Java unknown Event");
   705     if (iJavaWaitingOnReadCallBack)
   712     if (iJavaWaitingOnReadCallBack)
   706     {
   713     {
   707         LOG(ESOCKET,EInfo,"Notifiy Read EOF / Cancel");
   714         LOG(ESOCKET,EInfo,"Notifiy Read EOF / Cancel");
   708         iJavaWaitingOnCallBack=EFalse;
   715         iJavaWaitingOnCallBack=EFalse;
   709         //Notify Java of error if it is waiting for a read
   716         //Notify Java of error if it is waiting for a read
   710         iObserver->DataReadyForRead(-1);
   717         iObserver->DataReadyForRead(aErrorCode);
   711     }
   718     }
   712 
   719 
   713 }
   720 }
   714 
   721 
   715 
   722