applayerpluginsandutils/httpprotocolplugins/httpheadercodec/chttpdefaultheadercodec.h
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2001-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 __CHTTPDEFAULTHEADERCODEC_H__ |
|
17 #define __CHTTPDEFAULTHEADERCODEC_H__ |
|
18 |
|
19 #include <http/framework/cheadercodecplugin.h> |
|
20 |
|
21 /** A default codec that will be instantiated as a delegate codec to handle any unrecognised |
|
22 header field by copying directly between raw data or string header field values. |
|
23 @todo |
|
24 */ |
|
25 class CHttpDefaultHeaderCodec : public CHeaderCodecPlugin |
|
26 { |
|
27 public: |
|
28 |
|
29 static CHttpDefaultHeaderCodec* NewL(TAny* aStringPool); |
|
30 |
|
31 virtual ~CHttpDefaultHeaderCodec(); |
|
32 |
|
33 private: // methods from CHeaderCodec |
|
34 |
|
35 virtual TBool CanEncode(RStringF aHeaderField) const; |
|
36 |
|
37 virtual TBool CanDecode(RStringF aHeaderField) const; |
|
38 |
|
39 virtual CHeaderCodec* FindDelegateCodecL(RStringF aHeaderField) const; |
|
40 |
|
41 private: // methods |
|
42 |
|
43 CHttpDefaultHeaderCodec(RStringPool aStrPool); |
|
44 |
|
45 void ConstructL(); |
|
46 |
|
47 private: // attributes |
|
48 |
|
49 RStringPool iStringPool; |
|
50 |
|
51 }; |
|
52 |
|
53 #endif // __CHTTPDEFAULTHEADERCODEC_H__ |