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

📄 moduleutils.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait</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="instance"><!-- --></A><H3>
instance</H3>
<PRE>
private static final <A HREF="../../../../org/apache/struts/util/ModuleUtils.html">ModuleUtils</A> <B>instance</B></PRE>
<DL>
<DD>The Singleton instance.</DL>
<HR>

<A NAME="log"><!-- --></A><H3>
log</H3>
<PRE>
private static final org.apache.commons.logging.Log <B>log</B></PRE>
<DL>
<DD>Commons logging instance.</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="ModuleUtils()"><!-- --></A><H3>
ModuleUtils</H3>
<PRE>
protected <B>ModuleUtils</B>()</PRE>
<DL>
<DD>Constructor for ModuleUtils.</DL>

<!-- ============ 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="getInstance()"><!-- --></A><H3>
getInstance</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/util/ModuleUtils.html">ModuleUtils</A> <B>getInstance</B>()</PRE>
<DL>
<DD>Returns the Singleton instance of TagUtils.</DL>
<HR>

<A NAME="getModuleConfig(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
getModuleConfig</H3>
<PRE>
public <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> <B>getModuleConfig</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD>Return the current ModuleConfig object stored in request, if it exists, null otherwise. This method can be used by plugin to retrieve the current module config object. If no moduleConfig is found, this means that the request haven't hit the server throught the struts servlet. The appropriate module config can be set and found with <code><A HREF="../../../../org/apache/struts/util/RequestUtils.html#selectModule(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext)"><CODE>RequestUtils.selectModule(HttpServletRequest, ServletContext)</CODE></A> </code>.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DT><B>Returns:</B><DD>the ModuleConfig object from request, or null if none is set in the request.</DL>
</DD>
</DL>
<HR>

<A NAME="getModuleConfig(java.lang.String, javax.servlet.ServletContext)"><!-- --></A><H3>
getModuleConfig</H3>
<PRE>
public <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> <B>getModuleConfig</B>(java.lang.String&nbsp;prefix,                                    javax.servlet.ServletContext&nbsp;context)</PRE>
<DL>
<DD>Return the desired ModuleConfig object stored in context, if it exists, null otherwise.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The module prefix of the desired module<DD><CODE>context</CODE> - The ServletContext for this web application<DT><B>Returns:</B><DD>the ModuleConfig object specified, or null if not found in the context.</DL>
</DD>
</DL>
<HR>

<A NAME="getModuleConfig(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext)"><!-- --></A><H3>
getModuleConfig</H3>
<PRE>
public <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> <B>getModuleConfig</B>(java.lang.String&nbsp;prefix,                                    javax.servlet.http.HttpServletRequest&nbsp;request,                                    javax.servlet.ServletContext&nbsp;context)</PRE>
<DL>
<DD>Return the desired ModuleConfig object stored in context, if it exists, otherwise return the current ModuleConfig<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The module prefix of the desired module<DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>context</CODE> - The ServletContext for this web application<DT><B>Returns:</B><DD>the ModuleConfig object specified, or null if not found in the context.</DL>
</DD>
</DL>
<HR>

<A NAME="getModuleConfig(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext)"><!-- --></A><H3>
getModuleConfig</H3>
<PRE>
public <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> <B>getModuleConfig</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                                    javax.servlet.ServletContext&nbsp;context)</PRE>
<DL>
<DD>Return the ModuleConfig object is it exists, null otherwise.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>context</CODE> - The ServletContext for this web application<DT><B>Returns:</B><DD>the ModuleConfig object</DL>
</DD>
</DL>
<HR>

<A NAME="getModuleName(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext)"><!-- --></A><H3>
getModuleName</H3>
<PRE>
public java.lang.String <B>getModuleName</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                                      javax.servlet.ServletContext&nbsp;context)</PRE>
<DL>
<DD>Get the module name to which the specified request belong.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>context</CODE> - The ServletContext for this web application<DT><B>Returns:</B><DD>The module prefix or ""</DL>
</DD>
</DL>
<HR>

<A NAME="getModuleName(java.lang.String, javax.servlet.ServletContext)"><!-- --></A><H3>
getModuleName</H3>
<PRE>
public java.lang.String <B>getModuleName</B>(java.lang.String&nbsp;matchPath,                                      javax.servlet.ServletContext&nbsp;context)</PRE>
<DL>
<DD>Get the module name to which the specified uri belong.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>matchPath</CODE> - The uri from which we want the module name.<DD><CODE>context</CODE> - The ServletContext for this web application<DT><B>Returns:</B><DD>The module prefix or ""</DL>
</DD>
</DL>
<HR>

<A NAME="getModulePrefixes(javax.servlet.ServletContext)"><!-- --></A><H3>
getModulePrefixes</H3>
<PRE>
public java.lang.String[] <B>getModulePrefixes</B>(javax.servlet.ServletContext&nbsp;context)</PRE>
<DL>
<DD>Return the list of module prefixes that are defined for this web application.  <strong>NOTE</strong> - the "" prefix for the default module is not included in this list.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>context</CODE> - The ServletContext for this web application.<DT><B>Returns:</B><DD>An array of module prefixes.</DL>
</DD>
</DL>
<HR>

<A NAME="selectModule(javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext)"><!-- --></A><H3>
selectModule</H3>
<PRE>
public void <B>selectModule</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                         javax.servlet.ServletContext&nbsp;context)</PRE>
<DL>
<DD>Select the module to which the specified request belongs, and add corresponding request attributes to this request.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>context</CODE> - The ServletContext for this web application</DL>
</DD>
</DL>
<HR>

<A NAME="selectModule(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.ServletContext)"><!-- --></A><H3>
selectModule</H3>
<PRE>
public void <B>selectModule</B>(java.lang.String&nbsp;prefix,                         javax.servlet.http.HttpServletRequest&nbsp;request,                         javax.servlet.ServletContext&nbsp;context)</PRE>
<DL>
<DD>Select the module to which the specified request belongs, and add corresponding request attributes to this request.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The module prefix of the desired module<DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>context</CODE> - The ServletContext for this web application</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/ModuleUtils.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/struts/util/MessageResourcesFactory.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/struts/util/PropertyMessageResources.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ModuleUtils.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 

⌨️ 快捷键说明

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