public class DefaultMultipartActionRequest extends ActionRequestWrapper implements MultipartActionRequest
MultipartActionRequest
interface.
Provides management of pre-generated parameter values.PortletMultipartResolver
PortletRequest.P3PUserInfos
ACTION_NAME
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO
Modifier | Constructor and Description |
---|---|
protected |
DefaultMultipartActionRequest(ActionRequest request)
Wrap the given Portlet ActionRequest in a MultipartActionRequest.
|
|
DefaultMultipartActionRequest(ActionRequest request,
org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.MultipartFile> mpFiles,
Map<String,String[]> mpParams,
Map<String,String> mpParamContentTypes)
Wrap the given Portlet ActionRequest in a MultipartActionRequest.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.web.multipart.MultipartFile |
getFile(String name) |
Map<String,org.springframework.web.multipart.MultipartFile> |
getFileMap() |
Iterator<String> |
getFileNames() |
List<org.springframework.web.multipart.MultipartFile> |
getFiles(String name) |
org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.MultipartFile> |
getMultiFileMap() |
String |
getMultipartContentType(String paramOrFileName) |
protected org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.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(org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.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.
|
getCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, getRequest, setCharacterEncoding, setRequest
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute, setRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncoding
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
public DefaultMultipartActionRequest(ActionRequest request, org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.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(ActionRequest request)
request
- the request to wrappublic Iterator<String> getFileNames()
getFileNames
in interface org.springframework.web.multipart.MultipartRequest
public org.springframework.web.multipart.MultipartFile getFile(String name)
getFile
in interface org.springframework.web.multipart.MultipartRequest
public List<org.springframework.web.multipart.MultipartFile> getFiles(String name)
getFiles
in interface org.springframework.web.multipart.MultipartRequest
public Map<String,org.springframework.web.multipart.MultipartFile> getFileMap()
getFileMap
in interface org.springframework.web.multipart.MultipartRequest
public org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.MultipartFile> getMultiFileMap()
getMultiFileMap
in interface org.springframework.web.multipart.MultipartRequest
public Enumeration<String> getParameterNames()
getParameterNames
in interface PortletRequest
getParameterNames
in class PortletRequestWrapper
public String getParameter(String name)
getParameter
in interface PortletRequest
getParameter
in class PortletRequestWrapper
public String[] getParameterValues(String name)
getParameterValues
in interface PortletRequest
getParameterValues
in class PortletRequestWrapper
public Map<String,String[]> getParameterMap()
getParameterMap
in interface PortletRequest
getParameterMap
in class PortletRequestWrapper
public String getMultipartContentType(String paramOrFileName)
getMultipartContentType
in interface org.springframework.web.multipart.MultipartRequest
protected final void setMultipartFiles(org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.MultipartFile> multipartFiles)
protected org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.MultipartFile> getMultipartFiles()
initializeMultipart()
protected final void setMultipartParameters(Map<String,String[]> multipartParameters)
protected Map<String,String[]> getMultipartParameters()
initializeMultipart()
protected final void setMultipartParameterContentTypes(Map<String,String> multipartParameterContentTypes)
protected Map<String,String> getMultipartParameterContentTypes()
initializeMultipart()
protected void initializeMultipart()