Repository: incubator-juneau-website Updated Branches: refs/heads/asf-site 1be0e9d0b -> e74d595a7
Making updates to about page. Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/commit/e74d595a Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/tree/e74d595a Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/diff/e74d595a Branch: refs/heads/asf-site Commit: e74d595a7b121edcdcd694fa04855d5c46d785a3 Parents: 1be0e9d Author: JamesBognar <[email protected]> Authored: Mon Jul 3 09:46:50 2017 -0400 Committer: JamesBognar <[email protected]> Committed: Mon Jul 3 09:46:50 2017 -0400 ---------------------------------------------------------------------- content/about.html | 35 +++++++++++------------ content/images/SystemPropertiesResource.png | Bin 0 -> 83122 bytes 2 files changed, 16 insertions(+), 19 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/e74d595a/content/about.html ---------------------------------------------------------------------- diff --git a/content/about.html b/content/about.html index f42bd1b..e40e438 100644 --- a/content/about.html +++ b/content/about.html @@ -570,7 +570,7 @@ The REST server API builds upon the <code>SerializerGroup</code> and <code>ParserGroup</code> classes to provide annotated REST servlets that automatically negotiate the HTTP media types for you. <br>Developers simply work with requests, responses, headers, path variables, query parameters, and form data as POJOs. - <br>Allows you to create sophisticated REST interface using tiny amounts of code. + <br>Allows you to create sophisticated REST interfaces using tiny amounts of code. </p> <p> The end goal is to provide simple and flexible yet sophisticated REST interfaces that allow POJOs to be automatically represented as @@ -637,7 +637,7 @@ title=<js>"System properties resource"</js>, description=<js>"REST interface for performing CRUD operations on system properties."</js>, - <ja>// Widget used for content-type pull-down menu.</ja> + <jc>// Widget used for content-type pull-down menu.</jc> widgets={ ContentTypeMenuItem.<jk>class</jk> }, @@ -648,7 +648,13 @@ htmldoc=<ja>@HtmlDoc</ja>( <jc>// Custom navigation links.</jc> - links=<js>"{up:'request:/..',options:'servlet:/?method=OPTIONS',form:'servlet:/formPage',contentTypes:'$W{contentTypeMenuItem}'}"</js>, + links=<js>"{"</js> + + <js>"up:'request:/..',"</js> + + <js>"options:'servlet:/?method=OPTIONS',"</js> + + <js>"form:'servlet:/formPage',"</js> + + <js>"contentTypes:'$W{contentTypeMenuItem}',"</js> + + <js>"source:'$C{Source/gitHub}/org/apache/juneau/examples/rest/SystemPropertiesResource.java'"</js> + + <js>"}"</js>, <jc>// Custom page text in aside section.</jc> aside=<js>""</js> @@ -659,22 +665,7 @@ <jc>// Custom CSS styles applied to HTML view.</jc> style=<js>"aside {display:table-caption;}"</js> ), - - <jc>// Specify your own sets of serializers and parsers for this resource.</jc> - serializers={ - HtmlDocSerializer.<jk>class</jk>, - JsonSerializer.<jk>class</jk>, - JsonSerializer.Simple.<jk>class</jk>, - XmlDocSerializer.<jk>class</jk>, - MsgPackSerializer.<jk>class</jk> - }, - parsers={ - JsonParser.<jk>class</jk>, - XmlParser.<jk>class</jk>, - HtmlParser.<jk>class</jk>, - MsgPackParser.<jk>class</jk> - }, - + <jc>// Set serializer, parser, and REST context properties.</jc> properties={ <ja>@Property</ja>(name=<jsf>SERIALIZER_quoteChar</jsf>, value=<js>"'"</js>) @@ -719,6 +710,12 @@ ... } </p> + + <p> + In HTML, our resource looks like this: + </p> + <img class='bordered' src='images/SystemPropertiesResource.png'> + <p> When combined with the support for HTML5 beans, simple HTML forms can be constructed for easy input and output using nothing more than Java: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/e74d595a/content/images/SystemPropertiesResource.png ---------------------------------------------------------------------- diff --git a/content/images/SystemPropertiesResource.png b/content/images/SystemPropertiesResource.png new file mode 100644 index 0000000..01d4f53 Binary files /dev/null and b/content/images/SystemPropertiesResource.png differ
