multi-solr 01.01.05

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. data/.gitignore +6 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +4 -0
  4. data/Rakefile +1 -0
  5. data/lib/multi_solr/base_searcher.rb +393 -0
  6. data/lib/multi_solr/filter_value_composite.rb +33 -0
  7. data/lib/multi_solr/rails_form_render_helper.rb +84 -0
  8. data/lib/multi_solr/search_request.rb +209 -0
  9. data/lib/multi_solr/search_result.rb +127 -0
  10. data/lib/multi_solr/single_core_handler.rb +341 -0
  11. data/lib/multi_solr/solr_filter_collection.rb +97 -0
  12. data/lib/multi_solr/solr_filter_date.rb +46 -0
  13. data/lib/multi_solr/solr_filter_date_range.rb +62 -0
  14. data/lib/multi_solr/solr_filter_free_query.rb +11 -0
  15. data/lib/multi_solr/solr_filter_simple.rb +96 -0
  16. data/lib/multi_solr/timeline_core_handler.rb +131 -0
  17. data/lib/multi_solr/version.rb +3 -0
  18. data/lib/multi_solr.rb +43 -0
  19. data/multi-solr.gemspec +28 -0
  20. data/spec/fixtures/solr-testdata.yml +13 -0
  21. data/spec/multi_solr/base_searcher_spec.rb +212 -0
  22. data/spec/multi_solr/search_request_spec.rb +45 -0
  23. data/spec/multi_solr/search_result_spec.rb +113 -0
  24. data/spec/multi_solr/single_core_handler_spec.rb +169 -0
  25. data/spec/multi_solr/timeline_core_handler_spec.rb +107 -0
  26. data/spec/solr_test_helper.rb +15 -0
  27. data/spec/solr_testdata_provider.rb +89 -0
  28. data/spec/spec_helper.rb +27 -0
  29. data/test-solr/.gitignore +4 -0
  30. data/test-solr/articles.xml +6 -0
  31. data/test-solr/etc/jetty.xml +227 -0
  32. data/test-solr/etc/webdefault.xml +410 -0
  33. data/test-solr/lib/jetty-6.1.26-patched-JETTY-1340.jar +0 -0
  34. data/test-solr/lib/jetty-LICENSE.txt +202 -0
  35. data/test-solr/lib/jetty-NOTICE.txt +36 -0
  36. data/test-solr/lib/jetty-util-6.1.26-patched-JETTY-1340.jar +0 -0
  37. data/test-solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
  38. data/test-solr/lib/jsp-2.1/jsp-2.1-glassfish-2.1.v20091210.jar +0 -0
  39. data/test-solr/lib/jsp-2.1/jsp-2.1-jetty-6.1.26.jar +0 -0
  40. data/test-solr/lib/jsp-2.1/jsp-api-2.1-glassfish-2.1.v20091210.jar +0 -0
  41. data/test-solr/lib/lukeall-3.4.0_1.jar +0 -0
  42. data/test-solr/lib/servlet-api-2.5-20081211.jar +0 -0
  43. data/test-solr/solr/lib/apache-solr-dataimporthandler-3.4.0.jar +0 -0
  44. data/test-solr/solr/solr.xml +20 -0
  45. data/test-solr/solr/testcore/conf/dataimport-test.xml +12 -0
  46. data/test-solr/solr/testcore/conf/schema.xml +42 -0
  47. data/test-solr/solr/testcore/conf/solr_schema.css +58 -0
  48. data/test-solr/solr/testcore/conf/solr_schema.xsl +72 -0
  49. data/test-solr/solr/testcore/conf/solrconfig.xml +72 -0
  50. data/test-solr/start-test-solr.sh +10 -0
  51. data/test-solr/start.jar +0 -0
  52. data/test-solr/webapps/solr.war +0 -0
  53. metadata +212 -0
