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

📄 digestingplugin.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
protected java.net.URL <B>getConfigURL</B>(java.lang.String&nbsp;path,                                    java.lang.String&nbsp;source)                             throws java.io.IOException</PRE>
<DL>
<DD><p>Look up a resource path using one of a set of known path resolution mechanisms and return a URL to the resource.</p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>path</CODE> - a String which is meaningful to one of the known resolution mechanisms.<DD><CODE>source</CODE> - one of the known path resolution mechanisms: <ul> <li>file - the path is a fully-qualified filesystem path.</li> <li>servlet - the path is a servlet-context relative path.</li> <li>classpath - the path is a classpath-relative path.</li> </ul><DT><B>Returns:</B><DD>a URL pointing to the given path in the given mechanism.<DT><B>Throws:</B><DD><CODE>FileNotFoundException</CODE> - &nbsp;<DD><CODE>MalformedURLException</CODE> - &nbsp;</DL>
</DD>
</DL>
<HR>

<A NAME="getClassPathURL(java.lang.String)"><!-- --></A><H3>
getClassPathURL</H3>
<PRE>
protected java.net.URL <B>getClassPathURL</B>(java.lang.String&nbsp;path)</PRE>
<DL>
<DD>Given a string, return a URL to a classpath resource of that name.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>path</CODE> - a Classpath-relative string identifying a resource.<DT><B>Returns:</B><DD>a URL identifying the resource on the classpath. TODO Do we need to be smarter about ClassLoaders?</DL>
</DD>
</DL>
<HR>

<A NAME="getServletContextURL(java.lang.String)"><!-- --></A><H3>
getServletContextURL</H3>
<PRE>
protected java.net.URL <B>getServletContextURL</B>(java.lang.String&nbsp;path)                                     throws java.io.IOException</PRE>
<DL>
<DD>Given a string, return a URL to a Servlet Context resource of that name.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>path</CODE> - a Classpath-relative string identifying a resource.<DT><B>Returns:</B><DD>a URL identifying the resource in the Servlet Context<DT><B>Throws:</B><DD><CODE>MalformedURLException</CODE> - &nbsp;</DL>
</DD>
</DL>
<HR>

<A NAME="getFileURL(java.lang.String)"><!-- --></A><H3>
getFileURL</H3>
<PRE>
protected java.net.URL <B>getFileURL</B>(java.lang.String&nbsp;path)                           throws java.io.IOException</PRE>
<DL>
<DD>Given a string, return a URL to a Filesystem resource of that name.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>path</CODE> - a path to a file.<DT><B>Returns:</B><DD>a URL identifying the resource in the in the file system.<DT><B>Throws:</B><DD><CODE>MalformedURLException</CODE> - &nbsp;<DD><CODE>FileNotFoundException</CODE> - &nbsp;</DL>
</DD>
</DL>
<HR>

<A NAME="setConfigPath(java.lang.String)"><!-- --></A><H3>
setConfigPath</H3>
<PRE>
public void <B>setConfigPath</B>(java.lang.String&nbsp;configPath)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>configPath</CODE> - the path to configuration information for this PlugIn.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#configSource"><CODE>configSource</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getConfigPath()"><!-- --></A><H3>
getConfigPath</H3>
<PRE>
public java.lang.String <B>getConfigPath</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the configPath property<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#configSource"><CODE>configSource</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setConfigSource(java.lang.String)"><!-- --></A><H3>
setConfigSource</H3>
<PRE>
public void <B>setConfigSource</B>(java.lang.String&nbsp;configSource)</PRE>
<DL>
<DD>Set the source of the config file.  Should be one of the following: <ul> <li>      "classpath" - indicates that the configPath will be resolved by the      ClassLoader. </li> <li>      "file" - indicates that the configPath is a fully-qualified      filesystem path. </li> <li>      "servlet" - indicates that the configPath will be found by the      ServletContext. </li> </ul><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>configSource</CODE> - the source (lookup method) for the config file.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#configPath"><CODE>configPath</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getConfigSource()"><!-- --></A><H3>
getConfigSource</H3>
<PRE>
public java.lang.String <B>getConfigSource</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the string describing which access method should be used to resolve configPath.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#configPath"><CODE>configPath</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="storeGeneratedObject(java.lang.Object)"><!-- --></A><H3>
storeGeneratedObject</H3>
<PRE>
protected void <B>storeGeneratedObject</B>(java.lang.Object&nbsp;obj)</PRE>
<DL>
<DD>This method is called after the Digester runs to store the generated object somewhere.  This implementation places the given object into the ServletContext under the attribute name as defined in <code>key</code>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - The object to save.</DL>
</DD>
</DL>
<HR>

