|
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_ADDRESSING_HANDLER_H |
|
29 #define WSSTAR_ADDRESSING_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 "wsstarmessagehandlerscons.h" |
|
42 #include "senguidgen.h" |
|
43 #include "wsstarmessagecontext.h" |
|
44 #include "SenSoapMessage.h" |
|
45 #include "wsstaraddressingheaderinbound.h" |
|
46 #include "SenSoapFault.h" |
|
47 #include "sendebug.h" |
|
48 #include "senserviceinvocationframework.h" |
|
49 #include "wsstarhandlercontext.h" |
|
50 #include "wsstaraddressingepr.h" |
|
51 |
|
52 /** |
|
53 * Class: |
|
54 * |
|
55 * Description: An implementation of the CWSStarHandler definition. This is concrete |
|
56 * class, instance of which ECOM framework gives to ECOM clients. |
|
57 * This handler is responsible for ws-addressing layes in ws* framework. |
|
58 * Works in both direction: |
|
59 * - in inbound case fill porperly message context, or recognize addressing faults |
|
60 * - in outbound case create specific headers in envelope |
|
61 */ |
|
62 class CWSStarAddressingHandler : public CSenMessageHandler |
|
63 { |
|
64 public: |
|
65 static CWSStarAddressingHandler* NewL(TAny* aHandlerCtx); |
|
66 |
|
67 |
|
68 virtual TInt InvokeL(MSenMessageContext& aCtx); |
|
69 |
|
70 virtual SenHandler::THandlerDirection Direction() const; |
|
71 virtual SenHandler::THandlerPhase Phase(); |
|
72 virtual TInt InitL(MSenHandlerContext& aCtx); |
|
73 virtual ~CWSStarAddressingHandler(); |
|
74 |
|
75 protected: |
|
76 /** |
|
77 * Function: CWSStarAddressingHandler |
|
78 * |
|
79 * Discussion: Perform the first phase of two phase construction |
|
80 */ |
|
81 CWSStarAddressingHandler(MSenHandlerContext& aCtx); |
|
82 |
|
83 /** |
|
84 * Function: ConstructL |
|
85 * |
|
86 * Discussion: Perform the second phase construction of a |
|
87 * CImplementationClassPlus object. |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 CSenElement* CreateElementAddressingL(CSenElement& aParentElement, const TDesC8& aLocalName, |
|
92 const TDesC8& aContent, TBool aUseAddress); |
|
93 void SetMessageIDL(MSenMessageContext& aCtx); |
|
94 void ShareMyLiterals(MSenMessageContext& aCtx); |
|
95 void AddAppInfoHeaderL( MSenMessageContext& aCtx, |
|
96 CSenElement& aHeader); |
|
97 private: |
|
98 //methods |
|
99 virtual TInt HandleInboundL(MSenMessageContext& aCtx, CSenSoapEnvelope* aMessage); |
|
100 virtual TInt HandleOutboundL(MSenMessageContext& aCtx, CSenSoapEnvelope* aMessage); |
|
101 void InitVersionL(const TDesC8* aVersion); |
|
102 RFileLogger* Log() const; |
|
103 HBufC8* iVersion;//owned |
|
104 }; |
|
105 |
|
106 #endif // WSSTAR_ADDRESSING_HANDLER_H |
|
107 |