com.ibm.xsp.webapp.resources
Class JavaResourceProvider
java.lang.Object
com.ibm.xsp.webapp.resources.AbstractResourceProvider
com.ibm.xsp.webapp.resources.JavaResourceProvider
- All Implemented Interfaces:
- ResourceProvider
public class JavaResourceProvider
- extends AbstractResourceProvider
Java resource provider.
Loads a resource from the Java class path.
Fields inherited from class com.ibm.xsp.webapp.resources.AbstractResourceProvider |
BMP_FILE_EXT, BMP_MIME_TYPE, CSS_FILE_EXT, CSS_MIME_TYPE, GIF_FILE_EXT, GIF_MIME_TYPE, GZIP_EXCLUDE, JPEG_FILE_EXT, JPEG_MIME_TYPE, JPG_FILE_EXT, JS_FILE_EXT, JS_MIME_TYPE, MIN_GZIP_SIZE, PNG_FILE_EXT, PNG_MIME_TYPE, TXT_FILE_EXT, TXT_MIME_TYPE, XBL_FILE_EXT, XBL_MIME_TYPE, XUL_FILE_EXT, XUL_MIME_TYPE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaResourceProvider
public JavaResourceProvider(java.lang.String prefix)
- Constructor
- Parameters:
prefix
- prefix for this resource provider to be identified
getResourcesClassLoader
protected java.lang.ClassLoader getResourcesClassLoader()
getExpireTime
protected long getExpireTime()
- Overrides:
getExpireTime
in class AbstractResourceProvider
addResource
public JavaResourceProvider.JavaResource addResource(java.lang.String resourceName,
java.lang.String fileName)
- Constructor
- Parameters:
resourceName
- resource name to be addedfileName
- the actual file name
getResource
public Resource getResource(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
- Description copied from interface:
ResourceProvider
- Return the resource object
- Parameters:
request
- request that is looking for resourcename
- name of the resource
getResourcePath
protected java.lang.String getResourcePath(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
- Not implemented
- Returns:
- null