📄 portletrequest.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#getParameterValues(java.lang.String)">getParameterValues</A></B>(java.lang.String name)</CODE><BR> <B>Deprecated.</B> Returns the values of all parameters with the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/apache/jetspeed/portlet/PortletSession.html" title="interface in org.apache.jetspeed.portlet">PortletSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#getPortletSession()">getPortletSession</A></B>()</CODE><BR> <B>Deprecated.</B> Returns the current session for the portlet or, if there is no current portlet session, creates one and returns it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/apache/jetspeed/portlet/PortletSession.html" title="interface in org.apache.jetspeed.portlet">PortletSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#getPortletSession(boolean)">getPortletSession</A></B>(boolean create)</CODE><BR> <B>Deprecated.</B> Returns the current session for the portlet or, if there is no current portlet session and the given flag is <CODE>true</CODE>, creates one and returns it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/apache/jetspeed/portlet/PortletSettings.html" title="interface in org.apache.jetspeed.portlet">PortletSettings</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#getPortletSettings()">getPortletSettings</A></B>()</CODE><BR> <B>Deprecated.</B> Returns the <CODE>PortletSettings</CODE> object of the concrete portlet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/apache/jetspeed/portlet/Portlet.Mode.html" title="class in org.apache.jetspeed.portlet">Portlet.Mode</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#getPreviousMode()">getPreviousMode</A></B>()</CODE><BR> <B>Deprecated.</B> Returns the last mode that is kept for this portlet on the mode stack, or <CODE>null</CODE> if no previous mode exists.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/apache/jetspeed/portlet/User.html" title="interface in org.apache.jetspeed.portlet">User</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#getUser()">getUser</A></B>()</CODE><BR> <B>Deprecated.</B> Returns the user object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/apache/jetspeed/portlet/PortletWindow.html" title="interface in org.apache.jetspeed.portlet">PortletWindow</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#getWindow()">getWindow</A></B>()</CODE><BR> <B>Deprecated.</B> Returns the window that the portlet is running in.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#invalidateCache()">invalidateCache</A></B>()</CODE><BR> <B>Deprecated.</B> Invalidates the cache for all window states, markups and locals</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#isSecure()">isSecure</A></B>()</CODE><BR> <B>Deprecated.</B> Returns whether this request was made using a secure channel, such as HTTPS.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#removeAttribute(java.lang.String)">removeAttribute</A></B>(java.lang.String name)</CODE><BR> <B>Deprecated.</B> Removes the attribute with the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#setAttribute(java.lang.String, java.lang.Object)">setAttribute</A></B>(java.lang.String name, java.lang.Object value)</CODE><BR> <B>Deprecated.</B> Associates an attribute with the given name and value with this request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html#setModeModifier(org.apache.jetspeed.portlet.Portlet.ModeModifier)">setModeModifier</A></B>(<A HREF="../../../../org/apache/jetspeed/portlet/Portlet.ModeModifier.html" title="class in org.apache.jetspeed.portlet">Portlet.ModeModifier</A> modeModifier)</CODE><BR> <B>Deprecated.</B> Defines which portlet mode is shown next.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.servlet.http.HttpServletRequest"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface javax.servlet.http.HttpServletRequest</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getAuthType, getContextPath, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.servlet.ServletRequest"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface javax.servlet.ServletRequest</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getCharacterEncoding, getContentLength, getContentType, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, setCharacterEncoding</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getMode()"><!-- --></A><H3>getMode</H3><PRE>public <A HREF="../../../../org/apache/jetspeed/portlet/Portlet.Mode.html" title="class in org.apache.jetspeed.portlet">Portlet.Mode</A> <B>getMode</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the mode that the portlet is running in.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the portlet mode</DL></DD></DL><HR><A NAME="getPreviousMode()"><!-- --></A><H3>getPreviousMode</H3><PRE>public <A HREF="../../../../org/apache/jetspeed/portlet/Portlet.Mode.html" title="class in org.apache.jetspeed.portlet">Portlet.Mode</A> <B>getPreviousMode</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the last mode that is kept for this portlet on the mode stack, or <CODE>null</CODE> if no previous mode exists. <p> Note that the result is not necessarily the last mode that this portlet was running in. For example, if the portlet starts in view mode, changes to edit mode and then goes back to view mode through a return URL or by using <CODE>PortletMode.ModeModifier.PREVIOUS</CODE>, then <CODE>getPreviousMode</CODE> will return <CODE>null</CODE> because the edit mode has already been removed from the stack.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the previous portlet mode</DL></DD></DL><HR><A NAME="setModeModifier(org.apache.jetspeed.portlet.Portlet.ModeModifier)"><!-- --></A><H3>setModeModifier</H3><PRE>public void <B>setModeModifier</B>(<A HREF="../../../../org/apache/jetspeed/portlet/Portlet.ModeModifier.html" title="class in org.apache.jetspeed.portlet">Portlet.ModeModifier</A> modeModifier) throws <A HREF="../../../../org/apache/jetspeed/portlet/AccessDeniedException.html" title="class in org.apache.jetspeed.portlet">AccessDeniedException</A></PRE><DL><DD><B>Deprecated.</B> <DD>Defines which portlet mode is shown next. Once the mode is changed it cannot be changed back to <CODE>Portlet.ModeModifier.REQUESTED</CODE>. <P> This function may only be used during event processing, in any other case the call has no effect.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>modeModifier</CODE> - the mode modifier<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/jetspeed/portlet/AccessDeniedException.html" title="class in org.apache.jetspeed.portlet">AccessDeniedException</A></CODE> - if the portlet tries to access this function outside of the action event processing</DL></DD></DL><HR><A NAME="getMethod()"><!-- --></A><H3>getMethod</H3><PRE>public java.lang.String <B>getMethod</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the HTTP method of this request. The most commonly used request methods are GET and POST.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getMethod</CODE> in interface <CODE>javax.servlet.http.HttpServletRequest</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the method</DL></DD></DL><HR><A NAME="getInputStream()"><!-- --></A><H3>getInputStream</H3><PRE>public javax.servlet.ServletInputStream <B>getInputStream</B>() throws java.io.IOException</PRE><DL><DD><B>Deprecated.</B> <DD>Retrieves the body of the request as binary data using an <CODE>InputStream</CODE>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getInputStream</CODE> in interface <CODE>javax.servlet.ServletRequest</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an input stream containing the body of the request<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the portlet tries to access this function outside of the action event processing<DD><CODE>java.io.IOException</CODE> - if an input or output exception occurred</DL></DD></DL><HR><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public java.util.Locale <B>getLocale</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the locale of the preferred language. The preference is based on the user's choice of language(s) and/or the client's Accept-Language header. <P> If more than one language is preferred, the locale returned by this method is the one with the highest preference.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getLocale</CODE> in interface <CODE>javax.servlet.ServletRequest</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the locale of the preferred language</DL></DD></DL><HR><A NAME="getLocales()"><!-- --></A><H3>getLocales</H3><PRE>public java.util.Enumeration <B>getLocales</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns an <code>Enumeration</code> of <code>Locale</code> objects indicating, in decreasing order starting with the preferred locale, the locales that are acceptable to the client based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns an <code>Enumeration</code> containing one <code>Locale</code>, the default locale for the server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getLocales</CODE> in interface <CODE>javax.servlet.ServletRequest</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an <code>Enumeration</code> of preferred <code>Locale</code> objects for the client</DL></DD></DL><HR><A NAME="getClient()"><!-- --></A><H3>getClient</H3><PRE>public <A HREF="../../../../org/apache/jetspeed/portlet/Client.html" title="interface in org.apache.jetspeed.portlet">Client</A> <B>getClient</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns an object representing the client device that the user connects to the portal with.<P><DD><DL></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -