|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Resource | |
---|---|
org.apache.sling.api | |
org.apache.sling.api.resource | |
org.apache.sling.api.scripting | |
org.apache.sling.api.wrappers |
Uses of Resource in org.apache.sling.api |
---|
Methods in org.apache.sling.api that return Resource | |
---|---|
Resource |
SlingHttpServletRequest.getResource()
Returns the Resource object on whose behalf the servlet acts. |
Methods in org.apache.sling.api with parameters of type Resource | |
---|---|
javax.servlet.RequestDispatcher |
SlingHttpServletRequest.getRequestDispatcher(Resource resource)
Same as SlingHttpServletRequest.getRequestDispatcher(Resource,RequestDispatcherOptions)
but using empty options. |
javax.servlet.RequestDispatcher |
SlingHttpServletRequest.getRequestDispatcher(Resource resource,
RequestDispatcherOptions options)
Returns a RequestDispatcher object that acts as a wrapper
for the resource located at the given resource. |
Uses of Resource in org.apache.sling.api.resource |
---|
Classes in org.apache.sling.api.resource that implement Resource | |
---|---|
class |
NonExistingResource
Simple helper class representing nonexisting resources. |
class |
ResourceWrapper
The ResourceWrapper is a wrapper for any Resource
delegating all method calls to the wrapped resource by default. |
class |
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. |
Methods in org.apache.sling.api.resource that return Resource | |
---|---|
static Resource |
ResourceUtil.getParent(Resource rsrc)
Utility method returns the parent resource of the resource. |
Resource |
ResourceWrapper.getResource()
Returns the Resource wrapped by this instance. |
Resource |
ResourceProvider.getResource(ResourceResolver resourceResolver,
javax.servlet.http.HttpServletRequest request,
java.lang.String path)
Returns a resource from this resource provider or null if
the resource provider cannot find it. |
Resource |
ResourceProvider.getResource(ResourceResolver resourceResolver,
java.lang.String path)
Returns a resource from this resource provider or null if
the resource provider cannot find it. |
Resource |
ResourceResolver.getResource(Resource base,
java.lang.String path)
Returns a Resource object for data located at the given path. |
Resource |
ResourceResolver.getResource(java.lang.String path)
Returns a Resource object for data located at the given path. |
Resource |
ResourceResolver.resolve(javax.servlet.http.HttpServletRequest request)
Deprecated. as of 2.0.4, use ResourceResolver.resolve(HttpServletRequest, String)
instead. |
Resource |
ResourceResolver.resolve(javax.servlet.http.HttpServletRequest request,
java.lang.String absPath)
Resolves the resource from the given absPath optionally
taking HttpServletRequest into account, such as the value of
the Host request header. |
Resource |
ResourceResolver.resolve(java.lang.String absPath)
Resolves the resource from the given absolute path. |
Methods in org.apache.sling.api.resource that return types with arguments of type Resource | |
---|---|
java.util.Iterator<Resource> |
ResourceResolver.findResources(java.lang.String query,
java.lang.String language)
Searches for resources using the given query formulated in the given language. |
static java.util.Iterator<Resource> |
ResourceUtil.listChildren(Resource parent)
Returns an Iterator of Resource objects loaded
from the children of the given Resource . |
java.util.Iterator<Resource> |
ResourceResolver.listChildren(Resource parent)
Returns an Iterator of Resource objects loaded from
the children of the given Resource . |
java.util.Iterator<Resource> |
ResourceProvider.listChildren(Resource parent)
Returns an Iterator of Resource objects loaded
from the children of the given Resource . |
Methods in org.apache.sling.api.resource with parameters of type Resource | |
---|---|
static java.lang.String |
ResourceUtil.findResourceSuperType(Resource resource)
Returns the super type of the given resource. |
static java.lang.String |
ResourceUtil.getName(Resource rsrc)
Utility method returns the parent resource of the resource. |
static Resource |
ResourceUtil.getParent(Resource rsrc)
Utility method returns the parent resource of the resource. |
Resource |
ResourceResolver.getResource(Resource base,
java.lang.String path)
Returns a Resource object for data located at the given path. |
static ValueMap |
ResourceUtil.getValueMap(Resource res)
Returns an ValueMap object for the given
Resource . |
static boolean |
ResourceUtil.isA(Resource resource,
java.lang.String resourceType)
Check if the resource is of the given type. |
static boolean |
ResourceUtil.isNonExistingResource(Resource res)
Returns true if the resource res is a
non-existing resource. |
static boolean |
ResourceUtil.isStarResource(Resource res)
Returns true if the resource res is a "star
resource". |
static boolean |
ResourceUtil.isSyntheticResource(Resource res)
Returns true if the resource res is a
synthetic resource. |
static java.util.Iterator<Resource> |
ResourceUtil.listChildren(Resource parent)
Returns an Iterator of Resource objects loaded
from the children of the given Resource . |
java.util.Iterator<Resource> |
ResourceResolver.listChildren(Resource parent)
Returns an Iterator of Resource objects loaded from
the children of the given Resource . |
java.util.Iterator<Resource> |
ResourceProvider.listChildren(Resource parent)
Returns an Iterator of Resource objects loaded
from the children of the given Resource . |
Method parameters in org.apache.sling.api.resource with type arguments of type Resource | ||
---|---|---|
static
|
ResourceUtil.adaptTo(java.util.Iterator<Resource> iterator,
java.lang.Class<T> type)
|
Constructors in org.apache.sling.api.resource with parameters of type Resource | |
---|---|
ResourceWrapper(Resource resource)
Creates a new wrapper instance delegating all method calls to the given resource . |
Uses of Resource in org.apache.sling.api.scripting |
---|
Methods in org.apache.sling.api.scripting that return Resource | |
---|---|
Resource |
SlingBindings.getResource()
Returns the SlingBindings.RESOURCE property if not null and a
Resource instance. |
Resource |
SlingScript.getScriptResource()
Returns the Resource providing the script source code. |
Methods in org.apache.sling.api.scripting with parameters of type Resource | |
---|---|
void |
SlingBindings.setResource(Resource resource)
Sets the SlingBindings.RESOURCE property to resource if not
null . |
Uses of Resource in org.apache.sling.api.wrappers |
---|
Methods in org.apache.sling.api.wrappers that return Resource | |
---|---|
Resource |
SlingHttpServletRequestWrapper.getResource()
|
Methods in org.apache.sling.api.wrappers with parameters of type Resource | |
---|---|
javax.servlet.RequestDispatcher |
SlingHttpServletRequestWrapper.getRequestDispatcher(Resource resource)
|
javax.servlet.RequestDispatcher |
SlingHttpServletRequestWrapper.getRequestDispatcher(Resource resource,
RequestDispatcherOptions options)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |