| Modifier and Type | Method and Description | 
|---|---|
| Resource | SlingHttpServletRequest. getResource()Returns the  Resourceobject on whose behalf the servlet acts. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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  RequestDispatcherobject that acts as a wrapper
 for the resource located at the given resource. | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | RequestPathInfo. getSuffixResource()Returns the resource addressed by the suffix or null if the request does
 not have a suffix or the suffix does not address an accessible resource. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractResourceThe  AbstractResourceis an abstract implementation of theResourceinterface. | 
| class  | NonExistingResourceSimple helper class representing nonexisting resources. | 
| class  | ResourceWrapperThe  ResourceWrapperis a wrapper for anyResourcedelegating all method calls to the wrapped resource by default. | 
| class  | SyntheticResourceThe  SyntheticResourceclass is a simple implementation of theResourceinterface which may be used to provide a resource
 object which has no actual resource data. | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | ModifyingResourceProvider. create(ResourceResolver resolver,
      String path,
      Map<String,Object> properties)Create a new resource at the given path. | 
| Resource | ResourceResolver. create(Resource parent,
      String name,
      Map<String,Object> properties)Add a child resource to the given parent resource | 
| Resource | ResourceDecorator. decorate(Resource resource)Decorate a resource. | 
| Resource | ResourceDecorator. decorate(Resource resource,
        javax.servlet.http.HttpServletRequest request)Deprecated. 
 since 2.3.0 (and JCR Resource 2.1.0), this method will not be invoked. | 
| Resource | ResourceWrapper. getChild(String relPath)Returns the value of calling  getChildon thewrapped resource. | 
| Resource | Resource. getChild(String relPath)Returns the child at the given relative path of this resource or
  nullif no such child exists. | 
| Resource | AbstractResource. getChild(String relPath)Returns the indicated child of this resource. | 
| static Resource | ResourceUtil. getOrCreateResource(ResourceResolver resolver,
                   String path,
                   Map<String,Object> resourceProperties,
                   String intermediateResourceType,
                   boolean autoCommit)Creates or gets the resource at the given path. | 
| static Resource | ResourceUtil. getOrCreateResource(ResourceResolver resolver,
                   String path,
                   String resourceType,
                   String intermediateResourceType,
                   boolean autoCommit)Creates or gets the resource at the given path. | 
| Resource | ResourceWrapper. getParent()Returns the value of calling  getParenton thewrapped resource. | 
| Resource | Resource. getParent()Returns the parent resource or  nullif 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  Resourcewrapped by this instance. | 
| Resource | ResourceProvider. getResource(ResourceResolver resourceResolver,
           javax.servlet.http.HttpServletRequest request,
           String path)Deprecated. 
 since 2.2.0 (and JCR Resource 2.1.0), this method will not be invoked. | 
| Resource | ResourceProvider. getResource(ResourceResolver resourceResolver,
           String path)Returns a resource from this resource provider or  nullif
 the resource provider cannot find it. | 
| Resource | ResourceResolver. getResource(Resource base,
           String path)Returns a  Resourceobject for data located at the given path. | 
| Resource | ResourceResolver. getResource(String path)Returns a  Resourceobject 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,
       String absPath)Resolves the resource from the given  absPathoptionally
 takingHttpServletRequestinto account, such as the value of
 theHostrequest header. | 
| Resource | ResourceResolver. resolve(String absPath)Resolves the resource from the given absolute path. | 
| static Resource | ResourceUtil. unwrap(Resource rsrc)Unwrap the resource and return the wrapped implementation. | 
| Modifier and Type | Method and Description | 
|---|---|
| Iterator<Resource> | QueriableResourceProvider. findResources(ResourceResolver resolver,
             String query,
             String language)Searches for resources using the given query formulated in the given
 language. | 
| Iterator<Resource> | ResourceResolver. findResources(String query,
             String language)Searches for resources using the given query formulated in the given
 language. | 
