Rev 1248 | Rev 1250 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package ak.photoalbum.webapp;
import java.io.InputStream;
import javax.servlet.ServletContext;
import ak.photoalbum.logic.ResourceFactory;
public class ServletResourceFactory
implements ResourceFactory
{
private ServletContext servletContext;
public ServletResourceFactory(ServletContext servletContext)
{
this.servletContext = servletContext;
}
public InputStream getAsStream(String path)
{
return servletContext.getResourceAsStream("/" + path);
}
}