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

📄 httpservletrequestwrapper.html

📁 j2ee帮助文档软件设计/软件工程 文件格式
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getHeader(java.lang.String)">getHeader</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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 <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Enumeration.html" title="class or interface in java.util">Enumeration</A> <B>getHeaders</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name)</PRE><DL><DD>The default behavior of this method is to return getHeaders(String name) on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getHeaders(java.lang.String)">getHeaders</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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 <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Enumeration.html" title="class or interface in java.util">Enumeration</A> <B>getHeaderNames</B>()</PRE><DL><DD>The default behavior of this method is to return getHeaderNames() on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getHeaderNames()">getHeaderNames</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name)</PRE><DL><DD>The default behavior of this method is to return getIntHeader(String name) on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getIntHeader(java.lang.String)">getIntHeader</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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</DL></DD></DL><HR><A NAME="getMethod()"><!-- --></A><H3>getMethod</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getMethod</B>()</PRE><DL><DD>The default behavior of this method is to return getMethod() on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getMethod()">getMethod</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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 <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getPathInfo</B>()</PRE><DL><DD>The default behavior of this method is to return getPathInfo() on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getPathInfo()">getPathInfo</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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 <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getPathTranslated</B>()</PRE><DL><DD>The default behavior of this method is to return getPathTranslated() on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getPathTranslated()">getPathTranslated</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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 <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getContextPath</B>()</PRE><DL><DD>The default behavior of this method is to return getContextPath() on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getContextPath()">getContextPath</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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<DT><B>See Also:</B><DD><A HREF="../../../javax/servlet/ServletContext.html#getContextPath()"><CODE>ServletContext.getContextPath()</CODE></A></DL></DD></DL><HR><A NAME="getQueryString()"><!-- --></A><H3>getQueryString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getQueryString</B>()</PRE><DL><DD>The default behavior of this method is to return getQueryString() on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getQueryString()">getQueryString</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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 <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getRemoteUser</B>()</PRE><DL><DD>The default behavior of this method is to return getRemoteUser() on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getRemoteUser()">getRemoteUser</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;role)</PRE><DL><DD>The default behavior of this method is to return isUserInRole(String role) on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#isUserInRole(java.lang.String)">isUserInRole</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></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><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/security/Principal.html" title="class or interface in java.security">Principal</A> <B>getUserPrincipal</B>()</PRE><DL><DD>The default behavior of this method is to return getUserPrincipal() on the wrapped request object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html#getUserPrincipal()">getUserPrincipal</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/http/HttpServletRequest.html" title="interface in javax.servlet.http">HttpServletRequest</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>java.security.Principal</code> containing                        the name of the user making this request;                        <code>null</code> if the user has not been                         authenticated</DL></DD></DL><HR><A NAME="getRequestedSessionId()"><!-- --></A><H3>getRequestedSessionId</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getRequestedSessionId</B>()</PRE><DL><DD>The default behavior of this method is to return getRequestedSessionId()

⌨️ 快捷键说明

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