Você está na página 1de 10

ApacheSling

FelixMeschberger
DayManagementAG
fmeschbe@apache.org

GeneralRequestProcessing
request
ResourceResolver
Resource(resourcetype)
ServletResolver

Servlet

Script

response

URIDecomposition
/content/page.print.a4.html
ResourcePath

Selectors

Extension

ServletResolution
RegisteredServlets
ResourceType

Scripts
ScriptResolver

DefaultServlet
Fallback/LastRessort

ScriptResolver
PathtoScriptbuiltfrom...
DefinedRoot(/sling/scripts)
ResourceTypeconvertedtopath(nt/file)
SelectorString(print/a4)
RequestMethod&MIMEType
GET>MIMEType(htmlfrtext/html)
else>MethodName(POST,PUT,...)

ScriptResolverExample
URI:/content/page.print.a4.html
Resource:/content/page
ResourceType:sample:page
ScriptforGET:
/sling/scripts/sample/page/print/a4/html.*

ScriptforPOST:

/sling/scripts/sample/page/print/a4/POST.*

Facts
SlingAPI
NoReferencetoJCRAPI

ModularandRuntimeConfigurable
OSGiFramework

TwoFlavors
microslingsimple,selfcontained,entry
SlingOSGiBundles,flexible,extensible

microsling
SelfcontainedWebApplication
DeploytofavouriteServletContainer

Sling
TwoDeployments
Standalone,ExecutableJARFile
WebApplication

LaunchesOSGiFramework

Questions

Você também pode gostar