com.ibm.xsp.webapp.resources
Class PlatformResourceProvider

java.lang.Object
  extended by com.ibm.xsp.webapp.resources.AbstractResourceProvider
      extended by com.ibm.xsp.webapp.resources.PlatformResourceProvider
All Implemented Interfaces:
ResourceProvider

public class PlatformResourceProvider
extends AbstractResourceProvider

Global resource provider that is looking for files into a particular directory.


Nested Class Summary
protected  class PlatformResourceProvider.PlatformResource
           
 
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
PlatformResourceProvider(java.lang.String prefix, java.lang.String subDir)
          Constructor
 
Method Summary
protected  long getExpireTime()
           
 Resource getResource(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          Return the resource object
 
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

PlatformResourceProvider

public PlatformResourceProvider(java.lang.String prefix,
                                java.lang.String subDir)
Constructor

Parameters:
prefix - prefix for this resource provider to be identified
subDir - sub directory where resources are located
Method Detail

getExpireTime

protected long getExpireTime()
Overrides:
getExpireTime in class AbstractResourceProvider

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