|
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 __CHTTPSERVERHEADERREADER_H__ |
|
17 #define __CHTTPSERVERHEADERREADER_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 #include "chttpheaderreader.h" |
|
22 |
|
23 /** |
|
24 @internalComponent |
|
25 */ |
|
26 class CHttpServerHeaderReader : public CHttpHeaderReader |
|
27 { |
|
28 public: // methods |
|
29 |
|
30 static CHttpServerHeaderReader* NewL(RStringPool aStringPool); |
|
31 virtual ~CHttpServerHeaderReader(); |
|
32 |
|
33 private: // methods from CHeaderReader |
|
34 |
|
35 virtual void DecodeHeaderL(RHeaderField& aHeader); |
|
36 |
|
37 private: // methods |
|
38 |
|
39 CHttpServerHeaderReader(RStringPool aStringPool); |
|
40 |
|
41 void DecodeAuthorizationL(RHeaderField& aHeader) const; |
|
42 void DecodeExpectL(RHeaderField& aHeader) const; |
|
43 void DecodeFromL(RHeaderField& aHeader) const; |
|
44 void DecodeHostL(RHeaderField& aHeader) const; |
|
45 void DecodeRangeL(RHeaderField& aHeader) const; |
|
46 void DecodeRefererL(RHeaderField& aHeader) const; |
|
47 void DecodeUserAgentL(RHeaderField& aHeader) const; |
|
48 void DecodeTEL(RHeaderField& aHeader) const; |
|
49 void DecodeGenericAcceptL(RHeaderField& aHeader, TInt aErrorCode) const; |
|
50 }; |
|
51 |
|
52 #endif // __CHTTPSERVERHEADERREADER_H__ |