Save This Page
Home » » » [javadoc | source]
abstract public class: ResourceProvider [javadoc | source]

Direct Known Subclasses:
    ServletContextResourceProvider, ClassLoaderResourceProvider

The ResourceProvider defines a simple API to access resources from the environment depending on how Sling is launched.
Method from Summary:
getChildren,   getResource,   getResourceAsStream
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from Detail:
 abstract public Iterator<String> getChildren(String path)
    Returns an iterator of paths strings of the children of the given folder defined by its path.
 abstract public URL getResource(String path)
    Returns an URL to the resource with the given path or null if no such resource exists.
 public InputStream getResourceAsStream(String path) 
    Returns an InputStream to the resource given by the path or null if no such resource exists.