com.ibm.xsp.webapp.resources
Class AbstractResourceProvider
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractResourceProvider
public AbstractResourceProvider()
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