javacommons/gcfprotocols/http/inc.s60/httpsessionclient.h
changeset 21 2a9601315dfc
child 87 1627c337e51e
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HTTPSESSIONCLIENT_H
       
    19 #define HTTPSESSIONCLIENT_H
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include <http/rhttpsession.h>
       
    24 #include <es_sock.h>
       
    25 #include "functionserver.h"
       
    26 
       
    27 using namespace java::util;
       
    28 
       
    29 class CHttpTransactionClient;
       
    30 class CJavaValidationFilter;
       
    31 //class MHttpClientCustomiser;
       
    32 
       
    33 class HttpSessionClient
       
    34 {
       
    35 public:
       
    36     //static HttpSessionClient* NewL();
       
    37     static HttpSessionClient* NewL(TInt ,TInt, TInt *);
       
    38     ~HttpSessionClient();
       
    39     // RStringPool StringPool() const;
       
    40     inline RHTTPSession& Session()
       
    41     {
       
    42         return iHttpSession;
       
    43     }
       
    44     /**
       
    45          *  To restart a connection
       
    46          */
       
    47     void RestartConnection();
       
    48     /* A licenceee may have written their own Http plug in proxy
       
    49     * If this is the case then this should be used by the
       
    50     * Java HTTP implementation (PREQ 666)
       
    51     */
       
    52     //inline const TBool UsePlugInProxy() const { return iUsePlugInProxy; }
       
    53     //void CustomiseHeadersL(RHTTPHeaders& aHeaders);
       
    54 
       
    55 private:
       
    56     HttpSessionClient();
       
    57 private:
       
    58     void ConstructL(TInt,TInt, TInt *);
       
    59     void ReplaceValidationFilterL();
       
    60     void LoadProxyLibraryL(TUint32);
       
    61     //void LoadCustomiserLibrary();
       
    62 
       
    63     /**
       
    64      * To remove default Redirection filter.
       
    65      */
       
    66     void RemoveRedirectionFilter();
       
    67     // from CActive
       
    68     /*
       
    69     void DoCancel() { }
       
    70     void RunL() { }
       
    71     TInt RunError( TInt aError ) { return 0;} */
       
    72 
       
    73 private:
       
    74     RHTTPSession iHttpSession;
       
    75     CJavaValidationFilter* iValidationFilter;
       
    76     //TBool iUsePlugInProxy;
       
    77     RLibrary iCustomiserLib;
       
    78     RSocketServ iSocketServ;
       
    79     RConnection iConnection;
       
    80     TInt     iApnId ;
       
    81     //MHttpClientCustomiser* iCustomiser;
       
    82 };
       
    83 
       
    84 #endif // HTTPSESSIONCLIENT_H