|
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CHTTPGENERALHEADERREADER_H__ |
|
17 #define __CHTTPGENERALHEADERREADER_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <stringpool.h> |
|
21 #include <http/framework/cheadercodec.h> |
|
22 |
|
23 #include "chttpheaderreader.h" |
|
24 |
|
25 /** |
|
26 The CHttpGeneralHeaderReader class is used by CHttpGeneralHeaderCodec to |
|
27 decode header fields. |
|
28 @internalComponent |
|
29 @see CHttpGeneralHeaderCodec |
|
30 @see CHttpReader |
|
31 @see CHeaderReader |
|
32 */ |
|
33 class CHttpGeneralHeaderReader : public CHttpHeaderReader |
|
34 { |
|
35 public: // methods |
|
36 |
|
37 static CHttpGeneralHeaderReader* NewL(RStringPool aStringPool); |
|
38 |
|
39 virtual ~CHttpGeneralHeaderReader(); |
|
40 |
|
41 private: // methods from CHeaderReader |
|
42 |
|
43 virtual void DecodeHeaderL(RHeaderField& aHeader); |
|
44 |
|
45 private: // methods |
|
46 |
|
47 CHttpGeneralHeaderReader(RStringPool aStringPool); |
|
48 |
|
49 void DecodeCacheControlL(RHeaderField& aHeader) const; |
|
50 |
|
51 void DecodeConnectionL(RHeaderField& aHeader) const; |
|
52 |
|
53 void DecodeTransferEncodingL(RHeaderField& aHeader) const; |
|
54 |
|
55 void DecodeContentEncoding(RHeaderField& aHeader) const; |
|
56 |
|
57 void DecodeContentLanguage(RHeaderField& aHeader) const; |
|
58 |
|
59 void DecodeContentLengthL(RHeaderField& aHeader) const; |
|
60 |
|
61 void DecodeContentLocation(RHeaderField& aHeader) const; |
|
62 |
|
63 void DecodeContentMd5(RHeaderField& aHeader) const; |
|
64 |
|
65 void DecodeContentTypeL(RHeaderField& aHeader) const; |
|
66 |
|
67 void DecodeContentDispositionL(RHeaderField& aHeader) const; |
|
68 }; |
|
69 |
|
70 #endif // __CHTTPGENERALHEADERREADER_H__ |