📄 templateservice.html
字号:
the named template.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - The template name.<DT><B>Returns:</B><DD>The default layout module name.</DL></DD></DL><HR><A NAME="getDefaultNavigationName(java.lang.String)"><!-- --></A><H3>getDefaultNavigationName</H3><PRE>public java.lang.String <B>getDefaultNavigationName</B>(java.lang.String template)</PRE><DL><DD>Get the default navigation module name of the template engine service corresponding to the template name extension of the named template.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - The template name.<DT><B>Returns:</B><DD>The default navigation module name.</DL></DD></DL><HR><A NAME="getDefaultLayoutTemplateName(java.lang.String)"><!-- --></A><H3>getDefaultLayoutTemplateName</H3><PRE>public java.lang.String <B>getDefaultLayoutTemplateName</B>(java.lang.String template)</PRE><DL><DD>Get the default layout template name of the template engine service corresponding to the template name extension of the named template.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - The template name.<DT><B>Returns:</B><DD>The default layout template name.</DL></DD></DL><HR><A NAME="getDefaultPageName(org.apache.turbine.util.RunData)"><!-- --></A><H3>getDefaultPageName</H3><PRE>public java.lang.String <B>getDefaultPageName</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A> data)</PRE><DL><DD>Find the default page module name for the given request.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - The encapsulation of the request to retrieve the default page for.<DT><B>Returns:</B><DD>The default page module name.</DL></DD></DL><HR><A NAME="getDefaultLayoutName(org.apache.turbine.util.RunData)"><!-- --></A><H3>getDefaultLayoutName</H3><PRE>public java.lang.String <B>getDefaultLayoutName</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A> data)</PRE><DL><DD>Find the default layout module name for the given request.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - The encapsulation of the request to retrieve the default layout for.<DT><B>Returns:</B><DD>The default layout module name.</DL></DD></DL><HR><A NAME="getScreenName(java.lang.String)"><!-- --></A><H3>getScreenName</H3><PRE>public java.lang.String <B>getScreenName</B>(java.lang.String template) throws java.lang.Exception</PRE><DL><DD>Locate and return the name of the screen module to be used with the named screen template.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - The screen template name.<DT><B>Returns:</B><DD>The found screen module name.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="getLayoutName(java.lang.String)"><!-- --></A><H3>getLayoutName</H3><PRE>public java.lang.String <B>getLayoutName</B>(java.lang.String template) throws java.lang.Exception</PRE><DL><DD>Locate and return the name of the layout module to be used with the named layout template.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - The layout template name.<DT><B>Returns:</B><DD>The found layout module name.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="getNavigationName(java.lang.String)"><!-- --></A><H3>getNavigationName</H3><PRE>public java.lang.String <B>getNavigationName</B>(java.lang.String name) throws java.lang.Exception</PRE><DL><DD>Locate and return the name of the navigation module to be used with the named navigation template.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - The navigation template name.<DT><B>Returns:</B><DD>The found navigation module name.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="getScreenTemplateName(java.lang.String)"><!-- --></A><H3>getScreenTemplateName</H3><PRE>public java.lang.String <B>getScreenTemplateName</B>(java.lang.String template) throws java.lang.Exception</PRE><DL><DD>Locate and return the name of the screen template corresponding to the given template name parameter.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - The template name parameter.<DT><B>Returns:</B><DD>The found screen template name.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="getLayoutTemplateName(java.lang.String)"><!-- --></A><H3>getLayoutTemplateName</H3><PRE>public java.lang.String <B>getLayoutTemplateName</B>(java.lang.String template) throws java.lang.Exception</PRE><DL><DD>Locate and return the name of the layout template corresponding to the given screen template name parameter.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - The template name parameter.<DT><B>Returns:</B><DD>The found screen template name.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="translateTemplatePaths(java.lang.String[])"><!-- --></A><H3>translateTemplatePaths</H3><PRE>public java.lang.String[] <B>translateTemplatePaths</B>(java.lang.String[] templatePaths)</PRE><DL><DD>Translates the supplied template paths into their Turbine-canonical equivalent (probably absolute paths).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>templatePaths</CODE> - An array of template paths.<DT><B>Returns:</B><DD>An array of translated template paths.</DL></DD></DL><HR><A NAME="templateExists(java.lang.String, java.lang.String[])"><!-- --></A><H3>templateExists</H3><PRE>public boolean <B>templateExists</B>(java.lang.String template, java.lang.String[] templatePaths)</PRE><DL><DD>Delegates to the appropriate <A HREF="../../../../../org/apache/turbine/services/template/TemplateEngineService.html"><CODE>TemplateEngineService</CODE></A> to check the existance of the specified template.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>template</CODE> - The template to check for the existance of.<DD><CODE>templatePaths</CODE> - The paths to check for the template.</DL></DD></DL><HR><A NAME="registerTemplateEngineService(org.apache.turbine.services.template.TemplateEngineService)"><!-- --></A><H3>registerTemplateEngineService</H3><PRE>public void <B>registerTemplateEngineService</B>(<A HREF="../../../../../org/apache/turbine/services/template/TemplateEngineService.html">TemplateEngineService</A> service)</PRE><DL><DD>Registers the provided template engine for use by the <code>TemplateService</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>service</CODE> - The <code>TemplateEngineService</code> to register.</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> </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/TemplateService.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"> <A HREF="../../../../../org/apache/turbine/services/template/TemplateEngineService.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="TemplateService.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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -