webservices/wsstar/wsstarmessagehandlers/inc/wsstarpassporthandler.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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:    Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 #ifndef WSSTAR_PASSPORT_HANDLER_H
       
    29 #define WSSTAR_PASSPORT_HANDLER_H
       
    30 
       
    31 #include <e32std.h>
       
    32 #include <flogger.h>
       
    33 // FORWARD DECLARATIONS
       
    34 
       
    35 // CONSTANTS
       
    36 
       
    37 
       
    38 // INCLUDES
       
    39 
       
    40 #include "senmessagehandler.h"
       
    41 #include "wsstarmessagecontext.h"
       
    42 #include "SenSoapMessage.h"
       
    43 #include "sendebug.h"
       
    44 #include "wsstarhandlercontext.h"
       
    45 #include "wsstarmessagehandlerscons.h"
       
    46 
       
    47 /**
       
    48  * Class:       
       
    49  *
       
    50  * Description: An implementation of the CWSStarHandler definition. This is concrete
       
    51  * class, instance of which ECOM framework gives to ECOM clients.
       
    52  * This handler creates add passport speciifc headers.
       
    53  *  Also create multi batched request.
       
    54  */
       
    55 
       
    56 class CWSStarPassportHandler : public CSenMessageHandler
       
    57     {
       
    58 public:
       
    59    static CWSStarPassportHandler* NewL(TAny* aHandlerCtx);
       
    60 
       
    61 
       
    62     virtual TInt InvokeL(MSenMessageContext& aCtx);
       
    63     
       
    64     virtual SenHandler::THandlerDirection Direction() const;
       
    65     virtual SenHandler::THandlerPhase Phase();
       
    66     virtual TInt InitL(MSenHandlerContext& aCtx);
       
    67  
       
    68 public: // destructor
       
    69     virtual ~CWSStarPassportHandler();
       
    70 
       
    71 
       
    72 protected:
       
    73     /**
       
    74      * Function:   CWSStarPassportHandler
       
    75      *
       
    76      * Discussion: Perform the first phase of two phase construction
       
    77      */
       
    78     CWSStarPassportHandler(MSenHandlerContext& aCtx);
       
    79 
       
    80     /**
       
    81      * Function:   ConstructL
       
    82      *
       
    83      * Discussion: Perform the second phase construction of a
       
    84      *             CImplementationClassPlus object.
       
    85      */
       
    86     void ConstructL();
       
    87 
       
    88 private:
       
    89     TInt HandleInboundL(MSenMessageContext& aCtx, CSenSoapEnvelope* aMessage);
       
    90 
       
    91 private:
       
    92     RFileLogger* Log() const;    
       
    93     };
       
    94 
       
    95 #endif // WSSTAR_PASSPORT_HANDLER_H
       
    96