com.caucho.jsp
Class JavaPage

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

public abstract class JavaPage
extends Page
implements HttpJspPage


Field Summary
 
Fields inherited from class com.caucho.jsp.Page
_caucho_log, _contentType
 
Constructor Summary
JavaPage()
           
 
Method Summary
abstract  void _jspService(HttpServletRequest request, HttpServletResponse response)
          The main service method for a JSP page.
static void addDepend(java.util.ArrayList list, PersistentDependency depend)
          Static method to avoid compilation issues.
 void destroy()
          Called when the servlet shuts down.
 java.lang.String getServletInfo()
          Returns an information string about the servlet.
 void init(ServletConfig config)
          Initialize the servlet.
 void jspDestroy()
          Called when closing the JSP page, after all requests.
 void jspInit()
          Called before the first request for a JSP page.
 void service(ServletRequest request, ServletResponse response)
          Service a request.
 
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_isModified, _caucho_lastModified, _caucho_setAlwaysModified, _caucho_setCacheable, _caucho_setContentType, _caucho_setModified, _caucho_setNeverModified, _caucho_use, calculateLastModified, caucho_init, getInitParameter, getInitParameterNames, getLastModified, getServletConfig, getServletContext, getServletName, init, isDead, isInit, log, log, pageservice, setDead, startRecompiling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Servlet
getServletConfig
 

Constructor Detail

JavaPage

public JavaPage()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Description copied from class: Page
Initialize the servlet.

Specified by:
init in interface Servlet
Overrides:
init in class Page
Parameters:
config - information from the configuration file.
Throws:
ServletException

jspInit

public void jspInit()
Description copied from interface: JspPage
Called before the first request for a JSP page.

Specified by:
jspInit in interface JspPage

service

public void service(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    java.io.IOException
Description copied from interface: Servlet
Service a request. Since the servlet engine is multithreaded, many threads may execute service simultaneously. Normally, req and res will actually be HttpServletRequest and HttpServletResponse classes.

Specified by:
service in interface Servlet
Parameters:
request - request information. Normally servlets will cast this to HttpServletRequest
response - response information. Normally servlets will cast this to HttpServletRequest
Throws:
ServletException
java.io.IOException

_jspService

public abstract void _jspService(HttpServletRequest request,
                                 HttpServletResponse response)
                          throws ServletException,
                                 java.io.IOException
Description copied from interface: HttpJspPage
The main service method for a JSP page. Implementing classes must call this to service the JSP page itself.

Specified by:
_jspService in interface HttpJspPage
Parameters:
request - the servlet request.
response - the servlet response.
Throws:
ServletException
java.io.IOException

getServletInfo

public java.lang.String getServletInfo()
Description copied from interface: Servlet
Returns an information string about the servlet.

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

addDepend

public static void addDepend(java.util.ArrayList list,
                             PersistentDependency depend)
Static method to avoid compilation issues.


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

jspDestroy

public void jspDestroy()
Description copied from interface: JspPage
Called when closing the JSP page, after all requests.

Specified by:
jspDestroy in interface JspPage