com.ibm.xsp.webapp.resources
Class AbstractResourceProvider.FileResource

java.lang.Object
  extended by com.ibm.xsp.webapp.resources.AbstractResourceProvider.AbstractResource
      extended by com.ibm.xsp.webapp.resources.AbstractResourceProvider.FileResource
All Implemented Interfaces:
Resource
Direct Known Subclasses:
PlatformResourceProvider.PlatformResource
Enclosing class:
AbstractResourceProvider

protected class AbstractResourceProvider.FileResource
extends AbstractResourceProvider.AbstractResource


Field Summary
protected  java.io.File file
           
protected  java.io.File gzipFile
           
protected  int gzipLength
           
protected  boolean shouldGZip
           
 
Fields inherited from class com.ibm.xsp.webapp.resources.AbstractResourceProvider.AbstractResource
mimeType, resourceName
 
Constructor Summary
protected AbstractResourceProvider.FileResource(java.lang.String resourceName, java.io.File file)
           
 
Method Summary
 java.io.File getFile()
           
 java.io.File getGZipFile()
           
protected  long getLastModificationDate()
           
protected  void writeData(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class com.ibm.xsp.webapp.resources.AbstractResourceProvider.AbstractResource
getContentlength, getExpireTime, getResourcesExpireDate, isResourcesModifiedSince, shouldGZip, supportsGzip, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected java.io.File file

gzipFile

protected java.io.File gzipFile

gzipLength

protected int gzipLength

shouldGZip

protected boolean shouldGZip
Constructor Detail

AbstractResourceProvider.FileResource

protected AbstractResourceProvider.FileResource(java.lang.String resourceName,
                                                java.io.File file)
Method Detail

getFile

public java.io.File getFile()

getGZipFile

public java.io.File getGZipFile()

writeData

protected void writeData(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws java.io.IOException
Specified by:
writeData in class AbstractResourceProvider.AbstractResource
Throws:
java.io.IOException

getLastModificationDate

protected long getLastModificationDate()
Overrides:
getLastModificationDate in class AbstractResourceProvider.AbstractResource