org.apache.myfaces.trinidadinternal.webapp.wrappers
Class ActionRequestWrapper

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.webapp.wrappers.PortletRequestWrapper
      extended by org.apache.myfaces.trinidadinternal.webapp.wrappers.ActionRequestWrapper
All Implemented Interfaces:
javax.portlet.ActionRequest, javax.portlet.PortletRequest

public class ActionRequestWrapper
extends PortletRequestWrapper
implements javax.portlet.ActionRequest

Wrapper for the native ActionRequest object. Unlike the servlet wrappers, Portlet Request/Response wrapping is not supported by JSR-160. Therefore it is important to use the PortletContextWrapper when retrieving the PortletRequestDispatcher. This will give you a special dispatcher that is aware of the wrapping and will deploy the underlying PortletRequest/Response implementations.

Version:
$Revision$ $Date$
Author:
Scott O'Bryan (latest modification by $Author$)

Field Summary
 
Fields inherited from interface javax.portlet.PortletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO
 
Constructor Summary
ActionRequestWrapper(javax.portlet.ActionRequest request)
           
 
Method Summary
 java.lang.String getCharacterEncoding()
           
 int getContentLength()
           
 java.lang.String getContentType()
           
 java.io.InputStream getPortletInputStream()
           
 java.io.BufferedReader getReader()
           
 void setCharacterEncoding(java.lang.String arg0)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.webapp.wrappers.PortletRequestWrapper
getAttribute, getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, getRequest, 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(javax.portlet.ActionRequest request)
Method Detail

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface javax.portlet.ActionRequest

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface javax.portlet.ActionRequest

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface javax.portlet.ActionRequest

getPortletInputStream

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

getReader

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

setCharacterEncoding

public void setCharacterEncoding(java.lang.String arg0)
                          throws java.io.UnsupportedEncodingException
Specified by:
setCharacterEncoding in interface javax.portlet.ActionRequest
Throws:
java.io.UnsupportedEncodingException


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.