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

📄 portletrequest.java.svn-base

📁 portal越来越流行了
💻 SVN-BASE
📖 第 1 页 / 共 3 页
字号:
   * empty <code>Enumeration</code>.    * <p>   * Only parameters targeted to the current portlet are returned.   *   *   * @return		an <code>Enumeration</code> of <code>String</code>   *			objects, each <code>String</code> containing   * 			the name of a request parameter; or an    *			empty <code>Enumeration</code> if the   *			request has no parameters.   */  public java.util.Enumeration<String> getParameterNames();  /**   * Returns an array of <code>String</code> objects containing    * all of the values the given request parameter has, or    * <code>null</code> if the parameter does not exist.   * The returned parameters are "x-www-form-urlencoded" decoded.   * <p>   * If the parameter has a single value, the array has a length   * of 1.   *   *   * @param name	a <code>String</code> containing the name of    *			the parameter the value of which is requested   *   * @return		an array of <code>String</code> objects    *			containing the parameter values.   *   * @see		#getParameter   *   * @exception  java.lang.IllegalArgumentException    *                            if name is <code>null</code>.   *   */  public String[] getParameterValues(String name);  /**    * Returns a <code>Map</code> of the parameters of this request.   * Request parameters are extra information sent with the request.     * The returned parameters are "x-www-form-urlencoded" decoded.   * <p>   * The values in the returned <code>Map</code> are from type   * String array (<code>String[]</code>).   * <p>   * If no parameters exist this method returns an empty <code>Map</code>.   *   * @return     an immutable <code>Map</code> containing parameter names as    *             keys and parameter values as map values, or an empty <code>Map</code>   *             if no parameters exist. The keys in the parameter   *             map are of type String. The values in the parameter map are of type   *             String array (<code>String[]</code>).   */  public java.util.Map<String, String[]> getParameterMap();  /**   * Returns a boolean indicating whether this request was made    * using a secure channel between client and the portal, such as HTTPS.   *    * @return  true, if the request was made using a secure channel.   */  public boolean isSecure();  /**   * Stores an attribute in this request.   *   * <p>Attribute names should follow the same conventions as   * package names. Names beginning with <code>java.*</code>,   * <code>javax.*</code>, and <code>com.sun.*</code> are   * reserved.   *<br> If the value passed into this method is <code>null</code>,    * the effect is the same as calling {@link #removeAttribute}.   *   *   * @param name			a <code>String</code> specifying    *					the name of the attribute   *   * @param o				the <code>Object</code> to be stored   *   *   * @exception  java.lang.IllegalArgumentException    *                            if name is <code>null</code>.   */    public void setAttribute(String name, Object o);  /**   *   * Removes an attribute from this request.  This method is not   * generally needed, as attributes only persist as long as the request   * is being handled.   *   * <p>Attribute names should follow the same conventions as   * package names. Names beginning with <code>java.*</code>,   * <code>javax.*</code>, and <code>com.sun.*</code> are   * reserved.   *   * @param name			a <code>String</code> specifying    *					the name of the attribute to be removed   *   *   * @exception  java.lang.IllegalArgumentException    *                            if name is <code>null</code>.   */  public void removeAttribute(String name);     /**   *   * Returns the session ID indicated in the client request.   * This session ID may not be a valid one, it may be an old    * one that has expired or has been invalidated.   * If the client request   * did not specify a session ID, this method returns   * <code>null</code>.   *   * @return		a <code>String</code> specifying the session   *			ID, or <code>null</code> if the request did   *			not specify a session ID   *   * @see		#isRequestedSessionIdValid   *   */  public String getRequestedSessionId();  /**   *   * Checks whether the requested session ID is still valid.   *   * @return			<code>true</code> if this   *				request has an id for a valid session   *				in the current session context;   *				<code>false</code> otherwise   *   * @see			#getRequestedSessionId   * @see			#getPortletSession   */  public boolean isRequestedSessionIdValid();  /**   * Returns the portal preferred content type for the response.   * <p>   * The following restrictions apply:   * <ul>   * <li>The content type only includes the MIME type, not the   * character set. The character set of the response   * can be retrieved via the {@link RenderResponse#getCharacterEncoding}.</li>   * <li>Only content types that the portlet has defined in its   * deployment descriptor are valid return values for   * this method call. If the portlet has defined   * <code>'*'</code> or <code>'* / *'</code> as supported content   * types, these may also be valid return values.</li>   * </ul>   *    * @return preferred MIME type of the response   */  public String getResponseContentType();  /**   * Gets a list of content types which the portal accepts for the response.   * This list is ordered with the most preferable types listed first.   * <p>   * The following restrictions apply:   * <ul>   * <li>The content type only includes the MIME type, not the   * character set.</li>   * <li>Only content types that the portlet has defined in its   * deployment descriptor are valid return values for   * this method call. If the portlet has defined   * <code>'*'</code> or <code>'* / *'</code> as supported content   * types, these may also be valid return values.</li>   * </ul>   *   * @return ordered list of MIME types for the response   */  public java.util.Enumeration<String> getResponseContentTypes();  /**   * Returns the preferred Locale in which the portal will accept content.   * The Locale may be based on the Accept-Language header of the client.   *   * @return  the preferred Locale in which the portal will accept content.   */  public java.util.Locale getLocale();  /**   * Returns an Enumeration of Locale objects indicating, in decreasing   * order starting with the preferred locale in which the portal will   * accept content for this request.   * The Locales may be based on the Accept-Language header of the client.   *    * @return  an Enumeration of Locales, in decreasing order, in which    *           the portal will accept content for this request   */  public java.util.Enumeration<Locale> getLocales();  /**   * Returns the name of the scheme used to make this request.   * For example, <code>http</code>, <code>https</code>, or <code>ftp</code>.   * Different schemes have different rules for constructing URLs,   * as noted in RFC 1738.   *   * @return		a <code>String</code> containing the name    *			of the scheme used to make this request   */  public String getScheme();      /**   * Returns the host name of the server that received the request.   *   * @return		a <code>String</code> containing the name    *			of the server to which the request was sent   */  public String getServerName();          /**   * Returns the port number on which this request was received.   *   * @return		an integer specifying the port number   */  public int getServerPort();  /**   * Returns the portlet window ID. The portlet window ID is    * unique for this portlet window and is constant for the lifetime   * of the portlet window.   * <p>   * This ID is the same that is used by the portlet container for   * scoping the portlet-scope session attributes.   *    * @since 2.0   * @return  the portlet window ID   */  public String getWindowID();      /**   * Returns an array containing all of the Cookie properties.    * <p>   * This method returns <code>null</code> if no cookies exist.   *    * @since 2.0   * @return  array of cookie properties, or    *          <code>null</code> if no cookies exist.   * @see MimeResponse#addProperty(Cookie)    */  public javax.servlet.http.Cookie[] getCookies();    /**   * Returns a <code>Map</code> of the private parameters of this request.   * Private parameters are not shared with other portlets or components.     * The returned parameters are "x-www-form-urlencoded" decoded.   * <p>   * The values in the returned <code>Map</code> are from type   * String array (<code>String[]</code>).   * <p>   * If no private parameters exist this method returns an empty <code>Map</code>.   *   * @since 2.0   * @return     an immutable <code>Map</code> containing private parameter names as    *             keys and private parameter values as map values, or an empty <code>Map</code>   *             if no private parameters exist. The keys in the parameter   *             map are of type String. The values in the parameter map are of type   *             String array (<code>String[]</code>).   */  public java.util.Map<String, String[]> getPrivateParameterMap();    /**   * Returns a <code>Map</code> of the public parameters of this request.   * Public parameters may be shared with other portlets or components and   * defined in the portlet deployment descriptor with the    * <code>supported-public-render-parameter</code> element.     * The returned parameters are "x-www-form-urlencoded" decoded.   * <p>   * The values in the returned <code>Map</code> are from type   * String array (<code>String[]</code>).   * <p>   * If no public parameters exist this method returns an empty <code>Map</code>.   *   * @since 2.0   * @return     an immutable <code>Map</code> containing public parameter names as    *             keys and public parameter values as map values, or an empty <code>Map</code>   *             if no public parameters exist. The keys in the parameter   *             map are of type String. The values in the parameter map are of type   *             String array (<code>String[]</code>).   */  public java.util.Map<String, String[]> getPublicParameterMap();}

⌨️ 快捷键说明

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