📄 httpservletrequestwrapper.html
字号:
on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getDateHeader(java.lang.String)">getDateHeader</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> specifying the name of the header<DT><B>Returns:</B><DD>a <code>long</code> value representing the date specified in the header expressed as the number of milliseconds since January 1, 1970 GMT, or -1 if the named header was not included with the reqest<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - If the header value can't be converted to a date</DL></DD></DL><HR><A NAME="getHeader(java.lang.String)"><!-- --></A><H3>getHeader</H3><PRE>public java.lang.String <B>getHeader</B>(java.lang.String name)</PRE><DL><DD>The default behavior of this method is to return getHeader(String name) on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getHeader(java.lang.String)">getHeader</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> specifying the header name<DT><B>Returns:</B><DD>a <code>String</code> containing the value of the requested header, or <code>null</code> if the request does not have a header of that name</DL></DD></DL><HR><A NAME="getHeaders(java.lang.String)"><!-- --></A><H3>getHeaders</H3><PRE>public java.util.Enumeration <B>getHeaders</B>(java.lang.String name)</PRE><DL><DD>The default behavior of this method is to return getHeaders(String name) on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getHeaders(java.lang.String)">getHeaders</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> specifying the header name<DT><B>Returns:</B><DD>an <code>Enumeration</code> containing the values of the requested header. If the request does not have any headers of that name return an empty enumeration. If the container does not allow access to header information, return null</DL></DD></DL><HR><A NAME="getHeaderNames()"><!-- --></A><H3>getHeaderNames</H3><PRE>public java.util.Enumeration <B>getHeaderNames</B>()</PRE><DL><DD>The default behavior of this method is to return getHeaderNames() on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getHeaderNames()">getHeaderNames</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of all the header names sent with this request; if the request has no headers, an empty enumeration; if the servlet container does not allow servlets to use this method, <code>null</code></DL></DD></DL><HR><A NAME="getIntHeader(java.lang.String)"><!-- --></A><H3>getIntHeader</H3><PRE>public int <B>getIntHeader</B>(java.lang.String name)</PRE><DL><DD>The default behavior of this method is to return getIntHeader(String name) on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getIntHeader(java.lang.String)">getIntHeader</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> specifying the name of a request header<DT><B>Returns:</B><DD>an integer expressing the value of the request header or -1 if the request doesn't have a header of this name<DT><B>Throws:</B><DD>java.lang.NumberFormatException - If the header value can't be converted to an <code>int</code></DL></DD></DL><HR><A NAME="getMethod()"><!-- --></A><H3>getMethod</H3><PRE>public java.lang.String <B>getMethod</B>()</PRE><DL><DD>The default behavior of this method is to return getMethod() on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getMethod()">getMethod</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> specifying the name of the method with which this request was made</DL></DD></DL><HR><A NAME="getPathInfo()"><!-- --></A><H3>getPathInfo</H3><PRE>public java.lang.String <B>getPathInfo</B>()</PRE><DL><DD>The default behavior of this method is to return getPathInfo() on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getPathInfo()">getPathInfo</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code>, decoded by the web container, specifying extra path information that comes after the servlet path but before the query string in the request URL; or <code>null</code> if the URL does not have any extra path information</DL></DD></DL><HR><A NAME="getPathTranslated()"><!-- --></A><H3>getPathTranslated</H3><PRE>public java.lang.String <B>getPathTranslated</B>()</PRE><DL><DD>The default behavior of this method is to return getPathTranslated() on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getPathTranslated()">getPathTranslated</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> specifying the real path, or <code>null</code> if the URL does not have any extra path information</DL></DD></DL><HR><A NAME="getContextPath()"><!-- --></A><H3>getContextPath</H3><PRE>public java.lang.String <B>getContextPath</B>()</PRE><DL><DD>The default behavior of this method is to return getContextPath() on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getContextPath()">getContextPath</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> specifying the portion of the request URI that indicates the context of the request</DL></DD></DL><HR><A NAME="getQueryString()"><!-- --></A><H3>getQueryString</H3><PRE>public java.lang.String <B>getQueryString</B>()</PRE><DL><DD>The default behavior of this method is to return getQueryString() on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getQueryString()">getQueryString</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> containing the query string or <code>null</code> if the URL contains no query string. The value is not decoded by the container.</DL></DD></DL><HR><A NAME="getRemoteUser()"><!-- --></A><H3>getRemoteUser</H3><PRE>public java.lang.String <B>getRemoteUser</B>()</PRE><DL><DD>The default behavior of this method is to return getRemoteUser() on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getRemoteUser()">getRemoteUser</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> specifying the login of the user making this request, or <code>null</code if the user login is not known</DL></DD></DL><HR><A NAME="isUserInRole(java.lang.String)"><!-- --></A><H3>isUserInRole</H3><PRE>public boolean <B>isUserInRole</B>(java.lang.String role)</PRE><DL><DD>The default behavior of this method is to return isUserInRole(String role) on the wrapped request object.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/servlet/http/HttpServletRequest.html#isUserInRole(java.lang.String)">isUserInRole</A> in interface <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../javax/servlet/http/HttpServletRequest.html">HttpServletRequest</A></B></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>role</CODE> - a <code>String</code> specifying the name of the role<DT><B>Returns:</B><DD>a <code>boolean</code> indicating whether the user making this request belongs to a given role; <code>false</code> if the user has not been authenticated</DL></DD></DL><HR><A NAME="getUserPrincipal()"><!-- --></A><H3>getUserPrincipal</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -