public class DefaultMultipartActionRequest extends javax.portlet.filter.ActionRequestWrapper implements MultipartActionRequest
MultipartActionRequest
interface. Provides management of pre-generated
parameter values.PortletMultipartResolver
Modifier | Constructor and Description |
---|---|
protected |
DefaultMultipartActionRequest(javax.portlet.ActionRequest request)
Wrap the given Portlet ActionRequest in a MultipartActionRequest.
|
|
DefaultMultipartActionRequest(javax.portlet.ActionRequest request,
MultiValueMap<String,MultipartFile> mpFiles,
Map<String,String[]> mpParams,
Map<String,String> mpParamContentTypes)
Wrap the given Portlet ActionRequest in a MultipartActionRequest.
|
Modifier and Type | Method and Description |
---|---|
MultipartFile |
getFile(String name) |
Map<String,MultipartFile> |
getFileMap() |
Iterator<String> |
getFileNames() |
List<MultipartFile> |
getFiles(String name) |
MultiValueMap<String,MultipartFile> |
getMultiFileMap() |
String |
getMultipartContentType(String paramOrFileName) |
protected MultiValueMap<String,MultipartFile> |
getMultipartFiles()
Obtain the MultipartFile Map for retrieval, lazily initializing it if necessary.
|
protected Map<String,String> |
getMultipartParameterContentTypes()
Obtain the multipart parameter content type Map for retrieval, lazily initializing it if necessary.
|
protected Map<String,String[]> |
getMultipartParameters()
Obtain the multipart parameter Map for retrieval, lazily initializing it if necessary.
|
String |
getParameter(String name) |
Map<String,String[]> |
getParameterMap() |
Enumeration<String> |
getParameterNames() |
String[] |
getParameterValues(String name) |
protected void |
initializeMultipart()
Lazily initialize the multipart request, if possible.
|
protected void |
setMultipartFiles(MultiValueMap<String,MultipartFile> multipartFiles)
Set a Map with parameter names as keys and list of MultipartFile objects as values.
|
protected void |
setMultipartParameterContentTypes(Map<String,String> multipartParameterContentTypes)
Set a Map with parameter names as keys and content type Strings as values.
|
protected void |
setMultipartParameters(Map<String,String[]> multipartParameters)
Set a Map with parameter names as keys and String array objects as values.
|
getActionParameters, getRequest, setRequest
getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getMethod, getPart, getParts, getPortletInputStream, getReader, setCharacterEncoding, setRequest
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getPortalContext, getPortletContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRenderParameters, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserAgent, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute, setRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getMethod, getPart, getParts, getPortletInputStream, getReader, setCharacterEncoding
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getPortalContext, getPortletContext, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserAgent, getUserPrincipal, getWindowID, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
public DefaultMultipartActionRequest(javax.portlet.ActionRequest request, MultiValueMap<String,MultipartFile> mpFiles, Map<String,String[]> mpParams, Map<String,String> mpParamContentTypes)
request
- the request to wrapmpFiles
- a map of the multipart filesmpParams
- a map of the parameters to expose, with Strings as keys and String arrays as valuesprotected DefaultMultipartActionRequest(javax.portlet.ActionRequest request)
request
- the request to wrappublic MultipartFile getFile(String name)
getFile
in interface MultipartRequest
public Map<String,MultipartFile> getFileMap()
getFileMap
in interface MultipartRequest
public Iterator<String> getFileNames()
getFileNames
in interface MultipartRequest
public List<MultipartFile> getFiles(String name)
getFiles
in interface MultipartRequest
public MultiValueMap<String,MultipartFile> getMultiFileMap()
getMultiFileMap
in interface MultipartRequest
public String getMultipartContentType(String paramOrFileName)
getMultipartContentType
in interface MultipartRequest
public String getParameter(String name)
getParameter
in interface javax.portlet.PortletRequest
getParameter
in class javax.portlet.filter.PortletRequestWrapper
public Map<String,String[]> getParameterMap()
getParameterMap
in interface javax.portlet.PortletRequest
getParameterMap
in class javax.portlet.filter.PortletRequestWrapper
public Enumeration<String> getParameterNames()
getParameterNames
in interface javax.portlet.PortletRequest
getParameterNames
in class javax.portlet.filter.PortletRequestWrapper
public String[] getParameterValues(String name)
getParameterValues
in interface javax.portlet.PortletRequest
getParameterValues
in class javax.portlet.filter.PortletRequestWrapper
protected MultiValueMap<String,MultipartFile> getMultipartFiles()
initializeMultipart()
protected Map<String,String> getMultipartParameterContentTypes()
initializeMultipart()
protected Map<String,String[]> getMultipartParameters()
initializeMultipart()
protected void initializeMultipart()
protected final void setMultipartFiles(MultiValueMap<String,MultipartFile> multipartFiles)
protected final void setMultipartParameterContentTypes(Map<String,String> multipartParameterContentTypes)
Copyright © 2019 Liferay, Inc.. All rights reserved.