applayerpluginsandutils/httpprotocolplugins/httpheadercodec/chttpclientheaderreader.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 __CHTTPCLIENTHEADERREADER_H__
       
    17 #define __CHTTPCLIENTHEADERREADER_H__
       
    18 
       
    19 #include "chttpheaderreader.h"
       
    20 
       
    21 /**	@class			CClientHeaderReader
       
    22 	@internalComponent
       
    23 	@todo
       
    24 */
       
    25 class CHttpClientHeaderReader : public CHttpHeaderReader
       
    26 	{
       
    27 public: // methods
       
    28 
       
    29 	static CHttpClientHeaderReader* NewL(RStringPool aStrPool);
       
    30 	
       
    31 	virtual ~CHttpClientHeaderReader();
       
    32 
       
    33 private:	// methods for CHeaderReader
       
    34 
       
    35 	virtual void DecodeHeaderL(RHeaderField& aHeader);
       
    36 
       
    37 private: // methods
       
    38 
       
    39 	CHttpClientHeaderReader(RStringPool aStrPool);
       
    40 
       
    41 	void DecodeAge(RHeaderField& aHeader) const;
       
    42 	
       
    43 	void DecodeEtag(RHeaderField& aHeader) const;
       
    44 	
       
    45 	void DecodeVary(RHeaderField& aHeader) const;
       
    46 	
       
    47 	void DecodeExpires(RHeaderField& aHeader) const;
       
    48 	
       
    49 	void DecodeLastModified(RHeaderField& aHeader) const;
       
    50 	
       
    51 	void DecodeWWWAuthenticateL(RHeaderField& aHeader) const;
       
    52 
       
    53 	void DecodeSetCookieL(RHeaderField& aHeader) const;
       
    54 	
       
    55 	void DecodeOneCookieL(RHeaderField& aHeader, const TDesC8& aCookieData, TInt aCookieNumber) const;
       
    56 	
       
    57 	void SetCookieNameAndValueL(CHeaderFieldPart& aCookie, const TDesC8& aNameValue) const;
       
    58 	
       
    59 	};
       
    60 
       
    61 #endif	// __CHTTPCLIENTHEADERREADER_H__