📄 resourceservice.html
字号:
with the given name as an integer.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DT><B>Returns:</B><DD>The value of the resource as an integer.</DL></DD></DL><HR><A NAME="getInt(java.lang.String, int)"><!-- --></A><H3>getInt</H3><PRE>public int <B>getInt</B>(java.lang.String name, int def)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as an integer, or a default value.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DD><CODE>def</CODE> - The default value of the resource.<DT><B>Returns:</B><DD>The value of the resource as an integer.</DL></DD></DL><HR><A NAME="getKeys()"><!-- --></A><H3>getKeys</H3><PRE>public java.util.Iterator <B>getKeys</B>()</PRE><DL><DD>Get the list of the keys contained in the configuration repository.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>An Enumeration with all the keys.</DL></DD></DL><HR><A NAME="getKeys(java.lang.String)"><!-- --></A><H3>getKeys</H3><PRE>public java.util.Iterator <B>getKeys</B>(java.lang.String prefix)</PRE><DL><DD>Get the list of the keys contained in the configuration repository that match the specified prefix.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>prefix</CODE> - A String prefix to test against.<DT><B>Returns:</B><DD>An Enumeration of keys that match the prefix.</DL></DD></DL><HR><A NAME="getLong(java.lang.String)"><!-- --></A><H3>getLong</H3><PRE>public long <B>getLong</B>(java.lang.String name)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a long.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DT><B>Returns:</B><DD>The value of the resource as a long.</DL></DD></DL><HR><A NAME="getLong(java.lang.String, long)"><!-- --></A><H3>getLong</H3><PRE>public long <B>getLong</B>(java.lang.String name, long def)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a long, or a default value.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DD><CODE>def</CODE> - The default value of the resource.<DT><B>Returns:</B><DD>The value of the resource as a long.</DL></DD></DL><HR><A NAME="getString(java.lang.String)"><!-- --></A><H3>getString</H3><PRE>public java.lang.String <B>getString</B>(java.lang.String name)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a string.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DT><B>Returns:</B><DD>The value of the resource as a string.</DL></DD></DL><HR><A NAME="getString(java.lang.String, java.lang.String)"><!-- --></A><H3>getString</H3><PRE>public java.lang.String <B>getString</B>(java.lang.String name, java.lang.String def)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a string, or a default value.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DD><CODE>def</CODE> - The default value of the resource.<DT><B>Returns:</B><DD>The value of the resource as a string.</DL></DD></DL><HR><A NAME="getStringArray(java.lang.String)"><!-- --></A><H3>getStringArray</H3><PRE>public java.lang.String[] <B>getStringArray</B>(java.lang.String name)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a string array.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DT><B>Returns:</B><DD>The value of the resource as a string array.</DL></DD></DL><HR><A NAME="getVector(java.lang.String)"><!-- --></A><H3>getVector</H3><PRE>public java.util.Vector <B>getVector</B>(java.lang.String name)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a vector.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DT><B>Returns:</B><DD>The value of the resource as a vector.</DL></DD></DL><HR><A NAME="getVector(java.lang.String, java.util.Vector)"><!-- --></A><H3>getVector</H3><PRE>public java.util.Vector <B>getVector</B>(java.lang.String name, java.util.Vector def)</PRE><DL><DD>The purpose of this method is to get the configuration resource with the given name as a vector, or a default value.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The resource name.<DD><CODE>def</CODE> - The default value of the resource.<DT><B>Returns:</B><DD>The value of the resource as a vector.</DL></DD></DL><HR><A NAME="getResources(java.lang.String)"><!-- --></A><H3>getResources</H3><PRE>public <A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A> <B>getResources</B>(java.lang.String prefix)</PRE><DL><DD>The purpose of this method is to extract a subset of configuration resources sharing a common name prefix.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>prefix</CODE> - the common name prefix<DT><B>Returns:</B><DD>A ResourceService providing the subset of configuration.</DL></DD></DL><HR><A NAME="getConfiguration(java.lang.String)"><!-- --></A><H3>getConfiguration</H3><PRE>public org.apache.commons.configuration.Configuration <B>getConfiguration</B>(java.lang.String prefix)</PRE><DL><DD>The purpose of this method is to extract a subset configuration sharing a common name prefix.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>prefix</CODE> - the common name prefix<DT><B>Returns:</B><DD>A Configuration providing the subset of configuration.</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/ResourceService.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"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ResourceService.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 + -