# Package org.apache.sling.api.resource

@Version("2.14.0") package org.apache.sling.api.resource

Related Packages
Package
Description
org.apache.sling.api
org.apache.sling.api.resource.external
org.apache.sling.api.resource.mapping
org.apache.sling.api.resource.observation
org.apache.sling.api.resource.path
org.apache.sling.api.resource.runtime
Class
Description
AbstractResource
The `AbstractResource` is an abstract implementation of the `Resource` interface.
AbstractResourceVisitor
This visitor will traverse the given resource and all its children in a depth-first approach and call the `AbstractResourceVisitor.visit(Resource)` method for each visited resource.
AttributableResourceProvider
Deprecated.
Use the `ResourceProvider`
DynamicResourceProvider
Deprecated.
Use the `ResourceProvider`
LoginException
Exception thrown by ``ResourceResolverFactory.getAdministrativeResourceResolver(java.util.Map)`` , ``ResourceResolverFactory.getResourceResolver(java.util.Map)`` , and ``ResourceResolver.clone(java.util.Map)`` if a resource resolver cannot be created because the credential data is not valid.
ModifiableValueMap
The `ModifiableValueMap` is an extension of the `ValueMap` which allows to modify and persist properties.
ModifyingResourceProvider
Deprecated.
Use the `ResourceProvider`
NonExistingResource
Simple helper class representing nonexisting resources.
ParametrizableResourceProvider
Deprecated.
Use the `ResourceProvider`
PersistableValueMap
Deprecated.
Use the `ModifiableValueMap` instead.
PersistenceException
This exception will be thrown during the commit to persist changes to a `PersistableValueMap`, a `ModifiableValueMap` or the `ResourceResolver`.
QueriableResourceProvider
Deprecated.
Use the `ResourceProvider`
QuerySyntaxException
The `QuerySyntaxException` is thrown by the `ResourceResolver.findResources(String, String)` and `ResourceResolver.queryResources(String, String)` methods if the query syntax is wrong or the requested query language is not available.
RefreshableResourceProvider
Deprecated.
Use the `ResourceProvider`
Resource
Resources are pieces of content on which Sling acts
ResourceDecorator
Optional service to decorate `Resource`s returned by the `ResourceResolver`.
ResourceMetadata
The `ResourceMetadata` interface defines the API for the metadata of a Sling `Resource`.
ResourceNotFoundException
An Exception that causes Sling to return a 404 (NOT FOUND) status code.
ResourceProvider
Deprecated.
Use the `ResourceProvider`
ResourceProviderFactory
Deprecated.
ResourceResolver
The `ResourceResolver` defines the API which may be used to resolve `Resource` objects and work with such resources like creating, editing or updating them.
ResourceResolverFactory
The `ResourceResolverFactory` defines the service API to get and create `ResourceResolver`s.
ResourceUtil
The `ResourceUtil` class provides helper methods dealing with resources.
ResourceUtil.BatchResourceRemover
A batch resource remover deletes resources in batches.
ResourceWrapper
The `ResourceWrapper` is a wrapper for any `Resource` delegating all method calls to the wrapped resource by default.
SyntheticResource
The `SyntheticResource` class is a simple implementation of the `Resource` interface which may be used to provide a resource object which has no actual resource data (except for the mandatory property "sling:resourceType").
ValueMap
The `ValueMap` is an easy way to access properties of a resource.