View SlingModelExporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Model( | |
adaptables = Resource.class, | |
resourceType = "acme/components/sling-model" | |
) | |
@Exporter(name = "jackson", extensions = "json") | |
public class MyModel { | |
@Inject @Named("jcr:title") | |
private String title; |
View CORSFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.mickleroy.models; | |
import org.apache.felix.scr.annotations.sling.SlingFilter; | |
import org.apache.felix.scr.annotations.sling.SlingFilterScope; | |
import org.apache.sling.api.SlingHttpServletResponse; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.servlet.*; | |
import java.io.IOException; |
View we-retail-etc-map-http.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jcr:primaryType": "sling:Folder", | |
"weretail.com": { | |
"jcr:primaryType": "sling:Mapping", | |
"sling:internalRedirect": [ | |
"/content/we-retail/us/en" | |
], | |
"weretail_com_content": { | |
"jcr:primaryType": "sling:Mapping", |
View com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformerFactory.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
jcr:primaryType="sling:OsgiConfig" | |
linkcheckertransformer.strictExtensionCheck="{Boolean}false" | |
linkcheckertransformer.rewriteElements="[a:href,area:href,form:action]" | |
linkcheckertransformer.disableRewriting="{Boolean}false" | |
linkcheckertransformer.disableChecking="{Boolean}false" | |
linkcheckertransformer.stripHtmltExtension="{Boolean}true" | |
linkcheckertransformer.mapCacheSize="{Long}5000"/> |
View org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
jcr:primaryType="sling:OsgiConfig" | |
resource.resolver.searchpath="[/apps,/libs,/apps/foundation/components/primary,/libs/foundation/components/primary]" | |
resource.resolver.manglenamespaces="{Boolean}true" | |
resource.resolver.allowDirect="{Boolean}true" | |
resource.resolver.required.providers="[org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory]" | |
resource.resolver.virtual="[/:/]" | |
resource.resolver.mapping="[/-/,/content/we-retail/us/en/-/]" | |
resource.resolver.map.location="/etc/map" |