<A NAME="setKey(java.lang.String)"><!-- --></A><H3>
setKey</H3>
<PRE>
public void <B>setKey</B>(java.lang.String&nbsp;key)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The ServletContext attribute name to store the generated object under.</DL>
</DD>
</DL>
<HR>

<A NAME="getKey()"><!-- --></A><H3>
getKey</H3>
<PRE>
public java.lang.String <B>getKey</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The ServletContext attribute name the generated object is stored under.</DL>
</DD>
</DL>
<HR>

<A NAME="setRulesets(java.lang.String)"><!-- --></A><H3>
setRulesets</H3>
<PRE>
public void <B>setRulesets</B>(java.lang.String&nbsp;ruleSets)</PRE>
<DL>
<DD><p>A comma-delimited list of one or more classes which implement <code>org.apache.commons.digester.RuleSet</code>. (Optional)</p><DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getRulesets()"><!-- --></A><H3>
getRulesets</H3>
<PRE>
public java.lang.String <B>getRulesets</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The configured list of <code>RuleSet</code> classes.</DL>
</DD>
</DL>
<HR>

<A NAME="setDigesterPath(java.lang.String)"><!-- --></A><H3>
setDigesterPath</H3>
<PRE>
public void <B>setDigesterPath</B>(java.lang.String&nbsp;digesterPath)</PRE>
<DL>
<DD><p>The path to a Digester XML configuration file, relative to the <code>digesterSource</code> property. (Optional)</p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#digesterSource"><CODE>digesterSource</CODE></A>, 
<A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#getConfigURL(java.lang.String, java.lang.String)"><CODE>getConfigURL(String, String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getDigesterPath()"><!-- --></A><H3>
getDigesterPath</H3>
<PRE>
public java.lang.String <B>getDigesterPath</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the configured path to a Digester XML config file, or null.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#digesterSource"><CODE>digesterSource</CODE></A>, 
<A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#getConfigURL(java.lang.String, java.lang.String)"><CODE>getConfigURL(String, String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setDigesterSource(java.lang.String)"><!-- --></A><H3>
setDigesterSource</H3>
<PRE>
public void <B>setDigesterSource</B>(java.lang.String&nbsp;digesterSource)</PRE>
<DL>
<DD><p>The lookup mechanism to be used to resolve <code>digesterPath</code> (optional). </p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>digesterSource</CODE> - &nbsp;<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#getConfigURL(java.lang.String, java.lang.String)"><CODE>getConfigURL(String, String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getDigesterSource()"><!-- --></A><H3>
getDigesterSource</H3>
<PRE>
public java.lang.String <B>getDigesterSource</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the configured lookup mechanism for resolving <code>digesterPath</code>.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/plugins/DigestingPlugIn.html#getConfigURL(java.lang.String, java.lang.String)"><CODE>getConfigURL(String, String)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setPush(boolean)"><!-- --></A><H3>
setPush</H3>
<PRE>
public void <B>setPush</B>(boolean&nbsp;push)</PRE>
<DL>
<DD><p>If set to <code>true</code>, this PlugIn will be pushed onto the Digester stack before the digester <code>parse</code> method is called.</p> <p>Defaults to <code>false</code></p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>push</CODE> - &nbsp;</DL>
</DD>
</DL>
<HR>

<A NAME="getPush()"><!-- --></A><H3>
getPush</H3>
<PRE>
public boolean <B>getPush</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Whether or not this <code>PlugIn</code> instance will be pushed onto the <code>Digester</code> stack before <code>digester.parse()</code> is called.</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/DigestingPlugIn.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;<A HREF="../../../../org/apache/struts/plugins/ModuleConfigVerifier.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="DigestingPlugIn.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 + -