|
||||||||||
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.servlets | |
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 |
AbstractResource
The AbstractResource is an abstract implementation of the
Resource interface. |
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 | |
---|---|
Resource |
ResourceDecorator.decorate(Resource resource)
Decorate a resource. |
Resource |
ResourceDecorator.decorate(Resource resource,
javax.servlet.http.HttpServletRequest request)
Decorate a resource. |
Resource |
ResourceWrapper.getChild(java.lang.String relPath)
Returns the value of calling getChild on the
wrapped resource . |
Resource |
Resource.getChild(java.lang.String relPath)
Returns the child at the given relative path of this resource or null if no such child exists. |
Resource |
AbstractResource.getChild(java.lang.String relPath)
Returns the indicated child of this resource. |
Resource |
ResourceWrapper.getParent()
Returns the value of calling getParent on the
wrapped resource . |
Resource |
Resource.getParent()
Returns the parent resource or null if this resource
represents the root of the resource tree. |
Resource |
AbstractResource.getParent()
Returns the parent resource of this resource. |
static Resource |
ResourceUtil.getParent(Resource rsrc)
Deprecated. since 2.1.0, use getParent() instead |
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. |
java.util.Iterator<Resource> |
ResourceWrapper.listChildren()
Returns the value of calling listChildren on the
wrapped resource . |
java.util.Iterator<Resource> |
Resource.listChildren()
Returns an iterator of the direct children of this resource. |
java.util.Iterator<Resource> |
AbstractResource.listChildren()
Returns an iterator on the direct child resources. |
static java.util.Iterator<Resource> |
ResourceUtil.listChildren(Resource parent)
Deprecated. since 2.1.0, use listChildren() instead |
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 | |
---|---|
Resource |
ResourceDecorator.decorate(Resource resource)
Decorate a resource. |
Resource |
ResourceDecorator.decorate(Resource resource,
javax.servlet.http.HttpServletRequest request)
Decorate a 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)
Deprecated. since 2.1.0, use getName() instead |
static Resource |
ResourceUtil.getParent(Resource rsrc)
Deprecated. since 2.1.0, use getParent() instead |
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)
Deprecated. since 2.1.0, use listChildren() instead |
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)
Return an iterator for objecs of the specified 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 |
SlingScriptHelper.forward(Resource resource)
Same as SlingScriptHelper.forward(Resource,RequestDispatcherOptions) , but using
empty options. |
void |
SlingScriptHelper.forward(Resource resource,
RequestDispatcherOptions options)
Helper method to forward the request to a Servlet or script for the given resource and options . |
void |
SlingScriptHelper.forward(Resource resource,
java.lang.String requestDispatcherOptions)
Helper method to forward the request to a Servlet or script for the given resource and requestDispatcherOptions . |
void |
SlingScriptHelper.include(Resource resource)
Same as SlingScriptHelper.include(Resource,RequestDispatcherOptions) , but using
empty options. |
void |
SlingScriptHelper.include(Resource resource,
RequestDispatcherOptions options)
Helper method to include the result of processing the request for the given resource and options . |
void |
SlingScriptHelper.include(Resource resource,
java.lang.String requestDispatcherOptions)
Helper method to include the result of processing the request for the given resource and requestDispatcherOptions . |
void |
SlingBindings.setResource(Resource resource)
Sets the SlingBindings.RESOURCE property to resource if not
null . |
Uses of Resource in org.apache.sling.api.servlets |
---|
Methods in org.apache.sling.api.servlets with parameters of type Resource | |
---|---|
javax.servlet.Servlet |
ServletResolver.resolveServlet(Resource resource,
java.lang.String scriptName)
Resolves a javax.servlet.Servlet whose
service method may be used to handle a request. |
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 |