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

📄 velocityservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD><CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html#getInit()">getInit</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#init()">init</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#init(java.lang.Object)">init</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#setInitableBroker(org.apache.turbine.services.InitableBroker)">setInitableBroker</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#shutdown()">shutdown</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="SERVICE_NAME"><!-- --></A><H3>SERVICE_NAME</H3><PRE>public static final java.lang.String <B>SERVICE_NAME</B></PRE><DL></DL><HR><A NAME="CONTEXT"><!-- --></A><H3>CONTEXT</H3><PRE>public static final java.lang.String <B>CONTEXT</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="handleRequest(org.apache.velocity.context.Context, java.lang.String)"><!-- --></A><H3>handleRequest</H3><PRE>public java.lang.String <B>handleRequest</B>(org.apache.velocity.context.Context&nbsp;context,                                      java.lang.String&nbsp;template)                               throws java.lang.Exception</PRE><DL><DD>Process the request and fill in the template with the values you set in the Context.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - A Context.<DD><CODE>template</CODE> - A String with the filename of the template.<DT><B>Returns:</B><DD>The process template as a String.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="handleRequest(org.apache.velocity.context.Context, java.lang.String, java.io.OutputStream)"><!-- --></A><H3>handleRequest</H3><PRE>public void <B>handleRequest</B>(org.apache.velocity.context.Context&nbsp;context,                          java.lang.String&nbsp;filename,                          java.io.OutputStream&nbsp;out)                   throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Process the request and fill in the template with the values you set in the Context.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - A Context.<DD><CODE>filename</CODE> - A String with the filename of the template.<DD><CODE>out</CODE> - A OutputStream where we will write 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.apache.velocity.context.Context, java.lang.String, java.io.Writer)"><!-- --></A><H3>handleRequest</H3><PRE>public void <B>handleRequest</B>(org.apache.velocity.context.Context&nbsp;context,                          java.lang.String&nbsp;filename,                          java.io.Writer&nbsp;writer)                   throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Process the request and fill in the template with the values you set in the Context.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - A Context.<DD><CODE>filename</CODE> - A String with the filename of the template.<DD><CODE>writer</CODE> - A Writer where we will write 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="getContext()"><!-- --></A><H3>getContext</H3><PRE>public org.apache.velocity.context.Context <B>getContext</B>()</PRE><DL><DD>Create an empty WebContext object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>An empty WebContext object.</DL></DD></DL><HR><A NAME="getContext(org.apache.turbine.util.RunData)"><!-- --></A><H3>getContext</H3><PRE>public org.apache.velocity.context.Context <B>getContext</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)</PRE><DL><DD>Create a Context from the RunData object.  Adds a pointer to the RunData object to the Context so that RunData is available in the templates.<DD><DL></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 Context needed by Velocity.</DL></DD></DL><HR><A NAME="requestFinished(org.apache.velocity.context.Context)"><!-- --></A><H3>requestFinished</H3><PRE>public void <B>requestFinished</B>(org.apache.velocity.context.Context&nbsp;context)</PRE><DL><DD>Performs post-request actions (releases context tools back to the object pool).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - a Velocity Context</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/VelocityService.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;PREV CLASS&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="VelocityService.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;CONSTR&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;CONSTR&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 + -