public class SuperimposingResource
extends org.apache.sling.api.resource.AbstractResource
implements org.apache.sling.api.resource.Resource
SuperimposingResource is provided by SuperimposingResourceProviderImpl instances.
It delegates to an existing underlying resource but overrides the getPath() method to point to the superimposed path.| Constructor and Description |
|---|
SuperimposingResource(org.apache.sling.api.resource.Resource mappedResource,
String path) |
| Modifier and Type | Method and Description |
|---|---|
<AdapterType> |
adaptTo(Class<AdapterType> type) |
String |
getPath() |
org.apache.sling.api.resource.ResourceMetadata |
getResourceMetadata() |
org.apache.sling.api.resource.ResourceResolver |
getResourceResolver() |
String |
getResourceSuperType() |
String |
getResourceType() |
String |
toString() |
getChild, getName, getParent, isResourceType, listChildrensetAdapterManager, unsetAdapterManagerpublic SuperimposingResource(org.apache.sling.api.resource.Resource mappedResource,
String path)
mappedResource - Mapped resourcepath - Pathpublic String getPath()
getPath in interface org.apache.sling.api.resource.Resourcepublic String getResourceType()
getResourceType in interface org.apache.sling.api.resource.Resourcepublic String getResourceSuperType()
getResourceSuperType in interface org.apache.sling.api.resource.Resourcepublic org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
getResourceMetadata in interface org.apache.sling.api.resource.Resourcepublic org.apache.sling.api.resource.ResourceResolver getResourceResolver()
getResourceResolver in interface org.apache.sling.api.resource.Resourcepublic <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
adaptTo in interface org.apache.sling.api.adapter.AdaptableadaptTo in class org.apache.sling.api.adapter.SlingAdaptableCopyright © 2007–2014 The Apache Software Foundation. All rights reserved.