📄 turbine.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Fri Dec 06 19:57:07 CET 2002 --><TITLE>jakarta-turbine-2 2.2 API: Class Turbine</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Turbine.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Turbine.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.apache.turbine</FONT><BR>Class Turbine</H2><PRE>java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--<B>org.apache.turbine.Turbine</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, <A HREF="../../../org/apache/turbine/TurbineConstants.html">TurbineConstants</A></DD></DL><HR><DL><DT>public class <B>Turbine</B><DT>extends javax.servlet.http.HttpServlet<DT>implements <A HREF="../../../org/apache/turbine/TurbineConstants.html">TurbineConstants</A></DL><P>Turbine is the main servlet for the entire system. It is <code>final</code> because you should <i>not</i> ever need to subclass this servlet. If you need to perform initialization of a service, then you should implement the Services API and let your code be initialized by it. If you need to override something in the <code>doGet()</code> or <code>doPost()</code> methods, edit the TurbineResources.properties file and specify your own classes there. <p> Turbine servlet recognizes the following initialization parameters. <ul> <li><code>resources</code> the implementation of <A HREF="../../../org/apache/turbine/services/resources/ResourceService.html"><CODE>ResourceService</CODE></A> to be used</li> <li><code>properties</code> the path to TurbineResources.properties file used by the default implementation of <code>ResourceService</code>, relative to the application root.</li> <li><code>basedir</code> this parameter is used <strong>only</strong> if your application server does not support web applications, or the or does not support <code>ServletContext.getRealPath(String)</code> method correctly. You can use this parameter to specify the directory within the server's filesystem, that is the base of your web application.</li> </ul><br><P><DL><DT><B>Version: </B><DD>$Id: Turbine.java,v 1.22 2002/08/14 16:16:51 henning Exp $</DD><DT><B>Author: </B><DD><a href="mailto:jon@latchkey.com">Jon S. Stevens</a>, <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a>, <a href="mailto:greg@shwoop.com">Greg Ritter</a>, <a href="mailto:john.mcnally@clearink.com">John D. McNally</a>, <a href="mailto:frank.kim@clearink.com">Frank Y. Kim</a>, <a href="mailto:krzewski@e-point.pl">Rafal Krzewski</a>, <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>, <a href="mailto:sean@informage.net">Sean Legassick</a>, <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a>, <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a></DD><DT><B>See Also: </B><DD><A HREF="../../../serialized-form.html#org.apache.turbine.Turbine">Serialized Form</A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#BASEDIR_KEY">BASEDIR_KEY</A></B></CODE><BR> The base directory key</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#REDIRECTED_PATHINFO_NAME">REDIRECTED_PATHINFO_NAME</A></B></CODE><BR> Name of path info parameter used to indicate the redirected stage of a given user's initial Turbine request</TD></TR></TABLE> <A NAME="fields_inherited_from_class_org.apache.turbine.TurbineConstants"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface org.apache.turbine.<A HREF="../../../org/apache/turbine/TurbineConstants.html">TurbineConstants</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/apache/turbine/TurbineConstants.html#ACTION_ACCESS_CONTROLLER">ACTION_ACCESS_CONTROLLER</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#ACTION_CACHE_SIZE">ACTION_CACHE_SIZE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#ACTION_LOGIN">ACTION_LOGIN</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#ACTION_LOGOUT">ACTION_LOGOUT</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#ACTION_SESSION_VALIDATOR">ACTION_SESSION_VALIDATOR</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#APPLICATION_ROOT">APPLICATION_ROOT</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_ADAPTOR">DB_ADAPTOR</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_CONNECTION_LOG_INTERVAL">DB_CONNECTION_LOG_INTERVAL</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_CONNECTION_WAIT_TIMEOUT">DB_CONNECTION_WAIT_TIMEOUT</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_DRIVER">DB_DRIVER</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_EXPIRYTIME">DB_EXPIRYTIME</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_IDBROKER_CLEVERQUANTITY">DB_IDBROKER_CLEVERQUANTITY</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_MAXCONNECTIONS">DB_MAXCONNECTIONS</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_PASSWORD">DB_PASSWORD</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_URL">DB_URL</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DB_USERNAME">DB_USERNAME</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#DEFAULT_DOCUMENT_TYPE">DEFAULT_DOCUMENT_TYPE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#LAYOUT_CACHE_SIZE">LAYOUT_CACHE_SIZE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#LAYOUT_DEFAULT">LAYOUT_DEFAULT</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#LOGIN_ERROR">LOGIN_ERROR</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#LOGIN_MESSAGE">LOGIN_MESSAGE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#LOGIN_MESSAGE_NOSCREEN">LOGIN_MESSAGE_NOSCREEN</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#LOGOUT_MESSAGE">LOGOUT_MESSAGE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#MAIL_SERVER_KEY">MAIL_SERVER_KEY</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#MAPS_BUILDER">MAPS_BUILDER</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#MODULE_CACHE">MODULE_CACHE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#MODULE_PACKAGES">MODULE_PACKAGES</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#NAVIGATION_CACHE_SIZE">NAVIGATION_CACHE_SIZE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#PAGE_CACHE_SIZE">PAGE_CACHE_SIZE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#PAGE_DEFAULT">PAGE_DEFAULT</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#PP_URL_CASE_FOLDING">PP_URL_CASE_FOLDING</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#SCHEDULED_JOB_CACHE_SIZE">SCHEDULED_JOB_CACHE_SIZE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#SCHEDULER_LOG_FACILITY">SCHEDULER_LOG_FACILITY</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#SCREEN_CACHE_SIZE">SCREEN_CACHE_SIZE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#SCREEN_ERROR">SCREEN_ERROR</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#SCREEN_HOMEPAGE">SCREEN_HOMEPAGE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#SCREEN_INVALID_STATE">SCREEN_INVALID_STATE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#SCREEN_LOGIN">SCREEN_LOGIN</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#SQL_LOG_FACILITY">SQL_LOG_FACILITY</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#TEMPLATE_ERROR">TEMPLATE_ERROR</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#TEMPLATE_HOMEPAGE">TEMPLATE_HOMEPAGE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#TEMPLATE_INVALID_STATE">TEMPLATE_INVALID_STATE</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#TEMPLATE_LOGIN">TEMPLATE_LOGIN</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#USE_SSL">USE_SSL</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#WEB_CONTEXT">WEB_CONTEXT</A>, <A HREF="../../../org/apache/turbine/TurbineConstants.html#WEBAPP_ROOT">WEBAPP_ROOT</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#Turbine()">Turbine</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#destroy()">destroy</A></B>()</CODE><BR> The <code>Servlet</code> destroy method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">doGet</A></B>(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)</CODE><BR> The primary method invoked when the Turbine servlet is executed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">doPost</A></B>(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)</CODE><BR> In this application doGet and doPost are the same thing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#getApplicationRoot()">getApplicationRoot</A></B>()</CODE><BR> Get the application root for this Turbine webapp.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#getContextPath()">getContextPath</A></B>()</CODE><BR> Return the context path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#getRealPath(java.lang.String)">getRealPath</A></B>(java.lang.String path)</CODE><BR> Used to get the real path of configuration and resource information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#getScriptName()">getScriptName</A></B>()</CODE><BR> Get the script name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#getServerName()">getServerName</A></B>()</CODE><BR> Return the server name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#getServerPort()">getServerPort</A></B>()</CODE><BR> Return the server port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#getServerScheme()">getServerScheme</A></B>()</CODE><BR> Return the server scheme.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#getServletInfo()">getServletInfo</A></B>()</CODE><BR> Return the servlet info.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static javax.servlet.ServletConfig</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/apache/turbine/Turbine.html#getTurbineServletConfig()">getTurbineServletConfig</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -