com.ibm.xsp.webapp.resources
Class AbstractResourceProvider

java.lang.Object
  extended by com.ibm.xsp.webapp.resources.AbstractResourceProvider
All Implemented Interfaces:
ResourceProvider
Direct Known Subclasses:
FileResourceProvider, JavaResourceProvider, PlatformResourceProvider, URLResourceProvider

public abstract class AbstractResourceProvider
extends java.lang.Object
implements ResourceProvider

Useful superclass for Resource providers


Nested Class Summary
protected  class AbstractResourceProvider.AbstractResource
           
protected  class AbstractResourceProvider.FileResource
           
 
Field Summary
static int GZIP_EXCLUDE
           
static int 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
AbstractResourceProvider()
           
 
Method Summary
protected  long getExpireTime()
           
static java.lang.String getMimeType(java.lang.String fileName)
          Returns the mimeType of a given file
protected  boolean isHttpCache()
           
protected  boolean shouldCacheResources()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.xsp.webapp.resources.ResourceProvider
getResource
 

Field Detail

MIN_GZIP_SIZE

public static final int MIN_GZIP_SIZE
See Also:
Constant Field Values

GZIP_EXCLUDE

public static final int GZIP_EXCLUDE
See Also:
Constant Field Values
Constructor Detail

AbstractResourceProvider

public AbstractResourceProvider()
Method Detail

getExpireTime

protected long getExpireTime()

isHttpCache

protected boolean isHttpCache()

shouldCacheResources

protected boolean shouldCacheResources()

getMimeType

public static java.lang.String getMimeType(java.lang.String fileName)
Returns the mimeType of a given file

Returns:
mimeType