org.apache.pluto.portlet
Class ActionRequestWrapper

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.apache.pluto.portlet.PortletRequestWrapper
              extended by org.apache.pluto.portlet.ActionRequestWrapper
All Implemented Interfaces:
javax.portlet.ActionRequest, javax.portlet.PortletRequest, javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class ActionRequestWrapper
extends PortletRequestWrapper
implements javax.portlet.ActionRequest


Field Summary
 
Fields inherited from interface javax.portlet.PortletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
ActionRequestWrapper(javax.portlet.ActionRequest actionRequest)
          Creates a ServletRequest adaptor wrapping the given request object.
 
Method Summary
 javax.portlet.ActionRequest getActionRequest()
          Return the wrapped ServletRequest object.
 java.lang.String getCharacterEncoding()
           
 int getContentLength()
           
 java.lang.String getContentType()
           
 java.io.InputStream getPortletInputStream()
           
 java.io.BufferedReader getReader()
           
 void setCharacterEncoding(java.lang.String enc)
           
 
Methods inherited from class org.apache.pluto.portlet.PortletRequestWrapper
getAttribute, getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletRequest, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute, setRequest
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRequestURI, getRequestURL, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getInputStream, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRequest, getRequestDispatcher, setRequest
 
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
 
Methods inherited from interface javax.servlet.ServletRequest
getInputStream, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher
 

Constructor Detail

ActionRequestWrapper

public ActionRequestWrapper(javax.portlet.ActionRequest actionRequest)
Creates a ServletRequest adaptor wrapping the given request object.

Throws:
java.lang.IllegalArgumentException - if the request is null.
Method Detail

getPortletInputStream

public java.io.InputStream getPortletInputStream()
                                          throws java.io.IOException
Specified by:
getPortletInputStream in interface javax.portlet.ActionRequest
Throws:
java.io.IOException

setCharacterEncoding

public void setCharacterEncoding(java.lang.String enc)
                          throws java.io.UnsupportedEncodingException
Specified by:
setCharacterEncoding in interface javax.portlet.ActionRequest
Specified by:
setCharacterEncoding in interface javax.servlet.ServletRequest
Overrides:
setCharacterEncoding in class javax.servlet.ServletRequestWrapper
Throws:
java.io.UnsupportedEncodingException

getReader

public java.io.BufferedReader getReader()
                                 throws java.io.UnsupportedEncodingException,
                                        java.io.IOException
Specified by:
getReader in interface javax.portlet.ActionRequest
Specified by:
getReader in interface javax.servlet.ServletRequest
Overrides:
getReader in class javax.servlet.ServletRequestWrapper
Throws:
java.io.UnsupportedEncodingException
java.io.IOException

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface javax.portlet.ActionRequest
Specified by:
getCharacterEncoding in interface javax.servlet.ServletRequest
Overrides:
getCharacterEncoding in class javax.servlet.ServletRequestWrapper

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface javax.portlet.ActionRequest
Specified by:
getContentType in interface javax.servlet.ServletRequest
Overrides:
getContentType in class javax.servlet.ServletRequestWrapper

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface javax.portlet.ActionRequest
Specified by:
getContentLength in interface javax.servlet.ServletRequest
Overrides:
getContentLength in class javax.servlet.ServletRequestWrapper

getActionRequest

public javax.portlet.ActionRequest getActionRequest()
Return the wrapped ServletRequest object.



Copyright © 2003-2009 . All Rights Reserved.