applayerpluginsandutils/httpprotocolplugins/httpheadercodec/chttpserverheadercodec.h
equal
deleted
inserted
replaced
|
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 __CHTTPSERVERHEADERCODEC_H__ |
|
17 #define __CHTTPSERVERHEADERCODEC_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <http/framework/cheadercodecplugin.h> |
|
21 |
|
22 /** |
|
23 Codec for Server header fields, as defined in RFC2616 : HTTP/1.1 |
|
24 In general this means encoding the Response fields and decoding the Request fields. |
|
25 @internalComponent |
|
26 */ |
|
27 class CHttpServerHeaderCodec : public CHeaderCodecPlugin |
|
28 { |
|
29 public: // methods |
|
30 |
|
31 static CHttpServerHeaderCodec* NewL(TAny* aStringPool); |
|
32 |
|
33 virtual ~CHttpServerHeaderCodec(); |
|
34 |
|
35 private: // methods from CHeaderCodec |
|
36 |
|
37 virtual TBool CanEncode(RStringF aHeaderField) const; |
|
38 |
|
39 virtual TBool CanDecode(RStringF aHeaderField) const; |
|
40 |
|
41 virtual CHeaderCodec* FindDelegateCodecL(RStringF aHeaderField) const; |
|
42 |
|
43 private: // methods |
|
44 |
|
45 CHttpServerHeaderCodec(RStringPool aStringPool); |
|
46 |
|
47 void ConstructL(); |
|
48 |
|
49 private: // attributes |
|
50 |
|
51 RStringPool iStringPool; |
|
52 |
|
53 }; |
|
54 |
|
55 #endif // __CHTTPSERVERHEADERCODEC_H__ |