|
The Spring Framework | |||||||||
| 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(ActionRequest request)
Wrap the given Portlet ActionRequest in a MultipartActionRequest. |
|
DefaultMultipartActionRequest(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 |
| Constructor Detail |
|---|
public DefaultMultipartActionRequest(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(ActionRequest request)
request - the request to wrap| Method Detail |
|---|
public Iterator getFileNames()
MultipartActionRequest
getFileNames in interface MultipartActionRequestpublic MultipartFile getFile(String name)
MultipartActionRequestnull if it does not exist.
getFile in interface MultipartActionRequestname - a String specifying the parameter name of the multipart file
public Map getFileMap()
MultipartActionRequest
getFileMap in interface MultipartActionRequestMultipartFilepublic Enumeration 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 getParameterMap()
getParameterMap in interface 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()
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||