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, listChildren
setAdapterManager, unsetAdapterManager
public SuperimposingResource(org.apache.sling.api.resource.Resource mappedResource, String path)
mappedResource
- Mapped resourcepath
- Pathpublic String getPath()
getPath
in interface org.apache.sling.api.resource.Resource
public String getResourceType()
getResourceType
in interface org.apache.sling.api.resource.Resource
public String getResourceSuperType()
getResourceSuperType
in interface org.apache.sling.api.resource.Resource
public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
getResourceMetadata
in interface org.apache.sling.api.resource.Resource
public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
getResourceResolver
in interface org.apache.sling.api.resource.Resource
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
adaptTo
in interface org.apache.sling.api.adapter.Adaptable
adaptTo
in class org.apache.sling.api.adapter.SlingAdaptable
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.