📄 paramutils.html
字号:
<TD><CODE><B><A HREF="../../../org/jivesoftware/util/ParamUtils.html#getIntParameters(javax.servlet.http.HttpServletRequest, java.lang.String, int)">getIntParameters</A></B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, int defaultNum)</CODE><BR> Returns a list of int parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/util/ParamUtils.html#getLongAttribute(javax.servlet.http.HttpServletRequest, java.lang.String, long)">getLongAttribute</A></B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, long defaultNum)</CODE><BR> Returns an attribute as a long.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/util/ParamUtils.html#getLongParameter(javax.servlet.http.HttpServletRequest, java.lang.String, long)">getLongParameter</A></B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, long defaultNum)</CODE><BR> Returns a parameter as a long.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static long[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/util/ParamUtils.html#getLongParameters(javax.servlet.http.HttpServletRequest, java.lang.String, long)">getLongParameters</A></B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, long defaultNum)</CODE><BR> Returns a list of long parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/util/ParamUtils.html#getParameter(javax.servlet.http.HttpServletRequest, java.lang.String)">getParameter</A></B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE><BR> Returns a parameter as a string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/util/ParamUtils.html#getParameter(javax.servlet.http.HttpServletRequest, java.lang.String, boolean)">getParameter</A></B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, boolean emptyStringsOK)</CODE><BR> Returns a parameter as a string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/util/ParamUtils.html#getParameters(javax.servlet.http.HttpServletRequest, java.lang.String)">getParameters</A></B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE><BR> Returns a list of parameters of the same name</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ParamUtils()"><!-- --></A><H3>ParamUtils</H3><PRE>public <B>ParamUtils</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getParameter(javax.servlet.http.HttpServletRequest, java.lang.String)"><!-- --></A><H3>getParameter</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getParameter</B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Returns a parameter as a string.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the HttpServletRequest object, known as "request" in a JSP page.<DD><CODE>name</CODE> - the name of the parameter you want to get<DT><B>Returns:</B><DD>the value of the parameter or null if the parameter was not found or if the parameter is a zero-length string.</DL></DD></DL><HR><A NAME="getParameter(javax.servlet.http.HttpServletRequest, java.lang.String, boolean)"><!-- --></A><H3>getParameter</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getParameter</B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, boolean emptyStringsOK)</PRE><DL><DD>Returns a parameter as a string.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the HttpServletRequest object, known as "request" in a JSP page.<DD><CODE>name</CODE> - the name of the parameter you want to get<DD><CODE>emptyStringsOK</CODE> - return the parameter values even if it is an empty string.<DT><B>Returns:</B><DD>the value of the parameter or null if the parameter was not found.</DL></DD></DL><HR><A NAME="getParameters(javax.servlet.http.HttpServletRequest, java.lang.String)"><!-- --></A><H3>getParameters</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] <B>getParameters</B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Returns a list of parameters of the same name<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - an HttpServletRequest object.<DT><B>Returns:</B><DD>an array of non-null, non-blank strings of the same name. This method will return an empty array if no parameters were found.</DL></DD></DL><HR><A NAME="getBooleanParameter(javax.servlet.http.HttpServletRequest, java.lang.String)"><!-- --></A><H3>getBooleanParameter</H3><PRE>public static boolean <B>getBooleanParameter</B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Returns a parameter as a boolean.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the HttpServletRequest object, known as "request" in a JSP page.<DD><CODE>name</CODE> - the name of the parameter you want to get<DT><B>Returns:</B><DD>true if the value of the parameter was "true", false otherwise.</DL></DD></DL><HR><A NAME="getBooleanParameter(javax.servlet.http.HttpServletRequest, java.lang.String, boolean)"><!-- --></A><H3>getBooleanParameter</H3><PRE>public static boolean <B>getBooleanParameter</B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, boolean defaultVal)</PRE><DL><DD>Returns a parameter as a boolean.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the HttpServletRequest object, known as "request" in a JSP page.<DD><CODE>name</CODE> - the name of the parameter you want to get<DT><B>Returns:</B><DD>true if the value of the parameter was "true", false otherwise.</DL></DD></DL><HR><A NAME="getIntParameter(javax.servlet.http.HttpServletRequest, java.lang.String, int)"><!-- --></A><H3>getIntParameter</H3><PRE>public static int <B>getIntParameter</B>(javax.servlet.http.HttpServletRequest request, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, int defaultNum)</PRE><DL><DD>Returns a parameter as an int.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the HttpServletRequest object, known as "request" in a JSP page.<DD><CODE>name</CODE> - the name of the parameter you want to get<DT><B>Returns:</B><DD>the int value of the parameter specified or the default value if the parameter is not found.</DL></DD></DL><HR><A NAME="getIntParameters(javax.servlet.http.HttpServletRequest, java.lang.String, int)"><!-- --></A><H3>getIntParameters</H3><PRE>public static int[] <B>getIntParameters</B>(javax.servlet.http.HttpServletRequest request,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -