Mudanças entre as edições de "Request Resolution in Adobe AEM"
De Basef
Linha 1: | Linha 1: | ||
+ | Before trying to understand request resolution, take a look at URL decomposition to see how the URL is decomposed. | ||
− | + | The process looks like this: | |
+ | |||
+ | a) URL Decomposition | ||
+ | |||
+ | b) The `'''path'''` component of the URL is matched against a node in `'''content'''` folder | ||
+ | |||
+ | c) If the node is found, it uses one of the following properties to try to locate the resource: | ||
+ | |||
+ | `sling:resourceType` | ||
+ | `sling:resourceSuperType` | ||
+ | `jcr:primaryType` | ||
+ | |||
+ | d) Using the value of one of the above properties, it tries to locate this resource under one of these folders: | ||
+ | |||
+ | `apps` | ||
+ | `libs` | ||
+ | |||
+ | |||
+ | '''Example:''' | ||
http://myhost/content/corporate/jobs/developer.html | http://myhost/content/corporate/jobs/developer.html | ||
− | Notice how the resolutions starts at `content` folder, then uses a file in `apps` folder by `sling:resourceType` reference: | + | Notice how the resolutions starts at `'''content'''` folder, then uses a file in `'''apps'''` folder by `'''sling:resourceType'''` reference: |
[[Arquivo:request-resolution-1.png|500px]] | [[Arquivo:request-resolution-1.png|500px]] | ||
+ | |||
+ | |||
[[Category: Adobe AEM]] | [[Category: Adobe AEM]] |
Edição das 09h48min de 23 de maio de 2018
Before trying to understand request resolution, take a look at URL decomposition to see how the URL is decomposed.
The process looks like this:
a) URL Decomposition
b) The `path` component of the URL is matched against a node in `content` folder
c) If the node is found, it uses one of the following properties to try to locate the resource:
`sling:resourceType` `sling:resourceSuperType` `jcr:primaryType`
d) Using the value of one of the above properties, it tries to locate this resource under one of these folders:
`apps` `libs`
Example:
http://myhost/content/corporate/jobs/developer.html
Notice how the resolutions starts at `content` folder, then uses a file in `apps` folder by `sling:resourceType` reference: