This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new bb0c96a Default GET servlet - update docs to reflect servlet
selection applies to binaries only.
bb0c96a is described below
commit bb0c96a10e3f189d301161e97a0a993248540dfd
Author: Robert Munteanu <[email protected]>
AuthorDate: Wed Jan 8 16:35:00 2020 +0100
Default GET servlet - update docs to reflect servlet selection applies to
binaries only.
---
.../bundles/rendering-content-default-get-servlets.md | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git
a/src/main/jbake/content/documentation/bundles/rendering-content-default-get-servlets.md
b/src/main/jbake/content/documentation/bundles/rendering-content-default-get-servlets.md
index a7f3b1a..1884a65 100644
---
a/src/main/jbake/content/documentation/bundles/rendering-content-default-get-servlets.md
+++
b/src/main/jbake/content/documentation/bundles/rendering-content-default-get-servlets.md
@@ -185,12 +185,11 @@ And the `;v=` URI path parameter gives access to each
version (output abbreviate
"jcr:uuid": "3d55430b-2fa6-4562-b415-638fb6608c0e"
}
-## Rendering resources using the default GET servlet
+## Streaming binaries using the default GET servlet
-There are scenarios where it is useful to render a resource using the default
GET servlet. However, there is
-no API to select a specific servlet or to force a specific extension to be
used. We can still use the default
-GET servlet by taking advantage of the fact that it is also registered for the
_res_ extension. The code
-to do what would be:
+There are scenarios where it is useful to stream a binary resource using the
default GET servlet. However, there is
+no API to select a specific servlet. We can still stream using the default GET
servlet by taking advantage of the
+fact that it is also registered for the _res_ extension. The code to do what
would be:
Resource toRender = /* code to obtain resource here */ null;
request