com.ibm.xsp.webapp.resources
Class JavaResourceProvider

java.lang.Object
  extended by com.ibm.xsp.webapp.resources.AbstractResourceProvider
      extended by 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.


Nested Class Summary
protected  class JavaResourceProvider.JavaResource
           
 
Nested classes/interfaces inherited from class com.ibm.xsp.webapp.resources.AbstractResourceProvider
AbstractResourceProvider.AbstractResource, AbstractResourceProvider.FileResource
 
Field Summary
 
Fields inherited from class com.ibm.xsp.webapp.resources.AbstractResourceProvider
GZIP_EXCLUDE, MIN_GZIP_SIZE
 
Fields inherited from interface com.ibm.xsp.webapp.resources.ResourceProvider
DEFAULT_ENCODING, DEFAULT_GLOBAL_EXPIRES, DEFAULT_MODULE_EXPIRES, EXPIRES, IF_MODIFIED_SINCE, LAST_MODIFIED, PARAM_CACHE
 
Constructor Summary
JavaResourceProvider(java.lang.String prefix)
          Constructor
 
Method Summary
 JavaResourceProvider.JavaResource addResource(java.lang.String resourceName, java.lang.String fileName)
          Constructor
protected  long getExpireTime()
           
 Resource getResource(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          Return the resource object
protected  java.lang.String getResourcePath(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          Not implemented
protected  java.lang.ClassLoader getResourcesClassLoader()
           
 
Methods inherited from class com.ibm.xsp.webapp.resources.AbstractResourceProvider
getMimeType, isHttpCache, shouldCacheResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaResourceProvider

public JavaResourceProvider(java.lang.String prefix)
Constructor

Parameters:
prefix - prefix for this resource provider to be identified
Method Detail

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 added
fileName - 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 resource
name - name of the resource

getResourcePath

protected java.lang.String getResourcePath(javax.servlet.http.HttpServletRequest request,
                                           java.lang.String name)
Not implemented

Returns:
null