Home directory for Malawi's wwwroot
Duncan Ewan
2021-02-19 3e758c29e0fde36fc088efcfc88f9a3014432b64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
 
    <services>
        <service-include file-path="remoting-config.xml" />
        <service-include file-path="proxy-config.xml" />
        <service-include file-path="messaging-config.xml" />
    </services>
 
    <security>
        <login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/>
        <!-- Uncomment the correct app server
        <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
        <login-command class="flex.messaging.security.WeblogicLoginCommand" server="Weblogic"/>
        <login-command class="flex.messaging.security.WebSphereLoginCommand" server="WebSphere"/>
        -->
        <!--
        <security-constraint id="basic-read-access">
            <auth-method>Basic</auth-method>
            <roles>
                <role>guests</role>
                <role>accountants</role>
                <role>employees</role>
                <role>managers</role>
            </roles>
        </security-constraint>
        -->
    </security>
 
    <channels>
 
        <!--  CF Based Endpoints -->
        <channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/" class="coldfusion.flash.messaging.CFAMFEndPoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
                <serialization>
                    <enable-small-messages>false</enable-small-messages>
                </serialization>
                <coldfusion>
                    <!-- define the resolution rules and access level of the cfc being invoked -->
                    <access>
                        <!-- Use the ColdFusion mappings to find CFCs-->
                        <use-mappings>true</use-mappings>
                        <!-- allow "public and remote" or just "remote" methods to be invoked -->
                        <method-access-level>remote</method-access-level>
                    </access>
                    
                    <!-- Whether the Value Object CFC has getters and setters. Set the value of use-accessors to true if there are getters and setters in the Value Object CFC. -->
                    <use-accessors>true</use-accessors>
                    <!--Set the value of use-structs to true if you don't require any translation of ActionScript to CFCs. The assembler can still return structures to Flex, even if the value is false. The default value is false.-->
                    <use-structs>false</use-structs>
 
                    <!--Set the value of serialize-arrays-to-arraycollection to true if you require ColdFusion arrays to be converted to ArrayCollection on the ActionScript side. The default value is false. A false value
                    will convert ColdFusion Array to ActionScript Array-->
                    <serialize-array-to-arraycollection>false
                    </serialize-array-to-arraycollection>
                    
                    <!--Set the value of proxy-load-method to change the user defined load function that gets invoked on the service cfc. Two parameters are passed to this function. The first one in the key of the proxy and the second one is the fully qualified name of the proxy cfc. This function returns the actual entity instance.-->
                    <proxy-load-method>loadProxy</proxy-load-method>
 
                    <property-case>
                        <!-- cfc property names -->
                        <force-cfc-lowercase>false</force-cfc-lowercase>
                        <!-- Query column names -->
                        <force-query-lowercase>false</force-query-lowercase>
                        <!-- struct keys -->
                        <force-struct-lowercase>false</force-struct-lowercase>
                    </property-case>
                </coldfusion>
            </properties>
        </channel-definition>
 
        <channel-definition id="cf-polling-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpolling" class="coldfusion.flash.messaging.CFAMFEndPoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>8</polling-interval-seconds>
                <serialization>
                    <enable-small-messages>false</enable-small-messages>
                </serialization>
                <coldfusion>
                    <!-- define the resolution rules and access level of the cfc being invoked -->
                    <access>
                        <!-- Use the ColdFusion mappings to find CFCs-->
                        <use-mappings>true</use-mappings>
                        <!-- allow "public and remote" or just "remote" methods to be invoked -->
                        <method-access-level>remote</method-access-level>
                    </access>
                    
                    <!-- Whether the Value Object CFC has getters and setters. Set the value of use-accessors to true if there are getters and setters in the Value Object CFC. -->
                    <use-accessors>true</use-accessors>
                    <!--Set the value of use-structs to true if you don't require any translation of ActionScript to CFCs. The assembler can still return structures to Flex, even if the value is false. The default value is false.-->
                    <use-structs>false</use-structs>
 
                    <!--Set the value of serialize-arrays-to-arraycollection to true if you require ColdFusion arrays to be converted to ArrayCollection on the ActionScript side. The default value is false. A false value
                    will convert ColdFusion Array to ActionScript Array-->
                    <serialize-array-to-arraycollection>false
                    </serialize-array-to-arraycollection>
 
                    <!--Set the value of proxy-load-method to change the user defined load function that gets invoked on the service cfc. Two parameters are passed to this function. The first one in the key of the proxy and the second one is the fully qualified name of the proxy cfc. This function returns the actual entity instance.-->
                    <proxy-load-method>loadProxy</proxy-load-method>
 
                    <property-case>
                        <!-- cfc property names -->
                        <force-cfc-lowercase>false</force-cfc-lowercase>
                        <!-- Query column names -->
                        <force-query-lowercase>false</force-query-lowercase>
                        <!-- struct keys -->
                        <force-struct-lowercase>false</force-struct-lowercase>
                    </property-case>
                </coldfusion>
            </properties>
        </channel-definition>
 
        <channel-definition id="my-cfamf-secure" class="mx.messaging.channels.SecureAMFChannel">
            <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsecure" class="coldfusion.flash.messaging.SecureCFAMFEndPoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
                <add-no-cache-headers>false</add-no-cache-headers>
                <serialization>
                    <enable-small-messages>false</enable-small-messages>
                </serialization>
                <coldfusion>
                    <!-- define the resolution rules and access level of the cfc being invoked -->
                    <access>
                        <!-- Use the ColdFusion mappings to find CFCs-->
                        <use-mappings>true</use-mappings>
                        <!-- allow "public and remote" or just "remote" methods to be invoked -->
                        <method-access-level>remote</method-access-level>
                    </access>
 
                    <!-- Whether the Value Object CFC has getters and setters. Set the value of use-accessors to true if there are getters and setters in the Value Object CFC. -->
                    <use-accessors>true</use-accessors>
                    <!--Set the value of use-structs to true if you don't require any translation of ActionScript to CFCs. The assembler can still return structures to Flex, even if the value is false. The default value is false.-->
                    <use-structs>false</use-structs>
 
                    <!--Set the value of serialize-arrays-to-arraycollection to true if you require ColdFusion arrays to be converted to ArrayCollection on the ActionScript side. The default value is false. A false value
                    will convert ColdFusion Array to ActionScript Array-->
                    <serialize-array-to-arraycollection>false
                    </serialize-array-to-arraycollection>
 
                    <!--Set the value of proxy-load-method to change the user defined load function that gets invoked on the service cfc. Two parameters are passed to this function. The first one in the key of the proxy and the second one is the fully qualified name of the proxy cfc. This function returns the actual entity instance.-->
                    <proxy-load-method>loadProxy</proxy-load-method>
 
                    <property-case>
                        <!-- cfc property names -->
                        <force-cfc-lowercase>false</force-cfc-lowercase>
                        <!-- Query column names -->
                        <force-query-lowercase>false</force-query-lowercase>
                        <!-- struct keys -->
                        <force-struct-lowercase>false</force-struct-lowercase>
                    </property-case>
                </coldfusion>
            </properties>
        </channel-definition>
       
        <!--  Java Based Endpoints -->
        <channel-definition id="java-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
 
        <channel-definition id="java-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
            <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
        </channel-definition>
 
        <channel-definition id="java-polling-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>8</polling-interval-seconds>
            </properties>
        </channel-definition>
 
        <!--
        <channel-definition id="java-http" class="mx.messaging.channels.HTTPChannel">
            <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
        </channel-definition>
 
        <channel-definition id="java-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
            <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
        </channel-definition>
        -->
    </channels>
 
    <logging>
        <target class="flex.messaging.log.ConsoleTarget" level="Error">
            <properties>
                <prefix>[BlazeDS] </prefix>
                <includeDate>false</includeDate>
                <includeTime>false</includeTime>
                <includeLevel>false</includeLevel>
                <includeCategory>false</includeCategory>
            </properties>
            <filters>
                <pattern>Endpoint.*</pattern>
                <pattern>Service.*</pattern>
                <pattern>Configuration</pattern>
                <pattern>Message.*</pattern>
            </filters>
        </target>
    </logging>
 
    <system>
        <manageable>false</manageable>
        <!-- 
        <redeploy>
            <enabled>true</enabled>
            <watch-interval>20</watch-interval>
            <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>
            <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
        </redeploy>
         -->
    </system>
 
</services-config>