Save This Page
Home » org.apache.sling.launchpad.base-2.2.0-source-release » org.apache.sling.launchpad.base.impl » [javadoc | source]
org.apache.sling.launchpad.base.impl
abstract public class: ResourceProvider [javadoc | source]
java.lang.Object
   org.apache.sling.launchpad.base.impl.ResourceProvider

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 org.apache.sling.launchpad.base.impl.ResourceProvider Summary:
getChildren,   getResource,   getResourceAsStream
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.sling.launchpad.base.impl.ResourceProvider 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.