Class AbstractResource

java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
All Implemented Interfaces:
Adaptable, Resource
Direct Known Subclasses:
BaseResource, ContentFileResource, FileResource, ServletResource, SyntheticResource

public abstract class AbstractResource extends SlingAdaptable implements Resource
The AbstractResource is an abstract implementation of the Resource interface.

Implementations of the Resource interface are strongly encouraged to either extend from this class or the ResourceWrapper class instead of implementing the Resource from the ground up. This will ensure to always be able to support new methods that might be introduced in the Resource interface in the future.

Since:
2.1.0 (Sling API Bundle 2.1.0)