net.sf.jportlet.util
Class WebResourceLoader

java.lang.Object
  |
  +--net.sf.jportlet.util.AbstractResourceLoader
        |
        +--net.sf.jportlet.util.WebResourceLoader
All Implemented Interfaces:
ResourceLoader

public class WebResourceLoader
extends AbstractResourceLoader

Implementation of ResourceLoader that retrieve resource from the web context

Author:
Herve Tchepannou

Constructor Summary
WebResourceLoader(java.lang.String basepath, javax.servlet.ServletContext servletContext)
           
 
Method Summary
 java.lang.String getBasepath()
           
 java.io.InputStream getInputStream(java.lang.String path)
           
 java.net.URL getURL(java.lang.String path)
           
 
Methods inherited from class net.sf.jportlet.util.AbstractResourceLoader
buildPath, getResource, getResourceAsStream, getResourceAsStream, getResourceAsStream, getResourcePath, getResourcePath, getResourcePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebResourceLoader

public WebResourceLoader(java.lang.String basepath,
                         javax.servlet.ServletContext servletContext)
Method Detail

getBasepath

public java.lang.String getBasepath()
Specified by:
getBasepath in class AbstractResourceLoader
Returns:
String
See Also:
AbstractResourceLoader.getBasepath()

getInputStream

public java.io.InputStream getInputStream(java.lang.String path)
Specified by:
getInputStream in class AbstractResourceLoader
See Also:
ResourceLoader.getResourceAsStream(String)

getURL

public java.net.URL getURL(java.lang.String path)
Specified by:
getURL in class AbstractResourceLoader
See Also:
AbstractResourceLoader.getURL(java.lang.String)


Copyright © 2002 Herve Tchepannou. All Rights Reserved.