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