| Iterable<Resource> | ResourceWrapper. getChildren() | 
| Iterable<Resource> | Resource. getChildren()Returns an iterable of the direct children of this resource. | 
| Iterable<Resource> | AbstractResource. getChildren() | 
| Iterable<Resource> | ResourceResolver. getChildren(Resource parent) | 
| Iterator<Resource> | ResourceWrapper. listChildren()Returns the value of calling  listChildrenon thewrapped resource. | 
| Iterator<Resource> | Resource. listChildren()Returns an iterator of the direct children of this resource. | 
| Iterator<Resource> | AbstractResource. listChildren()Returns an iterator on the direct child resources. | 
| static Iterator<Resource> | ResourceUtil. listChildren(Resource parent)Deprecated. 
 since 2.1.0, use  listChildren()instead | 
| Iterator<Resource> | ResourceResolver. listChildren(Resource parent) | 
| Iterator<Resource> | ResourceProvider. listChildren(Resource parent) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | AbstractResourceVisitor. accept(Resource res)Visit the given resource and all its descendants. | 
| Resource | ResourceResolver. create(Resource parent,
      String name,
      Map<String,Object> properties)Add a child resource to the given parent resource | 
| static String | ResourceUtil. createUniqueChildName(Resource parent,
                     String name)Create a unique name for a child of the  parent. | 
| Resource | ResourceDecorator. decorate(Resource resource)Decorate a resource. | 
| Resource | ResourceDecorator. decorate(Resource resource,
        javax.servlet.http.HttpServletRequest request)Deprecated. 
 since 2.3.0 (and JCR Resource 2.1.0), this method will not be invoked. | 
| void | ResourceUtil.BatchResourceRemover. delete(Resource rsrc) | 
| void | ResourceResolver. delete(Resource resource)Delete the resource
 Deleting a non existing resource leads to no operation nor exception. | 
| static String | ResourceUtil. findResourceSuperType(Resource resource)Deprecated. 
 | 
| Iterable<Resource> | ResourceResolver. getChildren(Resource parent) | 
| static 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 | 
| String | ResourceResolver. getParentResourceType(Resource resource)Returns the super type of the given resource. | 
| Resource | ResourceResolver. getResource(Resource base,
           String path)Returns a  Resourceobject for data located at the given path. | 
| static ValueMap | ResourceUtil. getValueMap(Resource res)Deprecated. 
 Use  getValueMap(). | 
| boolean | ResourceResolver. hasChildren(Resource resource)Checks if the specified resource has any direct child resources. | 
| static boolean | ResourceUtil. isA(Resource resource,
   String resourceType)Deprecated. 
 | 
| static boolean | ResourceUtil. isNonExistingResource(Resource res)Returns  trueif the resourceresis a
 non-existing resource. | 
| boolean | ResourceResolver. isResourceType(Resource resource,
              String resourceType)Returns  trueif the resource type or any of the resource's
 super type(s) equals the given resource type. | 
| static boolean | ResourceUtil. isStarResource(Resource res)Returns  trueif the resourceresis a "star
 resource". | 
| static boolean | ResourceUtil. isSyntheticResource(Resource res)Returns  trueif the resourceresis a synthetic
 resource. | 
| static Iterator<Resource> | ResourceUtil. listChildren(Resource parent)Deprecated. 
 since 2.1.0, use  listChildren()instead | 
| Iterator<Resource> | ResourceResolver. listChildren(Resource parent) | 
| Iterator<Resource> | ResourceProvider. listChildren(Resource parent) | 
| static Resource | ResourceUtil. unwrap(Resource rsrc)Unwrap the resource and return the wrapped implementation. | 
| protected abstract void | AbstractResourceVisitor. visit(Resource res)Implement this method to do actual work on the resources. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> Iterator<T> | ResourceUtil. adaptTo(Iterator<Resource> iterator,
       Class<T> type)Return an iterator for objects of the specified type. | 
| protected void | AbstractResourceVisitor. traverseChildren(Iterator<Resource> children)Visit the given resources. | 
| Constructor and Description | 
|---|
| ResourceWrapper(Resource resource)Creates a new wrapper instance delegating all method calls to the given
  resource. | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | SlingBindings. getResource() | 
