You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by np...@apache.org on 2018/09/17 13:02:24 UTC

[sling-site] branch master updated (31e4338 -> b5e2b95)

This is an automated email from the ASF dual-hosted git repository.

npeltier pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git.


    from 31e4338  Release Clam 1.0.0, Commons Clam 1.0.0, Commons Metrics 1.2.6, Commons Mime 2.2.0, Scripting FreeMarker 1.0.0, Scripting Groovy 1.0.4, Scripting Thymeleaf 2.0.0, Service User Mapper 1.4.2, Settings 1.3.10
     new 4354df8  fix filter support sample formatting
     new b5e2b95  release pipes 3.0.2

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../documentation/the-sling-engine/filters.md      | 71 +++++++++++-----------
 src/main/jbake/content/releases.md                 |  1 +
 src/main/jbake/templates/downloads.tpl             |  2 +-
 3 files changed, 37 insertions(+), 37 deletions(-)


[sling-site] 02/02: release pipes 3.0.2

Posted by np...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

npeltier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git

commit b5e2b95a88ebf68a0b128b577f37a051726347df
Author: Nicolas Peltier <np...@adobe.com>
AuthorDate: Mon Sep 17 15:02:11 2018 +0200

    release pipes 3.0.2
---
 src/main/jbake/content/releases.md     | 1 +
 src/main/jbake/templates/downloads.tpl | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/jbake/content/releases.md b/src/main/jbake/content/releases.md
index d8ce43a..9a7eb6a 100644
--- a/src/main/jbake/content/releases.md
+++ b/src/main/jbake/content/releases.md
@@ -8,6 +8,7 @@ This is a list of all our releases, available from our [downloads](/downloads.cg
 
 ## September 2018
 
+* Pipes 3.0.2 (17th)
 * File Optimization 0.9.2, Clam 1.0.0, Commons Clam 1.0.0, Commons Metrics 1.2.6, Commons Mime 2.2.0, Scripting FreeMarker 1.0.0, Scripting Groovy 1.0.4, Scripting Thymeleaf 2.0.0, Service User Mapper 1.4.2, Settings 1.3.10 (12th)
 * Servlets Annotations 1.1.0 (11th)
 * Commons Log 5.1.10 (10th)
diff --git a/src/main/jbake/templates/downloads.tpl b/src/main/jbake/templates/downloads.tpl
index 9ab296e..b190040 100644
--- a/src/main/jbake/templates/downloads.tpl
+++ b/src/main/jbake/templates/downloads.tpl
@@ -177,7 +177,7 @@ def bundles=[
   "Path-based RTP sample|org.apache.sling.samples.path-based.rtp|2.0.4",
   "Pax Exam Utilities|org.apache.sling.paxexam.util|1.0.4",
   "Performance Test Utilities|org.apache.sling.performance.base|1.0.2",
-  "Pipes|org.apache.sling.pipes|2.0.2",
+  "Pipes|org.apache.sling.pipes|3.0.2",
   "Provisioning Model|org.apache.sling.provisioning.model|1.8.4",
   "Repoinit Parser|org.apache.sling.repoinit.parser|1.2.2",
   "Resource Access Security|org.apache.sling.resourceaccesssecurity|1.0.0",


[sling-site] 01/02: fix filter support sample formatting

Posted by np...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

npeltier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git

commit 4354df87fda92989bcf29750463dfe2168fa0f49
Author: Nicolas Peltier <np...@adobe.com>
AuthorDate: Mon Sep 17 15:01:50 2018 +0200

    fix filter support sample formatting
---
 .../documentation/the-sling-engine/filters.md      | 71 +++++++++++-----------
 1 file changed, 35 insertions(+), 36 deletions(-)

diff --git a/src/main/jbake/content/documentation/the-sling-engine/filters.md b/src/main/jbake/content/documentation/the-sling-engine/filters.md
index d2231e6..99eeddb 100644
--- a/src/main/jbake/content/documentation/the-sling-engine/filters.md
+++ b/src/main/jbake/content/documentation/the-sling-engine/filters.md
@@ -31,43 +31,42 @@ For Sling to pick up a `javax.servlet.Filter` service for filter processing two
 ## SlingServletFilter Annotation
 
 Coding the above being a bit tedious, `Apache Sling Servlets Annotations 1.1.0` provides handy `SlingServletFilter annotation to set those values:
-```
-...
-   import org.apache.sling.servlets.annotations.SlingServletFilter;
-   import org.apache.sling.servlets.annotations.SlingServletFilterScope;
-   import org.osgi.service.component.annotations.Component;
-...   
-   @Component
-   @SlingServletFilter(scope = {SlingServletFilterScope.REQUEST},
-                       suffix_pattern = "/suffix/foo",
-                       resourceTypes = {"foo/bar"},
-                       pattern = "/content/.*",
-                       extensions = {"txt","json"},
-                       selectors = {"foo","bar"},
-                       methods = {"GET","HEAD"})
-   public class FooBarFilter implements Filter {
-   
-       @Override
-       public void init(FilterConfig filterConfig) throws ServletException {
-   
-       }
-   
-       @Override
-       public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
-           SlingHttpServletResponse slingResponse = (SlingHttpServletResponse)response;
-           //will only be run on (GET|HEAD) /content/.*.foo|bar.txt|json/suffix/foo requests
-           //code here can be reduced to what should actually be done in that case
-           //for other requests, this filter will not be in the call stack 
-           slingResponse.addHeader("foobared", "true");
-           chain.doFilter(request, slingResponse);
-       }
-   
-       @Override
-       public void destroy() {
-   
+
+    ...
+       import org.apache.sling.servlets.annotations.SlingServletFilter;
+       import org.apache.sling.servlets.annotations.SlingServletFilterScope;
+       import org.osgi.service.component.annotations.Component;
+    ...   
+       @Component
+       @SlingServletFilter(scope = {SlingServletFilterScope.REQUEST},
+                           suffix_pattern = "/suffix/foo",
+                           resourceTypes = {"foo/bar"},
+                           pattern = "/content/.*",
+                           extensions = {"txt","json"},
+                           selectors = {"foo","bar"},
+                           methods = {"GET","HEAD"})
+       public class FooBarFilter implements Filter {
+       
+           @Override
+           public void init(FilterConfig filterConfig) throws ServletException {
+       
+           }
+       
+           @Override
+           public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
+               SlingHttpServletResponse slingResponse = (SlingHttpServletResponse)response;
+               //will only be run on (GET|HEAD) /content/.*.foo|bar.txt|json/suffix/foo requests
+               //code here can be reduced to what should actually be done in that case
+               //for other requests, this filter will not be in the call stack 
+               slingResponse.addHeader("foobared", "true");
+               chain.doFilter(request, slingResponse);
+           }
+       
+           @Override
+           public void destroy() {
+       
+           }
        }
-   }
-```
 
 ## Filter Chains