equal
deleted
inserted
replaced
20 |
20 |
21 #include <http/rhttpsession.h> |
21 #include <http/rhttpsession.h> |
22 #include <http/rhttptransaction.h> |
22 #include <http/rhttptransaction.h> |
23 #include <http/mhttptransactioncallback.h> |
23 #include <http/mhttptransactioncallback.h> |
24 #include <http/mhttpdatasupplier.h> |
24 #include <http/mhttpdatasupplier.h> |
25 #include "monitor.h" |
25 |
26 |
26 |
27 class MNativeSecureConnectionInformation; |
27 class MNativeSecureConnectionInformation; |
28 class CX509Certificate; |
28 class CX509Certificate; |
29 class HttpSessionClient; |
29 class HttpSessionClient; |
30 class CHttpsCertInfo; |
30 class CHttpsCertInfo; |
41 /* |
41 /* |
42 * After the headers and other details have been set up, |
42 * After the headers and other details have been set up, |
43 * call this function to make the request. |
43 * call this function to make the request. |
44 * Takes ownership of aPostData |
44 * Takes ownership of aPostData |
45 */ |
45 */ |
46 void SubmitL(RPointerArray<HBufC8>* aRawHeaders , TDesC8* aPostData, int aResponseTimeout); |
46 void SubmitL(RPointerArray<HBufC8>* aRawHeaders , TDesC8* aPostData, int aResponseTimeout, bool aPartialDataFlag); |
47 /* |
47 /* |
48 * Get the response headers back from the transaction |
48 * Get the response headers back from the transaction |
49 */ |
49 */ |
50 void GetResponseL(RPointerArray<HBufC8>* aRawHeaders); |
50 void GetResponseL(RPointerArray<HBufC8>* aRawHeaders); |
51 |
51 |
79 /* |
79 /* |
80 * Pre-Condition |
80 * Pre-Condition |
81 *The session is opened, but no transactions have been created on it |
81 *The session is opened, but no transactions have been created on it |
82 */ |
82 */ |
83 void SetHTTPAuthenticationCallbackL(MHTTPAuthenticationCallback& aCallBack); |
83 void SetHTTPAuthenticationCallbackL(MHTTPAuthenticationCallback& aCallBack); |
|
84 |
|
85 void PostDataL(HBufC8* aPostData, const bool aEndOfRequest); |
84 |
86 |
85 private: |
87 private: |
86 enum TTransactionState |
88 enum TTransactionState |
87 { |
89 { |
88 EFailed =-1, |
90 EFailed =-1, |
127 HttpSessionClient& iHttpSession; |
129 HttpSessionClient& iHttpSession; |
128 RHTTPTransaction iTransaction; |
130 RHTTPTransaction iTransaction; |
129 MHTTPDataSupplier* iRespBody; |
131 MHTTPDataSupplier* iRespBody; |
130 MRefHttpClientObserver* iObserver; |
132 MRefHttpClientObserver* iObserver; |
131 CHttpsCertInfo* iCertInfo; |
133 CHttpsCertInfo* iCertInfo; |
132 java::util::Monitor *iMonitor1; |
|
133 java::util::Monitor *iMonitor2; |
|
134 java::util::Monitor *iMonitor3; |
|
135 HBufC8* iBuf; |
134 HBufC8* iBuf; |
136 HBufC8* iDrmBuf; |
135 HBufC8* iDrmBuf; |
137 TInt iStatus; |
136 TInt iStatus; |
138 TInt iJavaReadOffset; |
137 TInt iJavaReadOffset; |
139 TBool iLastChunk; |
138 TBool iLastChunk; |
145 TBool iClosing; |
144 TBool iClosing; |
146 TBool iDiscardCookie; |
145 TBool iDiscardCookie; |
147 TInt iMinLength; |
146 TInt iMinLength; |
148 TBool iDrmDownload; |
147 TBool iDrmDownload; |
149 TInt iFlag; |
148 TInt iFlag; |
|
149 bool iPartialPostData; |
|
150 bool iEndOfRequest; |
|
151 |
150 }; |
152 }; |
151 |
153 |
152 #endif // CHTTPTRANSACTIONCLIENT_H |
154 #endif // CHTTPTRANSACTIONCLIENT_H |