| Resource | SlingScript. getScriptResource()Returns the Resource providing the script source code. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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
  resourceandoptions. | 
| void | SlingScriptHelper. forward(Resource resource,
       String requestDispatcherOptions)Helper method to forward the request to a Servlet or script for the given
  resourceandrequestDispatcherOptions. | 
| 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  resourceandoptions. | 
| void | SlingScriptHelper. include(Resource resource,
       String requestDispatcherOptions)Helper method to include the result of processing the request for the
 given  resourceandrequestDispatcherOptions. | 
| void | SlingBindings. setResource(Resource resource) | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | ResourceAccessSecurity. getReadableResource(Resource resource)If supplied Resource can be read, return it (or a wrapped
  variant of it). | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | ResourceAccessSecurity. canDelete(Resource resource) | 
| boolean | ResourceAccessSecurity. canDeleteValue(Resource resource,
              String valueName) | 
| boolean | ResourceAccessSecurity. canExecute(Resource resource) | 
| boolean | ResourceAccessSecurity. canReadValue(Resource resource,
            String valueName) | 
| boolean | ResourceAccessSecurity. canSetValue(Resource resource,
           String valueName) | 
| boolean | ResourceAccessSecurity. canUpdate(Resource resource) | 
| Resource | ResourceAccessSecurity. getReadableResource(Resource resource)If supplied Resource can be read, return it (or a wrapped
  variant of it). | 
| Modifier and Type | Method and Description | 
|---|---|
| javax.servlet.Servlet | ServletResolver. resolveServlet(Resource resource,
              String scriptName)Resolves a  javax.servlet.Servletwhoseservicemethod may be used to handle a request. | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | SlingHttpServletRequestWrapper. getResource() | 
| Modifier and Type | Method and Description | 
|---|---|
| javax.servlet.RequestDispatcher | SlingHttpServletRequestWrapper. getRequestDispatcher(Resource resource) | 
| javax.servlet.RequestDispatcher | SlingHttpServletRequestWrapper. getRequestDispatcher(Resource resource,
                    RequestDispatcherOptions options) | 
| Constructor and Description | 
|---|
| DeepReadModifiableValueMapDecorator(Resource resource,
                                   ValueMap base) | 
| DeepReadValueMapDecorator(Resource resource,
                         ValueMap base) | 
| Modifier and Type | Field and Description | 
|---|---|
| Resource | ResourceTraversor.Entry. resource | 
| Modifier and Type | Method and Description | 
|---|---|
| static JSONObject | JsonObjectCreator. create(Resource resource,
      int maxRecursionLevels)Dump given resource in JSON, optionally recursing into its objects | 
| Constructor and Description | 
|---|
| Entry(Resource r,
     JSONObject o) | 
| ResourceTraversor(int levels,
                 long maxResources,
                 Resource resource,
                 boolean tidy) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DeleteAuthorizables. deleteAuthorizables(javax.jcr.Session jcrSession,
                   Resource baseResource,
                   String[] paths,
                   List<Modification> changes)Deletes one or more users or groups from the repository | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | JcrResourceUtil. getResourceSuperType(Resource resource)Deprecated. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ScriptHelper. forward(Resource resource) | 
| void | ScriptHelper. forward(Resource resource,
       RequestDispatcherOptions options) | 
| void | ScriptHelper. forward(Resource resource,
       String options) | 
| void | ScriptHelper. include(Resource resource) | 
| void | ScriptHelper. include(Resource resource,
       RequestDispatcherOptions options) | 
| void | ScriptHelper. include(Resource resource,
       String options) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ScriptableResource. setResource(Resource entry) | 
| Constructor and Description | 
|---|
| ScriptableResource(Resource resource) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Iterator<Resource> | AbstractPostOperation. getApplyToResources(SlingHttpServletRequest request)Returns an iterator on  Resourceinstances addressed in theSlingPostConstants.RP_APPLY_TOrequest parameter. | 
Copyright © 2014 The Apache Software Foundation. All rights reserved.