@@ -0,0 +1,410 @@
1
+ <?xml version="1.0" encoding="ISO-8859-1"?>
2
+
3
+ <!-- ===================================================================== -->
4
+ <!-- This file contains the default descriptor for web applications. -->
5
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
6
+ <!-- The intent of this descriptor is to include jetty specific or common -->
7
+ <!-- configuration for all webapps. If a context has a webdefault.xml -->
8
+ <!-- descriptor, it is applied before the contexts own web.xml file -->
9
+ <!-- -->
10
+ <!-- A context may be assigned a default descriptor by: -->
11
+ <!-- + Calling WebApplicationContext.setDefaultsDescriptor -->
12
+ <!-- + Passed an arg to addWebApplications -->
13
+ <!-- -->
14
+ <!-- This file is used both as the resource within the jetty.jar (which is -->
15
+ <!-- used as the default if no explicit defaults descriptor is set) and it -->
16
+ <!-- is copied to the etc directory of the Jetty distro and explicitly -->
17
+ <!-- by the jetty.xml file. -->
18
+ <!-- -->
19
+ <!-- ===================================================================== -->
20
+ <web-app
21
+ xmlns="http://java.sun.com/xml/ns/javaee"
22
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
24
+ metadata-complete="true"
25
+ version="2.5">
26
+
27
+ <description>
28
+ Default web.xml file.
29
+ This file is applied to a Web application before it's own WEB_INF/web.xml file
30
+ </description>
31
+
32
+
33
+ <!-- ==================================================================== -->
34
+ <!-- Context params to control Session Cookies -->
35
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
36
+ <!-- UNCOMMENT TO ACTIVATE
37
+ <context-param>
38
+ <param-name>org.mortbay.jetty.servlet.SessionDomain</param-name>
39
+ <param-value>127.0.0.1</param-value>
40
+ </context-param>
41
+
42
+ <context-param>
43
+ <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>
44
+ <param-value>/</param-value>
45
+ </context-param>
46
+
47
+ <context-param>
48
+ <param-name>org.mortbay.jetty.servlet.MaxAge</param-name>
49
+ <param-value>-1</param-value>
50
+ </context-param>
51
+ -->
52
+
53
+ <context-param>
54
+ <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>
55
+ <param-value>start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar</param-value>
56
+ </context-param>
57
+
58
+
59
+
60
+ <!-- ==================================================================== -->
61
+ <!-- The default servlet. -->
62
+ <!-- This servlet, normally mapped to /, provides the handling for static -->
63
+ <!-- content, OPTIONS and TRACE methods for the context. -->
64
+ <!-- The following initParameters are supported: -->
65
+ <!-- -->
66
+ <!-- acceptRanges If true, range requests and responses are -->
67
+ <!-- supported -->
68
+ <!-- -->
69
+ <!-- dirAllowed If true, directory listings are returned if no -->
70
+ <!-- welcome file is found. Else 403 Forbidden. -->
71
+ <!-- -->
72
+ <!-- welcomeServlets If true, attempt to dispatch to welcome files -->
73
+ <!-- that are servlets, if no matching static -->
74
+ <!-- resources can be found. -->
75
+ <!-- -->
76
+ <!-- redirectWelcome If true, redirect welcome file requests -->
77
+ <!-- else use request dispatcher forwards -->
78
+ <!-- -->
79
+ <!-- gzip If set to true, then static content will be served-->
80
+ <!-- as gzip content encoded if a matching resource is -->
81
+ <!-- found ending with ".gz" -->
82
+ <!-- -->
83
+ <!-- resoureBase Can be set to replace the context resource base -->
84
+ <!-- -->
85
+ <!-- relativeResourceBase -->
86
+ <!-- Set with a pathname relative to the base of the -->
87
+ <!-- servlet context root. Useful for only serving -->
88
+ <!-- static content from only specific subdirectories. -->
89
+ <!-- -->
90
+ <!-- useFileMappedBuffer -->
91
+ <!-- If set to true (the default), a memory mapped -->
92
+ <!-- file buffer will be used to serve static content -->
93
+ <!-- when using an NIO connector. Setting this value -->
94
+ <!-- to false means that a direct buffer will be used -->
95
+ <!-- instead. If you are having trouble with Windows -->
96
+ <!-- file locking, set this to false. -->
97
+ <!-- -->
98
+ <!-- cacheControl If set, all static content will have this value -->
99
+ <!-- set as the cache-control header. -->
100
+ <!-- -->
101
+ <!-- maxCacheSize Maximum size of the static resource cache -->
102
+ <!-- -->
103
+ <!-- maxCachedFileSize Maximum size of any single file in the cache -->
104
+ <!-- -->
105
+ <!-- maxCachedFiles Maximum number of files in the cache -->
106
+ <!-- -->
107
+ <!-- cacheType "nio", "bio" or "both" to determine the type(s) -->
108
+ <!-- of resource cache. A bio cached buffer may be used-->
109
+ <!-- by nio but is not as efficient as a nio buffer. -->
110
+ <!-- An nio cached buffer may not be used by bio. -->
111
+ <!-- -->
112
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
113
+ <servlet>
114
+ <servlet-name>default</servlet-name>
115
+ <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
116
+ <init-param>
117
+ <param-name>acceptRanges</param-name>
118
+ <param-value>true</param-value>
119
+ </init-param>
120
+ <init-param>
121
+ <param-name>dirAllowed</param-name>
122
+ <param-value>true</param-value>
123
+ </init-param>
124
+ <init-param>
125
+ <param-name>welcomeServlets</param-name>
126
+ <param-value>false</param-value>
127
+ </init-param>
128
+ <init-param>
129
+ <param-name>redirectWelcome</param-name>
130
+ <param-value>false</param-value>
131
+ </init-param>
132
+ <init-param>
133
+ <param-name>maxCacheSize</param-name>
134
+ <param-value>256000000</param-value>
135
+ </init-param>
136
+ <init-param>
137
+ <param-name>maxCachedFileSize</param-name>
138
+ <param-value>10000000</param-value>
139
+ </init-param>
140
+ <init-param>
141
+ <param-name>maxCachedFiles</param-name>
142
+ <param-value>1000</param-value>
143
+ </init-param>
144
+ <init-param>
145
+ <param-name>cacheType</param-name>
146
+ <param-value>both</param-value>
147
+ </init-param>
148
+ <init-param>
149
+ <param-name>gzip</param-name>
150
+ <param-value>true</param-value>
151
+ </init-param>
152
+ <init-param>
153
+ <param-name>useFileMappedBuffer</param-name>
154
+ <param-value>true</param-value>
155
+ </init-param>
156
+ <!--
157
+ <init-param>
158
+ <param-name>cacheControl</param-name>
159
+ <param-value>max-age=3600,public</param-value>
160
+ </init-param>
161
+ -->
162
+ <load-on-startup>0</load-on-startup>
163
+ </servlet>
164
+
165
+ <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
166
+
167
+
168
+ <!-- ==================================================================== -->
169
+ <!-- JSP Servlet -->
170
+ <!-- This is the jasper JSP servlet from the jakarta project -->
171
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
172
+ <!-- The JSP page compiler and execution servlet, which is the mechanism -->
173
+ <!-- used by Glassfish to support JSP pages. Traditionally, this servlet -->
174
+ <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
175
+ <!-- following initialization parameters (default values are in square -->
176
+ <!-- brackets): -->
177
+ <!-- -->
178
+ <!-- checkInterval If development is false and reloading is true, -->
179
+ <!-- background compiles are enabled. checkInterval -->
180
+ <!-- is the time in seconds between checks to see -->
181
+ <!-- if a JSP page needs to be recompiled. [300] -->
182
+ <!-- -->
183
+ <!-- compiler Which compiler Ant should use to compile JSP -->
184
+ <!-- pages. See the Ant documenation for more -->
185
+ <!-- information. [javac] -->
186
+ <!-- -->
187
+ <!-- classdebuginfo Should the class file be compiled with -->
188
+ <!-- debugging information? [true] -->
189
+ <!-- -->
190
+ <!-- classpath What class path should I use while compiling -->
191
+ <!-- generated servlets? [Created dynamically -->
192
+ <!-- based on the current web application] -->
193
+ <!-- Set to ? to make the container explicitly set -->
194
+ <!-- this parameter. -->
195
+ <!-- -->
196
+ <!-- development Is Jasper used in development mode (will check -->
197
+ <!-- for JSP modification on every access)? [true] -->
198
+ <!-- -->
199
+ <!-- enablePooling Determines whether tag handler pooling is -->
200
+ <!-- enabled [true] -->
201
+ <!-- -->
202
+ <!-- fork Tell Ant to fork compiles of JSP pages so that -->
203
+ <!-- a separate JVM is used for JSP page compiles -->
204
+ <!-- from the one Tomcat is running in. [true] -->
205
+ <!-- -->
206
+ <!-- ieClassId The class-id value to be sent to Internet -->
207
+ <!-- Explorer when using <jsp:plugin> tags. -->
208
+ <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
209
+ <!-- -->
210
+ <!-- javaEncoding Java file encoding to use for generating java -->
211
+ <!-- source files. [UTF-8] -->
212
+ <!-- -->
213
+ <!-- keepgenerated Should we keep the generated Java source code -->
214
+ <!-- for each page instead of deleting it? [true] -->
215
+ <!-- -->
216
+ <!-- logVerbosityLevel The level of detailed messages to be produced -->
217
+ <!-- by this servlet. Increasing levels cause the -->
218
+ <!-- generation of more messages. Valid values are -->
219
+ <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
220
+ <!-- [WARNING] -->
221
+ <!-- -->
222
+ <!-- mappedfile Should we generate static content with one -->
223
+ <!-- print statement per input line, to ease -->
224
+ <!-- debugging? [false] -->
225
+ <!-- -->
226
+ <!-- -->
227
+ <!-- reloading Should Jasper check for modified JSPs? [true] -->
228
+ <!-- -->
229
+ <!-- suppressSmap Should the generation of SMAP info for JSR45 -->
230
+ <!-- debugging be suppressed? [false] -->
231
+ <!-- -->
232
+ <!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
233
+ <!-- dumped to a file? [false] -->
234
+ <!-- False if suppressSmap is true -->
235
+ <!-- -->
236
+ <!-- scratchdir What scratch directory should we use when -->
237
+ <!-- compiling JSP pages? [default work directory -->
238
+ <!-- for the current web application] -->
239
+ <!-- -->
240
+ <!-- tagpoolMaxSize The maximum tag handler pool size [5] -->
241
+ <!-- -->
242
+ <!-- xpoweredBy Determines whether X-Powered-By response -->
243
+ <!-- header is added by generated servlet [false] -->
244
+ <!-- -->
245
+ <!-- If you wish to use Jikes to compile JSP pages: -->
246
+ <!-- Set the init parameter "compiler" to "jikes". Define -->
247
+ <!-- the property "-Dbuild.compiler.emacs=true" when starting Jetty -->
248
+ <!-- to cause Jikes to emit error messages in a format compatible with -->
249
+ <!-- Jasper. -->
250
+ <!-- If you get an error reporting that jikes can't use UTF-8 encoding, -->
251
+ <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
252
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
253
+ <servlet id="jsp">
254
+ <servlet-name>jsp</servlet-name>
255
+ <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
256
+ <init-param>
257
+ <param-name>logVerbosityLevel</param-name>
258
+ <param-value>DEBUG</param-value>
259
+ </init-param>
260
+ <init-param>
261
+ <param-name>fork</param-name>
262
+ <param-value>false</param-value>
263
+ </init-param>
264
+ <init-param>
265
+ <param-name>xpoweredBy</param-name>
266
+ <param-value>false</param-value>
267
+ </init-param>
268
+ <!--
269
+ <init-param>
270
+ <param-name>classpath</param-name>
271
+ <param-value>?</param-value>
272
+ </init-param>
273
+ -->
274
+ <load-on-startup>0</load-on-startup>
275
+ </servlet>
276
+
277
+ <servlet-mapping>
278
+ <servlet-name>jsp</servlet-name>
279
+ <url-pattern>*.jsp</url-pattern>
280
+ <url-pattern>*.jspf</url-pattern>
281
+ <url-pattern>*.jspx</url-pattern>
282
+ <url-pattern>*.xsp</url-pattern>
283
+ <url-pattern>*.JSP</url-pattern>
284
+ <url-pattern>*.JSPF</url-pattern>
285
+ <url-pattern>*.JSPX</url-pattern>
286
+ <url-pattern>*.XSP</url-pattern>
287
+ </servlet-mapping>
288
+
289
+ <!-- ==================================================================== -->
290
+ <!-- Dynamic Servlet Invoker. -->
291
+ <!-- This servlet invokes anonymous servlets that have not been defined -->
292
+ <!-- in the web.xml or by other means. The first element of the pathInfo -->
293
+ <!-- of a request passed to the envoker is treated as a servlet name for -->
294
+ <!-- an existing servlet, or as a class name of a new servlet. -->
295
+ <!-- This servlet is normally mapped to /servlet/* -->
296
+ <!-- This servlet support the following initParams: -->
297
+ <!-- -->
298
+ <!-- nonContextServlets If false, the invoker can only load -->
299
+ <!-- servlets from the contexts classloader. -->
300
+ <!-- This is false by default and setting this -->
301
+ <!-- to true may have security implications. -->
302
+ <!-- -->
303
+ <!-- verbose If true, log dynamic loads -->
304
+ <!-- -->
305
+ <!-- * All other parameters are copied to the -->
306
+ <!-- each dynamic servlet as init parameters -->
307
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
308
+ <!-- Uncomment for dynamic invocation
309
+ <servlet>
310
+ <servlet-name>invoker</servlet-name>
311
+ <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>
312
+ <init-param>
313
+ <param-name>verbose</param-name>
314
+ <param-value>false</param-value>
315
+ </init-param>
316
+ <init-param>
317
+ <param-name>nonContextServlets</param-name>
318
+ <param-value>false</param-value>
319
+ </init-param>
320
+ <init-param>
321
+ <param-name>dynamicParam</param-name>
322
+ <param-value>anyValue</param-value>
323
+ </init-param>
324
+ <load-on-startup>0</load-on-startup>
325
+ </servlet>
326
+
327
+ <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping>
328
+ -->
329
+
330
+
331
+
332
+ <!-- ==================================================================== -->
333
+ <session-config>
334
+ <session-timeout>30</session-timeout>
335
+ </session-config>
336
+
337
+ <!-- ==================================================================== -->
338
+ <!-- Default MIME mappings -->
339
+ <!-- The default MIME mappings are provided by the mime.properties -->
340
+ <!-- resource in the org.mortbay.jetty.jar file. Additional or modified -->
341
+ <!-- mappings may be specified here -->
342
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
343
+ <!-- UNCOMMENT TO ACTIVATE
344
+ <mime-mapping>
345
+ <extension>mysuffix</extension>
346
+ <mime-type>mymime/type</mime-type>
347
+ </mime-mapping>
348
+ -->
349
+
350
+ <!-- ==================================================================== -->
351
+ <welcome-file-list>
352
+ <welcome-file>index.html</welcome-file>
353
+ <welcome-file>index.htm</welcome-file>
354
+ <welcome-file>index.jsp</welcome-file>
355
+ </welcome-file-list>
356
+
357
+ <!-- ==================================================================== -->
358
+ <locale-encoding-mapping-list>
359
+ <locale-encoding-mapping><locale>ar</locale><encoding>ISO-8859-6</encoding></locale-encoding-mapping>
360
+ <locale-encoding-mapping><locale>be</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
361
+ <locale-encoding-mapping><locale>bg</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
362
+ <locale-encoding-mapping><locale>ca</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
363
+ <locale-encoding-mapping><locale>cs</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
364
+ <locale-encoding-mapping><locale>da</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
365
+ <locale-encoding-mapping><locale>de</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
366
+ <locale-encoding-mapping><locale>el</locale><encoding>ISO-8859-7</encoding></locale-encoding-mapping>
367
+ <locale-encoding-mapping><locale>en</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
368
+ <locale-encoding-mapping><locale>es</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
369
+ <locale-encoding-mapping><locale>et</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
370
+ <locale-encoding-mapping><locale>fi</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
371
+ <locale-encoding-mapping><locale>fr</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
372
+ <locale-encoding-mapping><locale>hr</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
373
+ <locale-encoding-mapping><locale>hu</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
374
+ <locale-encoding-mapping><locale>is</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
375
+ <locale-encoding-mapping><locale>it</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
376
+ <locale-encoding-mapping><locale>iw</locale><encoding>ISO-8859-8</encoding></locale-encoding-mapping>
377
+ <locale-encoding-mapping><locale>ja</locale><encoding>Shift_JIS</encoding></locale-encoding-mapping>
378
+ <locale-encoding-mapping><locale>ko</locale><encoding>EUC-KR</encoding></locale-encoding-mapping>
379
+ <locale-encoding-mapping><locale>lt</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
380
+ <locale-encoding-mapping><locale>lv</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
381
+ <locale-encoding-mapping><locale>mk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
382
+ <locale-encoding-mapping><locale>nl</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
383
+ <locale-encoding-mapping><locale>no</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
384
+ <locale-encoding-mapping><locale>pl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
385
+ <locale-encoding-mapping><locale>pt</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
386
+ <locale-encoding-mapping><locale>ro</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
387
+ <locale-encoding-mapping><locale>ru</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
388
+ <locale-encoding-mapping><locale>sh</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
389
+ <locale-encoding-mapping><locale>sk</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
390
+ <locale-encoding-mapping><locale>sl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
391
+ <locale-encoding-mapping><locale>sq</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
392
+ <locale-encoding-mapping><locale>sr</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
393
+ <locale-encoding-mapping><locale>sv</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
394
+ <locale-encoding-mapping><locale>tr</locale><encoding>ISO-8859-9</encoding></locale-encoding-mapping>
395
+ <locale-encoding-mapping><locale>uk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
396
+ <locale-encoding-mapping><locale>zh</locale><encoding>GB2312</encoding></locale-encoding-mapping>
397
+ <locale-encoding-mapping><locale>zh_TW</locale><encoding>Big5</encoding></locale-encoding-mapping>
398
+ </locale-encoding-mapping-list>
399
+
400
+ <security-constraint>
401
+ <web-resource-collection>
402
+ <web-resource-name>Disable TRACE</web-resource-name>
403
+ <url-pattern>/</url-pattern>
404
+ <http-method>TRACE</http-method>
405
+ </web-resource-collection>
406
+ <auth-constraint/>
407
+ </security-constraint>
408
+
409
+ </web-app>
410
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,36 @@
1
+ ==============================================================
2
+ Jetty Web Container
3
+ Copyright 1995-2009 Mort Bay Consulting Pty Ltd
4
+ ==============================================================
5
+
6
+ The Jetty Web Container is Copyright Mort Bay Consulting Pty Ltd
7
+ unless otherwise noted. It is licensed under the apache 2.0
8
+ license.
9
+
10
+ The javax.servlet package used by Jetty is copyright
11
+ Sun Microsystems, Inc and Apache Software Foundation. It is
12
+ distributed under the Common Development and Distribution License.
13
+ You can obtain a copy of the license at
14
+ https://glassfish.dev.java.net/public/CDDLv1.0.html.
15
+
16
+ The UnixCrypt.java code ~Implements the one way cryptography used by
17
+ Unix systems for simple password protection. Copyright 1996 Aki Yoshida,
18
+ modified April 2001 by Iris Van den Broeke, Daniel Deville.
19
+ Permission to use, copy, modify and distribute UnixCrypt
20
+ for non-commercial or commercial purposes and without fee is
21
+ granted provided that the copyright notice appears in all copies.
22
+
23
+ The default JSP implementation is provided by the Glassfish JSP engine
24
+ from project Glassfish http://glassfish.dev.java.net. Copyright 2005
25
+ Sun Microsystems, Inc. and portions Copyright Apache Software Foundation.
26
+
27
+ Some portions of the code are Copyright:
28
+ 2006 Tim Vernum
29
+ 1999 Jason Gilbert.
30
+
31
+ The jboss integration module contains some LGPL code.
32
+
33
+ The win32 Java Service Wrapper (v3.2.3) is Copyright (c) 1999, 2006
34
+ Tanuki Software, Inc. and 2001 Silver Egg Technology. It is
35
+ covered by an open license which is viewable at
36
+ http://svn.codehaus.org/jetty/jetty/branches/jetty-6.1/extras/win32service/LICENSE.txt