org.spicefactory.cinnamon.config.resource
Class WebAppResource
java.lang.Object
org.spicefactory.cinnamon.config.resource.AbstractResource
org.spicefactory.cinnamon.config.resource.WebAppResource
- All Implemented Interfaces:
- Resource
public class WebAppResource
- extends AbstractResource
Resource implementation that uses the ServletContext of a web application to load the resource.
- Author:
- Jens Halm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebAppResource
public WebAppResource(String path,
ServletContext context)
- Creates a new web application resource for the given path and ServletContext.
- Parameters:
path - the path of the resourcecontext - the ServletContext to be used for loading the resource
getInputStream
public InputStream getInputStream()
- Description copied from interface:
Resource
- Creates an InputStream for this Resource.
- Returns:
- an InputStream for this Resource