benofsky-yajl-ruby 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/CHANGELOG.md +281 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +320 -0
- data/Rakefile +40 -0
- data/VERSION.yml +5 -0
- data/benchmark/encode.rb +58 -0
- data/benchmark/encode_json_and_marshal.rb +42 -0
- data/benchmark/encode_json_and_yaml.rb +53 -0
- data/benchmark/http.rb +32 -0
- data/benchmark/parse.rb +59 -0
- data/benchmark/parse_json_and_marshal.rb +50 -0
- data/benchmark/parse_json_and_yaml.rb +55 -0
- data/benchmark/parse_stream.rb +54 -0
- data/benchmark/subjects/item.json +1 -0
- data/benchmark/subjects/ohai.json +1216 -0
- data/benchmark/subjects/ohai.marshal_dump +0 -0
- data/benchmark/subjects/ohai.yml +975 -0
- data/benchmark/subjects/twitter_search.json +1 -0
- data/benchmark/subjects/twitter_stream.json +430 -0
- data/benchmark/subjects/unicode.json +1 -0
- data/examples/encoding/chunked_encoding.rb +27 -0
- data/examples/encoding/one_shot.rb +13 -0
- data/examples/encoding/to_an_io.rb +12 -0
- data/examples/http/twitter_search_api.rb +12 -0
- data/examples/http/twitter_stream_api.rb +26 -0
- data/examples/parsing/from_file.rb +14 -0
- data/examples/parsing/from_stdin.rb +9 -0
- data/examples/parsing/from_string.rb +13 -0
- data/ext/api/yajl_common.h +85 -0
- data/ext/api/yajl_gen.h +159 -0
- data/ext/api/yajl_parse.h +196 -0
- data/ext/extconf.rb +9 -0
- data/ext/yajl.c +164 -0
- data/ext/yajl_alloc.c +65 -0
- data/ext/yajl_alloc.h +50 -0
- data/ext/yajl_buf.c +119 -0
- data/ext/yajl_buf.h +73 -0
- data/ext/yajl_bytestack.h +85 -0
- data/ext/yajl_encode.c +188 -0
- data/ext/yajl_encode.h +50 -0
- data/ext/yajl_ext.c +911 -0
- data/ext/yajl_ext.h +128 -0
- data/ext/yajl_gen.c +317 -0
- data/ext/yajl_lex.c +747 -0
- data/ext/yajl_lex.h +135 -0
- data/ext/yajl_parser.c +450 -0
- data/ext/yajl_parser.h +82 -0
- data/lib/yajl/bzip2/stream_reader.rb +32 -0
- data/lib/yajl/bzip2/stream_writer.rb +15 -0
- data/lib/yajl/bzip2.rb +11 -0
- data/lib/yajl/deflate/stream_reader.rb +44 -0
- data/lib/yajl/deflate/stream_writer.rb +21 -0
- data/lib/yajl/deflate.rb +6 -0
- data/lib/yajl/gzip/stream_reader.rb +31 -0
- data/lib/yajl/gzip/stream_writer.rb +14 -0
- data/lib/yajl/gzip.rb +6 -0
- data/lib/yajl/http_stream.rb +197 -0
- data/lib/yajl/json_gem/encoding.rb +50 -0
- data/lib/yajl/json_gem/parsing.rb +27 -0
- data/lib/yajl/json_gem.rb +14 -0
- data/lib/yajl.rb +93 -0
- data/spec/encoding/encoding_spec.rb +234 -0
- data/spec/global/global_spec.rb +55 -0
- data/spec/http/fixtures/http.bzip2.dump +0 -0
- data/spec/http/fixtures/http.chunked.dump +11 -0
- data/spec/http/fixtures/http.deflate.dump +0 -0
- data/spec/http/fixtures/http.error.dump +12 -0
- data/spec/http/fixtures/http.gzip.dump +0 -0
- data/spec/http/fixtures/http.html.dump +1220 -0
- data/spec/http/fixtures/http.raw.dump +1226 -0
- data/spec/http/http_delete_spec.rb +99 -0
- data/spec/http/http_error_spec.rb +33 -0
- data/spec/http/http_get_spec.rb +110 -0
- data/spec/http/http_post_spec.rb +124 -0
- data/spec/http/http_put_spec.rb +106 -0
- data/spec/json_gem_compatibility/compatibility_spec.rb +203 -0
- data/spec/parsing/active_support_spec.rb +64 -0
- data/spec/parsing/chunked_spec.rb +98 -0
- data/spec/parsing/fixtures/fail.15.json +1 -0
- data/spec/parsing/fixtures/fail.16.json +1 -0
- data/spec/parsing/fixtures/fail.17.json +1 -0
- data/spec/parsing/fixtures/fail.26.json +1 -0
- data/spec/parsing/fixtures/fail11.json +1 -0
- data/spec/parsing/fixtures/fail12.json +1 -0
- data/spec/parsing/fixtures/fail13.json +1 -0
- data/spec/parsing/fixtures/fail14.json +1 -0
- data/spec/parsing/fixtures/fail19.json +1 -0
- data/spec/parsing/fixtures/fail20.json +1 -0
- data/spec/parsing/fixtures/fail21.json +1 -0
- data/spec/parsing/fixtures/fail22.json +1 -0
- data/spec/parsing/fixtures/fail23.json +1 -0
- data/spec/parsing/fixtures/fail24.json +1 -0
- data/spec/parsing/fixtures/fail25.json +1 -0
- data/spec/parsing/fixtures/fail27.json +2 -0
- data/spec/parsing/fixtures/fail28.json +2 -0
- data/spec/parsing/fixtures/fail3.json +1 -0
- data/spec/parsing/fixtures/fail4.json +1 -0
- data/spec/parsing/fixtures/fail5.json +1 -0
- data/spec/parsing/fixtures/fail6.json +1 -0
- data/spec/parsing/fixtures/fail9.json +1 -0
- data/spec/parsing/fixtures/pass.array.json +6 -0
- data/spec/parsing/fixtures/pass.codepoints_from_unicode_org.json +1 -0
- data/spec/parsing/fixtures/pass.contacts.json +1 -0
- data/spec/parsing/fixtures/pass.db100.xml.json +1 -0
- data/spec/parsing/fixtures/pass.db1000.xml.json +1 -0
- data/spec/parsing/fixtures/pass.dc_simple_with_comments.json +11 -0
- data/spec/parsing/fixtures/pass.deep_arrays.json +1 -0
- data/spec/parsing/fixtures/pass.difficult_json_c_test_case.json +1 -0
- data/spec/parsing/fixtures/pass.difficult_json_c_test_case_with_comments.json +1 -0
- data/spec/parsing/fixtures/pass.doubles.json +1 -0
- data/spec/parsing/fixtures/pass.empty_array.json +1 -0
- data/spec/parsing/fixtures/pass.empty_string.json +1 -0
- data/spec/parsing/fixtures/pass.escaped_bulgarian.json +4 -0
- data/spec/parsing/fixtures/pass.escaped_foobar.json +1 -0
- data/spec/parsing/fixtures/pass.item.json +1 -0
- data/spec/parsing/fixtures/pass.json-org-sample1.json +23 -0
- data/spec/parsing/fixtures/pass.json-org-sample2.json +11 -0
- data/spec/parsing/fixtures/pass.json-org-sample3.json +26 -0
- data/spec/parsing/fixtures/pass.json-org-sample4-nows.json +88 -0
- data/spec/parsing/fixtures/pass.json-org-sample4.json +89 -0
- data/spec/parsing/fixtures/pass.json-org-sample5.json +27 -0
- data/spec/parsing/fixtures/pass.map-spain.xml.json +1 -0
- data/spec/parsing/fixtures/pass.ns-invoice100.xml.json +1 -0
- data/spec/parsing/fixtures/pass.ns-soap.xml.json +1 -0
- data/spec/parsing/fixtures/pass.numbers-fp-4k.json +6 -0
- data/spec/parsing/fixtures/pass.numbers-fp-64k.json +61 -0
- data/spec/parsing/fixtures/pass.numbers-int-4k.json +11 -0
- data/spec/parsing/fixtures/pass.numbers-int-64k.json +154 -0
- data/spec/parsing/fixtures/pass.twitter-search.json +1 -0
- data/spec/parsing/fixtures/pass.twitter-search2.json +1 -0
- data/spec/parsing/fixtures/pass.unicode.json +3315 -0
- data/spec/parsing/fixtures/pass.yelp.json +1 -0
- data/spec/parsing/fixtures/pass1.json +56 -0
- data/spec/parsing/fixtures/pass2.json +1 -0
- data/spec/parsing/fixtures/pass3.json +6 -0
- data/spec/parsing/fixtures_spec.rb +41 -0
- data/spec/parsing/one_off_spec.rb +81 -0
- data/spec/rcov.opts +3 -0
- data/spec/spec.opts +2 -0
- data/spec/spec_helper.rb +16 -0
- data/yajl-ruby.gemspec +203 -0
- metadata +232 -0
@@ -0,0 +1 @@
|
|
1
|
+
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
|
@@ -0,0 +1 @@
|
|
1
|
+
{ "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": [ { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML", "markup"] } ] } } }
|
@@ -0,0 +1 @@
|
|
1
|
+
{ "glossary": { /* you */ "title": /**/ "example glossary", /*should*/"GlossDiv": { "title": /*never*/"S", /*ever*/"GlossList": [ { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": "A meta-markup language, used to create markup languages such as DocBook.", /*see*/"GlossSeeAlso"/*this*/:/*coming*/[/*out*/"GML"/*of*/,/*the*/"XML"/*parser!*/, "markup"] /*hey*/}/*ho*/]/*hey*/}/*ho*/} } // and the parser won't even get this far, so chill. /* hah!
|
@@ -0,0 +1 @@
|
|
1
|
+
[ 0.1e2, 1e1, 3.141569, 10000000000000e-10]
|
@@ -0,0 +1 @@
|
|
1
|
+
[]
|
@@ -0,0 +1 @@
|
|
1
|
+
""
|
@@ -0,0 +1 @@
|
|
1
|
+
"\u0066\u006f\u006f\u0062\u0061\u0072"
|
@@ -0,0 +1 @@
|
|
1
|
+
{"item": {"name": "generated", "cached_tag_list": "", "updated_at": "2009-03-24T05:25:09Z", "updated_by_id": null, "price": 1.99, "delta": false, "cost": 0.597, "account_id": 16, "unit": null, "import_tag": null, "taxable": true, "id": 1, "created_by_id": null, "description": null, "company_id": 0, "sku": "06317-0306", "created_at": "2009-03-24T05:25:09Z", "active": true}}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"glossary": {
|
3
|
+
"title": "example glossary",
|
4
|
+
"GlossDiv": {
|
5
|
+
"title": "S",
|
6
|
+
"GlossList": {
|
7
|
+
"GlossEntry": {
|
8
|
+
"ID": "SGML",
|
9
|
+
"SortAs": "SGML",
|
10
|
+
"GlossTerm": "Standard Generalized Markup Language",
|
11
|
+
"Acronym": "SGML",
|
12
|
+
"Abbrev": "ISO 8879:1986",
|
13
|
+
"GlossDef": {
|
14
|
+
"para": "A meta-markup language, used to create markup languages such as DocBook.",
|
15
|
+
"GlossSeeAlso": ["GML", "XML"]
|
16
|
+
},
|
17
|
+
"GlossSee": "markup"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{"widget": {
|
2
|
+
"debug": "on",
|
3
|
+
"window": {
|
4
|
+
"title": "Sample Konfabulator Widget",
|
5
|
+
"name": "main_window",
|
6
|
+
"width": 500,
|
7
|
+
"height": 500
|
8
|
+
},
|
9
|
+
"image": {
|
10
|
+
"src": "Images/Sun.png",
|
11
|
+
"name": "sun1",
|
12
|
+
"hOffset": 250,
|
13
|
+
"vOffset": 250,
|
14
|
+
"alignment": "center"
|
15
|
+
},
|
16
|
+
"text": {
|
17
|
+
"data": "Click Here",
|
18
|
+
"size": 36,
|
19
|
+
"style": "bold",
|
20
|
+
"name": "text1",
|
21
|
+
"hOffset": 250,
|
22
|
+
"vOffset": 100,
|
23
|
+
"alignment": "center",
|
24
|
+
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
|
25
|
+
}
|
26
|
+
}}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
{"web-app":{
|
2
|
+
"servlet":[
|
3
|
+
{
|
4
|
+
"servlet-name": "cofaxCDS",
|
5
|
+
"servlet-class": "org.cofax.cds.CDSServlet",
|
6
|
+
"init-param": {
|
7
|
+
"configGlossary:installationAt": "Philadelphia, PA",
|
8
|
+
"configGlossary:adminEmail": "ksm@pobox.com",
|
9
|
+
"configGlossary:poweredBy": "Cofax",
|
10
|
+
"configGlossary:poweredByIcon": "/images/cofax.gif",
|
11
|
+
"configGlossary:staticPath": "/content/static",
|
12
|
+
"templateProcessorClass": "org.cofax.WysiwygTemplate",
|
13
|
+
"templateLoaderClass": "org.cofax.FilesTemplateLoader",
|
14
|
+
"templatePath": "templates",
|
15
|
+
"templateOverridePath": "",
|
16
|
+
"defaultListTemplate": "listTemplate.htm",
|
17
|
+
"defaultFileTemplate": "articleTemplate.htm",
|
18
|
+
"useJSP": false,
|
19
|
+
"jspListTemplate": "listTemplate.jsp",
|
20
|
+
"jspFileTemplate": "articleTemplate.jsp",
|
21
|
+
"cachePackageTagsTrack": 200,
|
22
|
+
"cachePackageTagsStore": 200,
|
23
|
+
"cachePackageTagsRefresh": 60,
|
24
|
+
"cacheTemplatesTrack": 100,
|
25
|
+
"cacheTemplatesStore": 50,
|
26
|
+
"cacheTemplatesRefresh": 15,
|
27
|
+
"cachePagesTrack": 200,
|
28
|
+
"cachePagesStore": 100,
|
29
|
+
"cachePagesRefresh": 10,
|
30
|
+
"cachePagesDirtyRead": 10,
|
31
|
+
"searchEngineListTemplate": "forSearchEnginesList.htm",
|
32
|
+
"searchEngineFileTemplate": "forSearchEngines.htm",
|
33
|
+
"searchEngineRobotsDb": "WEB-INF/robots.db",
|
34
|
+
"useDataStore": true,
|
35
|
+
"dataStoreClass": "org.cofax.SqlDataStore",
|
36
|
+
"redirectionClass": "org.cofax.SqlRedirection",
|
37
|
+
"dataStoreName": "cofax",
|
38
|
+
"dataStoreDriver": "com.microsoft.jdbc.sqlserver.SQLServerDriver",
|
39
|
+
"dataStoreUrl": "jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon",
|
40
|
+
"dataStoreUser": "sa",
|
41
|
+
"dataStorePassword": "dataStoreTestQuery",
|
42
|
+
"dataStoreTestQuery": "SET NOCOUNT ON;select test='test';",
|
43
|
+
"dataStoreLogFile": "/usr/local/tomcat/logs/datastore.log",
|
44
|
+
"dataStoreInitConns": 10,
|
45
|
+
"dataStoreMaxConns": 100,
|
46
|
+
"dataStoreConnUsageLimit": 100,
|
47
|
+
"dataStoreLogLevel": "debug",
|
48
|
+
"maxUrlLength": 500}},
|
49
|
+
{
|
50
|
+
"servlet-name": "cofaxEmail",
|
51
|
+
"servlet-class": "org.cofax.cds.EmailServlet",
|
52
|
+
"init-param": {
|
53
|
+
"mailHost": "mail1",
|
54
|
+
"mailHostOverride": "mail2"}},
|
55
|
+
{
|
56
|
+
"servlet-name": "cofaxAdmin",
|
57
|
+
"servlet-class": "org.cofax.cds.AdminServlet"},
|
58
|
+
|
59
|
+
{
|
60
|
+
"servlet-name": "fileServlet",
|
61
|
+
"servlet-class": "org.cofax.cds.FileServlet"},
|
62
|
+
{
|
63
|
+
"servlet-name": "cofaxTools",
|
64
|
+
"servlet-class": "org.cofax.cms.CofaxToolsServlet",
|
65
|
+
"init-param": {
|
66
|
+
"templatePath": "toolstemplates/",
|
67
|
+
"log": 1,
|
68
|
+
"logLocation": "/usr/local/tomcat/logs/CofaxTools.log",
|
69
|
+
"logMaxSize": "",
|
70
|
+
"dataLog": 1,
|
71
|
+
"dataLogLocation": "/usr/local/tomcat/logs/dataLog.log",
|
72
|
+
"dataLogMaxSize": "",
|
73
|
+
"removePageCache": "/content/admin/remove?cache=pages&id=",
|
74
|
+
"removeTemplateCache": "/content/admin/remove?cache=templates&id=",
|
75
|
+
"fileTransferFolder": "/usr/local/tomcat/webapps/content/fileTransferFolder",
|
76
|
+
"lookInContext": 1,
|
77
|
+
"adminGroupID": 4,
|
78
|
+
"betaServer": true}}],
|
79
|
+
"servlet-mapping": {
|
80
|
+
"cofaxCDS": "/",
|
81
|
+
"cofaxEmail": "/cofaxutil/aemail/*",
|
82
|
+
"cofaxAdmin": "/admin/*",
|
83
|
+
"fileServlet": "/static/*",
|
84
|
+
"cofaxTools": "/tools/*"},
|
85
|
+
"taglib": {
|
86
|
+
"taglib-uri": "cofax.tld",
|
87
|
+
"taglib-location": "/WEB-INF/tlds/cofax.tld"}
|
88
|
+
}}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
{"web-app": {
|
2
|
+
"servlet": [
|
3
|
+
{
|
4
|
+
"servlet-name": "cofaxCDS",
|
5
|
+
"servlet-class": "org.cofax.cds.CDSServlet",
|
6
|
+
"init-param": {
|
7
|
+
"configGlossary:installationAt": "Philadelphia, PA",
|
8
|
+
"configGlossary:adminEmail": "ksm@pobox.com",
|
9
|
+
"configGlossary:poweredBy": "Cofax",
|
10
|
+
"configGlossary:poweredByIcon": "/images/cofax.gif",
|
11
|
+
"configGlossary:staticPath": "/content/static",
|
12
|
+
"templateProcessorClass": "org.cofax.WysiwygTemplate",
|
13
|
+
"templateLoaderClass": "org.cofax.FilesTemplateLoader",
|
14
|
+
"templatePath": "templates",
|
15
|
+
"templateOverridePath": "",
|
16
|
+
"defaultListTemplate": "listTemplate.htm",
|
17
|
+
"defaultFileTemplate": "articleTemplate.htm",
|
18
|
+
"useJSP": false,
|
19
|
+
"jspListTemplate": "listTemplate.jsp",
|
20
|
+
"jspFileTemplate": "articleTemplate.jsp",
|
21
|
+
"cachePackageTagsTrack": 200,
|
22
|
+
"cachePackageTagsStore": 200,
|
23
|
+
"cachePackageTagsRefresh": 60,
|
24
|
+
"cacheTemplatesTrack": 100,
|
25
|
+
"cacheTemplatesStore": 50,
|
26
|
+
"cacheTemplatesRefresh": 15,
|
27
|
+
"cachePagesTrack": 200,
|
28
|
+
"cachePagesStore": 100,
|
29
|
+
"cachePagesRefresh": 10,
|
30
|
+
"cachePagesDirtyRead": 10,
|
31
|
+
"searchEngineListTemplate": "forSearchEnginesList.htm",
|
32
|
+
"searchEngineFileTemplate": "forSearchEngines.htm",
|
33
|
+
"searchEngineRobotsDb": "WEB-INF/robots.db",
|
34
|
+
"useDataStore": true,
|
35
|
+
"dataStoreClass": "org.cofax.SqlDataStore",
|
36
|
+
"redirectionClass": "org.cofax.SqlRedirection",
|
37
|
+
"dataStoreName": "cofax",
|
38
|
+
"dataStoreDriver": "com.microsoft.jdbc.sqlserver.SQLServerDriver",
|
39
|
+
"dataStoreUrl": "jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon",
|
40
|
+
"dataStoreUser": "sa",
|
41
|
+
"dataStorePassword": "dataStoreTestQuery",
|
42
|
+
"dataStoreTestQuery": "SET NOCOUNT ON;select test='test';",
|
43
|
+
"dataStoreLogFile": "/usr/local/tomcat/logs/datastore.log",
|
44
|
+
"dataStoreInitConns": 10,
|
45
|
+
"dataStoreMaxConns": 100,
|
46
|
+
"dataStoreConnUsageLimit": 100,
|
47
|
+
"dataStoreLogLevel": "debug",
|
48
|
+
"maxUrlLength": 500}},
|
49
|
+
{
|
50
|
+
"servlet-name": "cofaxEmail",
|
51
|
+
"servlet-class": "org.cofax.cds.EmailServlet",
|
52
|
+
"init-param": {
|
53
|
+
"mailHost": "mail1",
|
54
|
+
"mailHostOverride": "mail2"}},
|
55
|
+
{
|
56
|
+
"servlet-name": "cofaxAdmin",
|
57
|
+
"servlet-class": "org.cofax.cds.AdminServlet"},
|
58
|
+
|
59
|
+
{
|
60
|
+
"servlet-name": "fileServlet",
|
61
|
+
"servlet-class": "org.cofax.cds.FileServlet"},
|
62
|
+
{
|
63
|
+
"servlet-name": "cofaxTools",
|
64
|
+
"servlet-class": "org.cofax.cms.CofaxToolsServlet",
|
65
|
+
"init-param": {
|
66
|
+
"templatePath": "toolstemplates/",
|
67
|
+
"log": 1,
|
68
|
+
"logLocation": "/usr/local/tomcat/logs/CofaxTools.log",
|
69
|
+
"logMaxSize": "",
|
70
|
+
"dataLog": 1,
|
71
|
+
"dataLogLocation": "/usr/local/tomcat/logs/dataLog.log",
|
72
|
+
"dataLogMaxSize": "",
|
73
|
+
"removePageCache": "/content/admin/remove?cache=pages&id=",
|
74
|
+
"removeTemplateCache": "/content/admin/remove?cache=templates&id=",
|
75
|
+
"fileTransferFolder": "/usr/local/tomcat/webapps/content/fileTransferFolder",
|
76
|
+
"lookInContext": 1,
|
77
|
+
"adminGroupID": 4,
|
78
|
+
"betaServer": true}}],
|
79
|
+
"servlet-mapping": {
|
80
|
+
"cofaxCDS": "/",
|
81
|
+
"cofaxEmail": "/cofaxutil/aemail/*",
|
82
|
+
"cofaxAdmin": "/admin/*",
|
83
|
+
"fileServlet": "/static/*",
|
84
|
+
"cofaxTools": "/tools/*"},
|
85
|
+
|
86
|
+
"taglib": {
|
87
|
+
"taglib-uri": "cofax.tld",
|
88
|
+
"taglib-location": "/WEB-INF/tlds/cofax.tld"}
|
89
|
+
}}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{"menu": {
|
2
|
+
"header": "SVG Viewer",
|
3
|
+
"items": [
|
4
|
+
{"id": "Open"},
|
5
|
+
{"id": "OpenNew", "label": "Open New"},
|
6
|
+
null,
|
7
|
+
{"id": "ZoomIn", "label": "Zoom In"},
|
8
|
+
{"id": "ZoomOut", "label": "Zoom Out"},
|
9
|
+
{"id": "OriginalView", "label": "Original View"},
|
10
|
+
null,
|
11
|
+
{"id": "Quality"},
|
12
|
+
{"id": "Pause"},
|
13
|
+
{"id": "Mute"},
|
14
|
+
null,
|
15
|
+
{"id": "Find", "label": "Find..."},
|
16
|
+
{"id": "FindAgain", "label": "Find Again"},
|
17
|
+
{"id": "Copy"},
|
18
|
+
{"id": "CopyAgain", "label": "Copy Again"},
|
19
|
+
{"id": "CopySVG", "label": "Copy SVG"},
|
20
|
+
{"id": "ViewSVG", "label": "View SVG"},
|
21
|
+
{"id": "ViewSource", "label": "View Source"},
|
22
|
+
{"id": "SaveAs", "label": "Save As"},
|
23
|
+
null,
|
24
|
+
{"id": "Help"},
|
25
|
+
{"id": "About", "label": "About Adobe CVG Viewer..."}
|
26
|
+
]
|
27
|
+
}}
|