@Deprecated public class MultipartActionRequestWrapper extends Object implements javax.portlet.ActionRequest
FileItem
s
in the MultipartUtils.FILE_ITEMS
request attribute.Modifier and Type | Field and Description |
---|---|
protected Map<String,String[]> |
m_aggregateParams
Deprecated.
Aggregation of params from multipart body plus params from request url.
|
protected org.apache.commons.fileupload.FileItemFactory |
m_fileItemFactory
Deprecated.
Specified FileItem factory.
|
protected int |
m_maxSize
Deprecated.
Specified max allowed upload size in bytes (negative signals no max size).
|
protected Map<String,String[]> |
m_multipartParams
Deprecated.
Params from multipart body.
|
protected javax.portlet.ActionRequest |
m_parent
Deprecated.
Super ActionRequest.
|
Constructor and Description |
---|
MultipartActionRequestWrapper(javax.portlet.ActionRequest parent,
int maxSize,
org.apache.commons.fileupload.FileItemFactory fileItemFactory)
Deprecated.
New multipart request wrapper.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Deprecated.
|
Enumeration<String> |
getAttributeNames()
Deprecated.
|
String |
getAuthType()
Deprecated.
|
String |
getCharacterEncoding()
Deprecated.
|
int |
getContentLength()
Deprecated.
|
String |
getContentType()
Deprecated.
|
String |
getContextPath()
Deprecated.
|
Locale |
getLocale()
Deprecated.
|
Enumeration<Locale> |
getLocales()
Deprecated.
|
String |
getParameter(String name)
Deprecated.
|
Map<String,String[]> |
getParameterMap()
Deprecated.
|
Enumeration<String> |
getParameterNames()
Deprecated.
|
String[] |
getParameterValues(String name)
Deprecated.
|
javax.portlet.PortalContext |
getPortalContext()
Deprecated.
|
InputStream |
getPortletInputStream()
Deprecated.
|
javax.portlet.PortletMode |
getPortletMode()
Deprecated.
|
javax.portlet.PortletSession |
getPortletSession()
Deprecated.
|
javax.portlet.PortletSession |
getPortletSession(boolean create)
Deprecated.
|
javax.portlet.PortletPreferences |
getPreferences()
Deprecated.
|
Enumeration<?> |
getProperties(String name)
Deprecated.
|
String |
getProperty(String name)
Deprecated.
|
Enumeration<String> |
getPropertyNames()
Deprecated.
|
BufferedReader |
getReader()
Deprecated.
|
String |
getRemoteUser()
Deprecated.
|
String |
getRequestedSessionId()
Deprecated.
|
String |
getResponseContentType()
Deprecated.
|
Enumeration<String> |
getResponseContentTypes()
Deprecated.
|
String |
getScheme()
Deprecated.
|
String |
getServerName()
Deprecated.
|
int |
getServerPort()
Deprecated.
|
Principal |
getUserPrincipal()
Deprecated.
|
javax.portlet.WindowState |
getWindowState()
Deprecated.
|
boolean |
isPortletModeAllowed(javax.portlet.PortletMode mode)
Deprecated.
|
boolean |
isRequestedSessionIdValid()
Deprecated.
|
boolean |
isSecure()
Deprecated.
|
boolean |
isUserInRole(String role)
Deprecated.
|
boolean |
isWindowStateAllowed(javax.portlet.WindowState state)
Deprecated.
|
protected void |
parseRequest()
Deprecated.
Parses request for multipart info.
|
void |
removeAttribute(String name)
Deprecated.
|
void |
setAttribute(String name,
Object value)
Deprecated.
|
void |
setCharacterEncoding(String encoding)
Deprecated.
|
protected Map<String,String[]> m_multipartParams
protected Map<String,String[]> m_aggregateParams
protected org.apache.commons.fileupload.FileItemFactory m_fileItemFactory
protected int m_maxSize
protected javax.portlet.ActionRequest m_parent
public MultipartActionRequestWrapper(javax.portlet.ActionRequest parent, int maxSize, org.apache.commons.fileupload.FileItemFactory fileItemFactory)
parent
- Request to wrap.maxSize
- Max upload file size in bytes.fileItemFactory
- FileItem
factory to use.public String getCharacterEncoding()
getCharacterEncoding
in interface javax.portlet.ActionRequest
public int getContentLength()
getContentLength
in interface javax.portlet.ActionRequest
public String getContentType()
getContentType
in interface javax.portlet.ActionRequest
public InputStream getPortletInputStream() throws IOException
getPortletInputStream
in interface javax.portlet.ActionRequest
IOException
public BufferedReader getReader() throws UnsupportedEncodingException, IOException
getReader
in interface javax.portlet.ActionRequest
UnsupportedEncodingException
IOException
public void setCharacterEncoding(String encoding) throws UnsupportedEncodingException
setCharacterEncoding
in interface javax.portlet.ActionRequest
UnsupportedEncodingException
public Object getAttribute(String name)
getAttribute
in interface javax.portlet.PortletRequest
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface javax.portlet.PortletRequest
public String getAuthType()
getAuthType
in interface javax.portlet.PortletRequest
public String getContextPath()
getContextPath
in interface javax.portlet.PortletRequest
public Locale getLocale()
getLocale
in interface javax.portlet.PortletRequest
public Enumeration<Locale> getLocales()
getLocales
in interface javax.portlet.PortletRequest
public String getParameter(String name)
getParameter
in interface javax.portlet.PortletRequest
public Map<String,String[]> getParameterMap()
getParameterMap
in interface javax.portlet.PortletRequest
public Enumeration<String> getParameterNames()
getParameterNames
in interface javax.portlet.PortletRequest
public String[] getParameterValues(String name)
getParameterValues
in interface javax.portlet.PortletRequest
public javax.portlet.PortalContext getPortalContext()
getPortalContext
in interface javax.portlet.PortletRequest
public javax.portlet.PortletMode getPortletMode()
getPortletMode
in interface javax.portlet.PortletRequest
public javax.portlet.PortletSession getPortletSession()
getPortletSession
in interface javax.portlet.PortletRequest
public javax.portlet.PortletSession getPortletSession(boolean create)
getPortletSession
in interface javax.portlet.PortletRequest
public javax.portlet.PortletPreferences getPreferences()
getPreferences
in interface javax.portlet.PortletRequest
public Enumeration<?> getProperties(String name)
getProperties
in interface javax.portlet.PortletRequest
public String getProperty(String name)
getProperty
in interface javax.portlet.PortletRequest
public Enumeration<String> getPropertyNames()
getPropertyNames
in interface javax.portlet.PortletRequest
public String getRemoteUser()
getRemoteUser
in interface javax.portlet.PortletRequest
public String getRequestedSessionId()
getRequestedSessionId
in interface javax.portlet.PortletRequest
public String getResponseContentType()
getResponseContentType
in interface javax.portlet.PortletRequest
public Enumeration<String> getResponseContentTypes()
getResponseContentTypes
in interface javax.portlet.PortletRequest
public String getScheme()
getScheme
in interface javax.portlet.PortletRequest
public String getServerName()
getServerName
in interface javax.portlet.PortletRequest
public int getServerPort()
getServerPort
in interface javax.portlet.PortletRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface javax.portlet.PortletRequest
public javax.portlet.WindowState getWindowState()
getWindowState
in interface javax.portlet.PortletRequest
public boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
isPortletModeAllowed
in interface javax.portlet.PortletRequest
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid
in interface javax.portlet.PortletRequest
public boolean isSecure()
isSecure
in interface javax.portlet.PortletRequest
public boolean isUserInRole(String role)
isUserInRole
in interface javax.portlet.PortletRequest
public boolean isWindowStateAllowed(javax.portlet.WindowState state)
isWindowStateAllowed
in interface javax.portlet.PortletRequest
public void removeAttribute(String name)
removeAttribute
in interface javax.portlet.PortletRequest
public void setAttribute(String name, Object value)
setAttribute
in interface javax.portlet.PortletRequest
protected void parseRequest()