public class DefaultMultipartActionRequest extends ActionRequestWrapper implements MultipartActionRequest
MultipartActionRequest interface.
Provides management of pre-generated parameter values.PortletMultipartResolverPortletRequest.P3PUserInfosACTION_NAMEACTION_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, setRequestgetAttribute, 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, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncodinggetAttribute, 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, setAttributepublic 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.MultipartRequestpublic org.springframework.web.multipart.MultipartFile getFile(String name)
getFile in interface org.springframework.web.multipart.MultipartRequestpublic List<org.springframework.web.multipart.MultipartFile> getFiles(String name)
getFiles in interface org.springframework.web.multipart.MultipartRequestpublic Map<String,org.springframework.web.multipart.MultipartFile> getFileMap()
getFileMap in interface org.springframework.web.multipart.MultipartRequestpublic org.springframework.util.MultiValueMap<String,org.springframework.web.multipart.MultipartFile> getMultiFileMap()
getMultiFileMap in interface org.springframework.web.multipart.MultipartRequestpublic Enumeration<String> getParameterNames()
getParameterNames in interface PortletRequestgetParameterNames in class PortletRequestWrapperpublic String getParameter(String name)
getParameter in interface PortletRequestgetParameter in class PortletRequestWrapperpublic String[] getParameterValues(String name)
getParameterValues in interface PortletRequestgetParameterValues in class PortletRequestWrapperpublic Map<String,String[]> getParameterMap()
getParameterMap in interface PortletRequestgetParameterMap in class PortletRequestWrapperpublic String getMultipartContentType(String paramOrFileName)
getMultipartContentType in interface org.springframework.web.multipart.MultipartRequestprotected 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()