站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

ActionRequestWrapper (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.web.portlet.util
Class ActionRequestWrapper

java.lang.Object
  extended by org.springframework.web.portlet.util.PortletRequestWrapper
      extended by org.springframework.web.portlet.util.ActionRequestWrapper
All Implemented Interfaces:
ActionRequest, PortletRequest
Direct Known Subclasses:
DefaultMultipartActionRequest

public class ActionRequestWrapper
extends PortletRequestWrapper
implements ActionRequest

Simple wrapper for a Portlet ActionRequest, delegating all calls to the underlying request.

(In the style of the Servlet API's HttpServletRequestWrapper.)

Since:
2.0
Author:
Juergen Hoeller
See Also:
ActionRequestWrapper, HttpServletRequestWrapper

Field Summary
 
Fields inherited from interface javax.portlet.PortletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO
 
Constructor Summary
ActionRequestWrapper(ActionRequest request)
          Create a ActionRequestWrapper for the given request.
 
Method Summary
 String getCharacterEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 InputStream getPortletInputStream()
           
 BufferedReader getReader()
           
 void setCharacterEncoding(String enc)
           
 
Methods inherited from class org.springframework.web.portlet.util.PortletRequestWrapper
getAttribute, getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.portlet.PortletRequest
getAttribute, getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
 

Constructor Detail

ActionRequestWrapper

public ActionRequestWrapper(ActionRequest request)
Create a ActionRequestWrapper for the given request.

Parameters:
request - the original request to wrap
Throws:
IllegalArgumentException - if the supplied request is null
Method Detail

getPortletInputStream

public InputStream getPortletInputStream()
                                  throws IOException
Specified by:
getPortletInputStream in interface ActionRequest
Throws:
IOException

setCharacterEncoding

public void setCharacterEncoding(String enc)
                          throws UnsupportedEncodingException
Specified by:
setCharacterEncoding in interface ActionRequest
Throws:
UnsupportedEncodingException

getReader

public BufferedReader getReader()
                         throws IOException
Specified by:
getReader in interface ActionRequest
Throws:
IOException

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface ActionRequest

getContentType

public String getContentType()
Specified by:
getContentType in interface ActionRequest

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface ActionRequest

The Spring Framework

Copyright © 2002-2007 The Spring Framework.