|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 wrap| Method Detail |
|---|
public Iterator getFileNames()
MultipartRequestIterator 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 MultipartRequestpublic MultipartFile getFile(String name)
MultipartRequestnull if it does not exist.
getFile in interface MultipartRequestname - a String specifying the parameter name of the multipart file
MultipartFile objectpublic Map getFileMap()
MultipartRequestMap of the multipart files contained in this request.
getFileMap in interface MultipartRequestMultipartFile objects as valuesMultipartFilepublic Enumeration getParameterNames()
getParameterNames in interface javax.portlet.PortletRequestgetParameterNames in class PortletRequestWrapperpublic String getParameter(String name)
getParameter in interface javax.portlet.PortletRequestgetParameter in class PortletRequestWrapperpublic String[] getParameterValues(String name)
getParameterValues in interface javax.portlet.PortletRequestgetParameterValues in class PortletRequestWrapperpublic Map getParameterMap()
getParameterMap in interface javax.portlet.PortletRequestgetParameterMap in class PortletRequestWrapperprotected 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 | |||||||||