-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathapplication.xml
219 lines (219 loc) · 9.64 KB
/
application.xml
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
<app alias="default">
<cors-config>
<allow-origins>*</allow-origins>
<allow-methods>GET, POST, HEAD, PUT, DELETE</allow-methods>
<allow-headers>content-type, origin</allow-headers>
<expose-headers>content-type, origin</expose-headers>
<allow-credentials>true</allow-credentials>
<max-age>1023</max-age>
</cors-config>
<cache-control>
<control ext="png,css,js,jpeg,jpg,gif" header="Cache-Control"
value="max-age=290304000, public" />
<control ext="txt,xml,json" header="Cache-Control"
value="max-age=172800, public, must-revalidate" />
<control ext="html,html" header="Cache-Control"
value="max-age=7200, must-revalidate" />
<control file="video.mov" header="Expires"
value="Thu, 15 Apr 2020 20:00:00 GMT" />
<control header="Last-Modified" remove="true" />
</cache-control>
<controllers>
<controller class="DefaultController" path="*.action" />
<controller class="DefaultController" path="*.do" />
<controller class="DefaultOAUTHController" path="*.oauth" />
<controller from="/some/path" to="/somenew/path" />
<controller fromext="yourext" toext="html" />
</controllers>
<web-socket-handlers>
<web-socket-handler class="DefaultWebSocketHandler"
path="/websocket" />
</web-socket-handlers>
<templates>
<template class="DefTemp" file="test.tpe" path="test.tpe"/>
</templates>
<dynamic-cpp-pages>
<dynamic-cpp-page file="test.dcp" path="test.dcp"/>
</dynamic-cpp-pages>
<dviews>
<dview class="Dview" path="test.view" />
</dviews>
<ajax-interfaces>
<ajax-interface path="/expose" class="Expose" />
</ajax-interfaces>
<filters>
<filter class="DefaultIOFilter" type="in" />
<filter class="DefaultIOFilter" type="out" />
<filter class="DefaultIOFilter" type="handle" path="*.filter" />
</filters>
<security>
<providers>
<provider name="defProvider" logoutUrl="/logout">
<!-- <username from="reqparam" name="username"/> <password from="reqparam"
name="password"/> -->
<login-handler provider="file:users" path="login.html" />
<welcome file="index.html" />
<!--login-handler provider="class:DefaultLoginHandler"/ -->
<!--login-handler provider="db:DefaultLoginHandler"/ -->
<secure path="/public/*" role="ROLE_ANONYMOUS" />
<secure path="/rest/*" role="ROLE_USER" />
</provider>
</providers>
</security>
<restcontrollers>
<restcontroller class="DefaultRestController" path="/rest/path/rest1/">
<restfunction name="addNumbers" path="add/{1}/{2}" meth="GET" rtype="int"
statusCode="200">
<param type="int" name="1" from="path" />
<param type="int" name="2" from="path" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/rest/reqparam/rest1/">
<restfunction name="addNumbers" path="add" meth="GET" rtype="int"
statusCode="200">
<param type="int" name="1" from="reqparam" />
<param type="int" name="2" from="reqparam" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/rest/postparam/rest1/">
<restfunction name="addNumbers" path="add" meth="POST" rtype="int"
statusCode="200">
<param type="int" name="1" from="postparam" />
<param type="int" name="2" from="postparam" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/rest/header/rest1/">
<restfunction name="addNumbers" path="add" meth="GET" rtype="int"
statusCode="200">
<param type="int" name="a" from="header" />
<param type="int" name="b" from="header" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/rest/path1/rest2">
<restfunction name="addNumbers" path="+/{1}/{2}" meth="GET" rtype="int"
statusCode="200">
<param type="int" name="1" from="path" />
<param type="int" name="2" from="path" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/rest3">
<restfunction name="addNumbers" path="ad/{1}/{2}" meth="GET" rtype="int"
statusCode="200">
<param type="int" name="1" from="path" />
<param type="int" name="2" from="path" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController">
<restfunction name="power" meth="GET" rtype="double"
path="/rest/controller/base{1}/power/exp{2}" statusCode="200">
<param type="int" name="1" from="path" />
<param type="int" name="2" from="path" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController">
<restfunction name="addNumbers" meth="GET" rtype="int"
path="/addNumbers/{1}/{2}" statusCode="200">
<param type="int" name="1" from="path" />
<param type="int" name="2" from="path" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restvec">
<restfunction name="testVector" path="tstvec" meth="POST" rtype="std::vector<int>"
statusCode="200" icontentType="application/json" ocontentType="application/json">
<param type="std::vector<int>" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restvec">
<restfunction name="testVector" path="tstvecxml" meth="POST" rtype="std::vector<int>"
statusCode="200" icontentType="application/json" ocontentType="application/xml">
<param type="std::vector<int>" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restvecobj">
<restfunction name="testVectorObject" path="tstvecobj" rtype="std::vector<TestMany>"
meth="POST" icontentType="application/json" ocontentType="application/json" statusCode="200">
<param type="std::vector<TestMany>" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restvecobj">
<restfunction name="testVectorObject" path="tstvecobjxml" rtype="std::vector<TestMany>"
meth="POST" icontentType="application/json" ocontentType="application/xml" statusCode="200">
<param type="std::vector<TestMany>" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restobj">
<restfunction name="testObject" path="tstobj" meth="POST" rtype="TestMany"
icontentType="application/json" ocontentType="application/json"
statusCode="200">
<param type="TestMany" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restobj">
<restfunction name="testObject" path="tstobjxml" meth="POST" rtype="TestMany"
icontentType="application/json" ocontentType="application/xml"
statusCode="200">
<param type="TestMany" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restvecobj">
<restfunction name="testVectorObject" path="tstvecobj.xml" rtype="std::vector<TestMany>"
meth="POST" icontentType="application/xml" ocontentType="application/xml" statusCode="200">
<param type="std::vector<TestMany>" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restobj">
<restfunction name="testObject" path="tstobj.xml" meth="POST" rtype="TestMany"
icontentType="application/xml" ocontentType="application/xml" statusCode="200">
<param type="TestMany" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restupload">
<restfunction name="testUploadFile" path="uploadFile" rtype="std::string"
meth="POST" icontentType="multipart/form-data" statusCode="200">
<param type="filestream" name="file" from="multipart-content" />
<param type="string" name="field" from="multipart-content" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restupload">
<restfunction name="testUploadFileMulti1" path="uploadFileMulti1" rtype="std::string"
meth="POST" icontentType="multipart/form-data" statusCode="200">
<param type="filestream" name="file1" from="multipart-content" />
<param type="filestream" name="file2" from="multipart-content" />
<param type="filestream" name="file3" from="multipart-content" />
<param type="string" name="field" from="multipart-content" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/restupload">
<restfunction name="testUploadFileMulti2" path="uploadFileMulti2" rtype="std::string"
meth="POST" icontentType="multipart/form-data" statusCode="200">
<param type="std::vector<filestream>" name="files" from="multipart-content" />
<param type="string" name="field" from="multipart-content" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/sertest">
<restfunction name="sertest" path="s" meth="POST"
icontentType="application/json" ocontentType="application/json" rtype="TestSTLs"
statusCode="200">
<param type="TestSTLs" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/sertest">
<restfunction name="sertest" path="sxml" meth="POST"
icontentType="application/json" ocontentType="application/xml" rtype="TestSTLs"
statusCode="200">
<param type="TestSTLs" from="body" />
</restfunction>
</restcontroller>
<restcontroller class="DefaultRestController" path="/sertest">
<restfunction name="sertest" path="sxml1" meth="POST"
icontentType="application/xml" ocontentType="application/xml" rtype="TestSTLs"
statusCode="200">
<param type="TestSTLs" from="body" />
</restfunction>
</restcontroller>
</restcontrollers>
<job-procs>
<job-proc cron="* * * * *" name="testCronJob" class="TestCronBasedJob"
method="runJob" />
</job-procs>
</app>