com.caucho.jsp
Class StaticPage

java.lang.Object
  extended by com.caucho.jsp.Page
      extended by com.caucho.jsp.StaticPage
All Implemented Interfaces:
CauchoPage, Servlet, ServletConfig

public class StaticPage
extends Page

A static page is a page that's just a static file.


Field Summary
 
Fields inherited from class com.caucho.jsp.Page
_caucho_log, _contentType
 
Method Summary
 boolean _caucho_isModified()
          Returns true if the source has modified for this page.
 void destroy()
          Called when the servlet shuts down.
 boolean disableLog()
           
 long getLastModified(HttpServletRequest request)
          Returns the Last-Modified time for use in caching.
 void init(Path path)
           
 void service(ServletRequest request, ServletResponse response)
          Executes the JSP Page
 java.lang.String toString()
          Returns a printable version of the static page object.
static void writeDepend(Path dependPath, java.util.ArrayList<PersistentDependency> dependList)
           
 
Methods inherited from class com.caucho.jsp.Page
_caucho_addCacheDepend, _caucho_addDepend, _caucho_addDepend, _caucho_addDepend, _caucho_addDepend, _caucho_free, _caucho_getApplication, _caucho_getDependList, _caucho_getFunctionMap, _caucho_init, _caucho_lastModified, _caucho_setAlwaysModified, _caucho_setCacheable, _caucho_setContentType, _caucho_setModified, _caucho_setNeverModified, _caucho_use, calculateLastModified, caucho_init, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, isDead, isInit, log, log, pageservice, setDead, startRecompiling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

init

public void init(Path path)
          throws ServletException
Specified by:
init in interface CauchoPage
Overrides:
init in class Page
Throws:
ServletException

_caucho_isModified

public boolean _caucho_isModified()
Returns true if the source has modified for this page.

Specified by:
_caucho_isModified in interface CauchoPage
Overrides:
_caucho_isModified in class Page

getLastModified

public long getLastModified(HttpServletRequest request)
Description copied from class: Page
Returns the Last-Modified time for use in caching. If the result is <= 0, last-modified caching is disabled.

Overrides:
getLastModified in class Page
Returns:
the last modified time.

service

public void service(ServletRequest request,
                    ServletResponse response)
             throws java.io.IOException,
                    ServletException
Executes the JSP Page

Parameters:
request - request information. Normally servlets will cast this to HttpServletRequest
response - response information. Normally servlets will cast this to HttpServletRequest
Throws:
java.io.IOException
ServletException

disableLog

public boolean disableLog()

writeDepend

public static void writeDepend(Path dependPath,
                               java.util.ArrayList<PersistentDependency> dependList)
                        throws java.io.IOException
Throws:
java.io.IOException

destroy

public void destroy()
Description copied from interface: Servlet
Called when the servlet shuts down. Servlets can use this to close database connections, etc. Servlets generally only shutdown when the application closes.

Specified by:
destroy in interface Servlet
Overrides:
destroy in class Page

toString

public java.lang.String toString()
Returns a printable version of the static page object.

Overrides:
toString in class java.lang.Object