⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 turbinewebmacroservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html#init()">init</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html">Initable</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#init()">init</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></CODE> - Something went wrong in the init         stage</DL></DD></DL><HR><A NAME="init(javax.servlet.ServletConfig)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(javax.servlet.ServletConfig&nbsp;unused)          throws <A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Inits the service using servlet parameters to obtain path to the configuration file.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#init(javax.servlet.ServletConfig)">init</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>config</CODE> - The ServletConfiguration from Turbine<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></CODE> - Something went wrong when starting up.</DL></DD></DL><HR><A NAME="shutdown()"><!-- --></A><H3>shutdown</H3><PRE>public void <B>shutdown</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Shuts down the service, including its <a href="http://webmacro.org/">WebMacro</a> engine.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html#shutdown()">shutdown</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html">Initable</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#shutdown()">shutdown</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></CODE></DL></DD></DL><HR><A NAME="getContext()"><!-- --></A><H3>getContext</H3><PRE>public org.webmacro.servlet.WebContext <B>getContext</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Create an empty WebContext object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html#getContext()">getContext</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html">WebMacroService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A new, empty context.</DL></DD></DL><HR><A NAME="getContext(org.apache.turbine.util.RunData)"><!-- --></A><H3>getContext</H3><PRE>public org.webmacro.servlet.WebContext <B>getContext</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Create a <code>WebContext</code> from the <code>RunData</code> object.  Adds a pointer to the <code>RunData</code> object to the WC so that RunData is available in the templates.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html#getContext(org.apache.turbine.util.RunData)">getContext</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html">WebMacroService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - The Turbine RunData object.<DT><B>Returns:</B><DD>A clone of the WebContext needed by WebMacro.</DL></DD></DL><HR><A NAME="handleRequest(org.webmacro.servlet.WebContext, java.lang.String)"><!-- --></A><H3>handleRequest</H3><PRE>public java.lang.String <B>handleRequest</B>(org.webmacro.servlet.WebContext&nbsp;wc,                                      java.lang.String&nbsp;filename)                               throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Process the request and fill in the template with the values you set in the WebContext.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html#handleRequest(org.webmacro.servlet.WebContext, java.lang.String)">handleRequest</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html">WebMacroService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>wc</CODE> - The populated context.<DD><CODE>filename</CODE> - The file name of the template.<DT><B>Returns:</B><DD>The process template as a String.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - Any exception trown while processing will be         wrapped into a TurbineException and rethrown.</DL></DD></DL><HR><A NAME="handleRequest(org.webmacro.servlet.WebContext, java.lang.String, java.io.OutputStream)"><!-- --></A><H3>handleRequest</H3><PRE>public void <B>handleRequest</B>(org.webmacro.servlet.WebContext&nbsp;wc,                          java.lang.String&nbsp;filename,                          java.io.OutputStream&nbsp;out)                   throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Process the request and fill in the template with the values you set in the WebContext.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html#handleRequest(org.webmacro.servlet.WebContext, java.lang.String, java.io.OutputStream)">handleRequest</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html">WebMacroService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>wc</CODE> - The populated context.<DD><CODE>filename</CODE> - The file name of the template.<DD><CODE>out</CODE> - A stream to write the processed template to.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - Any exception trown while processing will be         wrapped into a TurbineException and rethrown.</DL></DD></DL><HR><A NAME="handleRequest(org.webmacro.servlet.WebContext, java.lang.String, org.webmacro.FastWriter)"><!-- --></A><H3>handleRequest</H3><PRE>public void <B>handleRequest</B>(org.webmacro.servlet.WebContext&nbsp;wc,                          java.lang.String&nbsp;filename,                          org.webmacro.FastWriter&nbsp;writer)                   throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Process the request and fill in the template with the values you set in the WebContext.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html#handleRequest(org.webmacro.servlet.WebContext, java.lang.String, org.webmacro.FastWriter)">handleRequest</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html">WebMacroService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>wc</CODE> - The populated context.<DD><CODE>filename</CODE> - The file name of the template.<DD><CODE>writer</CODE> - A writer to write the processed template with.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - Any exception trown while processing will be         wrapped into a TurbineException and rethrown.</DL></DD></DL><HR><A NAME="getTemplate(java.lang.String)"><!-- --></A><H3>getTemplate</H3><PRE>public org.webmacro.Template <B>getTemplate</B>(java.lang.String&nbsp;filename)                                  throws org.webmacro.NotFoundException</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Return a template from WebMacro.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html#getTemplate(java.lang.String)">getTemplate</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/webmacro/WebMacroService.html">WebMacroService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - A String with the name of the template.<DT><B>Returns:</B><DD>A Template.<DT><B>Throws:</B><DD><CODE>org.webmacro.NotFoundException</CODE> - The template could not be found.</DL></DD></DL><HR><A NAME="templateExists(java.lang.String)"><!-- --></A><H3>templateExists</H3><PRE>public boolean <B>templateExists</B>(java.lang.String&nbsp;template)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Determine whether a given template exists. This service currently only supports file base template hierarchies so we will use the utility methods provided by the template service to do the searching.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/template/BaseTemplateEngineService.html#templateExists(java.lang.String)">templateExists</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/template/BaseTemplateEngineService.html">BaseTemplateEngineService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>String</CODE> - template<DT><B>Returns:</B><DD>boolean</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TurbineWebMacroService.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../org/apache/turbine/services/webmacro/TurbineWebMacro.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TurbineWebMacroService.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright &copy; 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -