|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.portlet.util.PortletRequestWrapper org.springframework.web.portlet.util.ActionRequestWrapper org.springframework.web.portlet.multipart.DefaultMultipartActionRequest
public class DefaultMultipartActionRequest
Default implementation of the MultipartActionRequest
interface.
Provides management of pre-generated parameter values.
PortletMultipartResolver
Field Summary |
---|
Fields inherited from interface javax.portlet.PortletRequest |
---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO |
Constructor Summary | |
---|---|
protected |
DefaultMultipartActionRequest(javax.portlet.ActionRequest request)
Wrap the given Portlet ActionRequest in a MultipartActionRequest. |
|
DefaultMultipartActionRequest(javax.portlet.ActionRequest request,
Map multipartFiles,
Map multipartParameters)
Wrap the given Portlet ActionRequest in a MultipartActionRequest. |
Method Summary | |
---|---|
MultipartFile |
getFile(String name)
Return the contents plus description of an uploaded file in this request, or null if it does not exist. |
Map |
getFileMap()
Return a Map of the multipart files contained in this request. |
Iterator |
getFileNames()
Return an Iterator of String objects containing the
parameter names of the multipart files contained in this request. |
protected Map |
getMultipartFiles()
Obtain the MultipartFile Map for retrieval, lazily initializing it if necessary. |
protected Map |
getMultipartParameters()
Obtain the multipart parameter Map for retrieval, lazily initializing it if necessary. |
String |
getParameter(String name)
|
Map |
getParameterMap()
|
Enumeration |
getParameterNames()
|
String[] |
getParameterValues(String name)
|
protected void |
initializeMultipart()
Lazily initialize the multipart request, if possible. |
protected void |
setMultipartFiles(Map multipartFiles)
Set a Map with parameter names as keys and MultipartFile objects as values. |
protected void |
setMultipartParameters(Map multipartParameters)
Set a Map with parameter names as keys and String array objects as values. |
Methods inherited from class org.springframework.web.portlet.util.ActionRequestWrapper |
---|
getCharacterEncoding, getContentLength, getContentType, getPortletInputStream, getReader, setCharacterEncoding |
Methods inherited from class org.springframework.web.portlet.util.PortletRequestWrapper |
---|
getAttribute, getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, 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.ActionRequest |
---|
getCharacterEncoding, getContentLength, getContentType, getPortletInputStream, getReader, setCharacterEncoding |
Methods inherited from interface javax.portlet.PortletRequest |
---|
getAttribute, getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, 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 |
---|
public DefaultMultipartActionRequest(javax.portlet.ActionRequest request, Map multipartFiles, Map multipartParameters)
request
- the request to wrapmultipartFiles
- a map of the multipart filesmultipartParameters
- 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 wrapMethod Detail |
---|
public Iterator getFileNames()
MultipartRequest
Iterator
of String objects containing the
parameter names of the multipart files contained in this request. These
are the field names of the form (like with normal parameters), not the
original file names.
getFileNames
in interface MultipartRequest
public MultipartFile getFile(String name)
MultipartRequest
null
if it does not exist.
getFile
in interface MultipartRequest
name
- a String specifying the parameter name of the multipart file
MultipartFile
objectpublic Map getFileMap()
MultipartRequest
Map
of the multipart files contained in this request.
getFileMap
in interface MultipartRequest
MultipartFile
objects as valuesMultipartFile
public Enumeration getParameterNames()
getParameterNames
in interface javax.portlet.PortletRequest
getParameterNames
in class PortletRequestWrapper
public String getParameter(String name)
getParameter
in interface javax.portlet.PortletRequest
getParameter
in class PortletRequestWrapper
public String[] getParameterValues(String name)
getParameterValues
in interface javax.portlet.PortletRequest
getParameterValues
in class PortletRequestWrapper
public Map getParameterMap()
getParameterMap
in interface javax.portlet.PortletRequest
getParameterMap
in class PortletRequestWrapper
protected final void setMultipartFiles(Map multipartFiles)
protected Map getMultipartFiles()
initializeMultipart()
protected final void setMultipartParameters(Map multipartParameters)
protected Map getMultipartParameters()
initializeMultipart()
protected void initializeMultipart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |