org.apache.sling.bundleresource.impl
Class BundleResource
java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
org.apache.sling.bundleresource.impl.BundleResource
- All Implemented Interfaces:
- org.apache.sling.api.adapter.Adaptable, org.apache.sling.api.resource.Resource
public class BundleResource
- extends org.apache.sling.api.resource.AbstractResource
- implements org.apache.sling.api.resource.Resource
A Resource that wraps a Bundle entry
| Fields inherited from interface org.apache.sling.api.resource.Resource |
RESOURCE_TYPE_NON_EXISTING |
|
Constructor Summary |
BundleResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
org.apache.sling.bundleresource.impl.BundleResourceCache bundle,
org.apache.sling.bundleresource.impl.MappedPath mappedPath,
String resourcePath)
|
| Methods inherited from class org.apache.sling.api.resource.AbstractResource |
getChild, getChildren, getName, getParent, isResourceType |
| Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable |
setAdapterManager, unsetAdapterManager |
| Methods inherited from interface org.apache.sling.api.resource.Resource |
getChild, getChildren, getName, getParent, isResourceType |
BundleResource
public BundleResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
org.apache.sling.bundleresource.impl.BundleResourceCache bundle,
org.apache.sling.bundleresource.impl.MappedPath mappedPath,
String resourcePath)
getResource
public static BundleResource getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
org.apache.sling.bundleresource.impl.BundleResourceCache bundle,
org.apache.sling.bundleresource.impl.MappedPath mappedPath,
String resourcePath)
getPath
public String getPath()
- Specified by:
getPath in interface org.apache.sling.api.resource.Resource
getResourceType
public String getResourceType()
- Specified by:
getResourceType in interface org.apache.sling.api.resource.Resource
getResourceSuperType
public String getResourceSuperType()
- Returns
null, bundle resources have no super type
- Specified by:
getResourceSuperType in interface org.apache.sling.api.resource.Resource
getResourceMetadata
public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
- Specified by:
getResourceMetadata in interface org.apache.sling.api.resource.Resource
getResourceResolver
public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
- Specified by:
getResourceResolver in interface org.apache.sling.api.resource.Resource
adaptTo
public <Type> Type adaptTo(Class<Type> type)
- Specified by:
adaptTo in interface org.apache.sling.api.adapter.Adaptable- Overrides:
adaptTo in class org.apache.sling.api.adapter.SlingAdaptable
toString
public String toString()
- Overrides:
toString in class Object
listChildren
public Iterator<org.apache.sling.api.resource.Resource> listChildren()
- Specified by:
listChildren in interface org.apache.sling.api.resource.Resource- Overrides:
listChildren in class org.apache.sling.api.resource.AbstractResource
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.