Apache Sling

       Felix Meschberger
      Day Management AG

     fmeschbe@apache.org



               
General Request Processing
                                      request
      ResourceResolver
                Resource (...
URI Decomposition
    /content/page.print.a4.html

     Resource Path       Selectors   Extension




                      
Servlet Resolution
    • Registered Servlets
      – Resource Type
    • Scripts
      – ScriptResolver
    • DefaultServl...
ScriptResolver
• Path to Script built from ...
      • Defined Root ( /sling/scripts )
      • Resource Type converted to ...
ScriptResolver Example
    • URI: /content/page.print.a4.html
    • Resource: /content/page
    • Resource Type: sample:pa...
Facts
    • Sling API
      – No Reference to JCR API
    • Modular and Runtime Configurable
      – OSGi Framework
    • ...
microsling
    • Selfcontained Web Application
    • Deploy to favourite Servlet Container




                        
Sling
    • Two Deployments
      – Standalone, Executable JAR File
      – Web Application
    • Launches OSGi Framework
...
Questions




         
Upcoming SlideShare
Loading in...5
×

Apache Con U S07 F F T Sling

1,710

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,710
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Apache Con U S07 F F T Sling"

  1. 1. Apache Sling Felix Meschberger Day Management AG fmeschbe@apache.org    
  2. 2. General Request Processing request ResourceResolver Resource (resource type) ServletResolver Servlet Script response    
  3. 3. URI Decomposition /content/page.print.a4.html Resource Path Selectors Extension    
  4. 4. Servlet Resolution • Registered Servlets – Resource Type • Scripts – ScriptResolver • DefaultServlet – Fallback / Last Ressort    
  5. 5. ScriptResolver • Path to Script built from ... • Defined Root ( /sling/scripts ) • Resource Type converted to path ( nt/file ) • Selector String ( print/a4) • Request Method & MIME Type – GET  ­­>  MIME Type ( html für text/html ) – else ­­> Method Name (POST, PUT, ...)    
  6. 6. ScriptResolver Example • URI: /content/page.print.a4.html • Resource: /content/page • Resource Type: sample:page • Script for GET: – /sling/scripts/sample/page/print/a4/html.* • Script for POST: – /sling/scripts/sample/page/print/a4/POST.*    
  7. 7. Facts • Sling API – No Reference to JCR API • Modular and Runtime Configurable – OSGi Framework • Two Flavors – microsling – simple, selfcontained, entry – Sling – OSGi Bundles, flexible, extensible    
  8. 8. microsling • Selfcontained Web Application • Deploy to favourite Servlet Container    
  9. 9. Sling • Two Deployments – Standalone, Executable JAR File – Web Application • Launches OSGi Framework    
  10. 10. Questions    
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×