public abstract class AbstractMultipartFileBaseControl extends AbstractBaseControl
| 构造器和说明 |
|---|
AbstractMultipartFileBaseControl() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.web.multipart.MultipartFile |
getFile(String name) |
protected List<org.springframework.web.multipart.MultipartFile> |
getFiles(String name) |
protected org.springframework.web.multipart.MultipartHttpServletRequest |
getMultiRequest() |
protected <T> T |
getObject(Class<T> tClass)
获取表单数据到实体中
|
protected String |
getParameter(String name) |
protected String |
getParameter(String name,
String def)
获取指定参数名的值
|
protected int |
getParameterInt(String name) |
protected int |
getParameterInt(String name,
int def) |
protected long |
getParameterLong(String name) |
protected long |
getParameterLong(String name,
long def) |
protected String[] |
getParameters(String name) |
javax.servlet.http.HttpServletRequest |
getRequest() |
void |
resetInfo()
处理上传文件 对象
|
protected String[] |
upload(String... name) |
protected String |
upload(String name)
接收文件
|
getCookieValue, getHeader, getIp, getIpAddress, getRefererParametergetAttribute, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttributeprotected org.springframework.web.multipart.MultipartHttpServletRequest getMultiRequest()
public void resetInfo()
resetInfo 在类中 AbstractBaseControlpublic javax.servlet.http.HttpServletRequest getRequest()
getRequest 在类中 CallbackControllerprotected org.springframework.web.multipart.MultipartFile getFile(String name)
protected <T> T getObject(Class<T> tClass) throws IllegalAccessException, InstantiationException
AbstractBaseControlgetObject 在类中 AbstractBaseControlT - ttClass - classIllegalAccessException - yInstantiationException - yprotected String upload(String name) throws IOException
name - 字段名称IOException - IOprotected String[] upload(String... name) throws IOException
IOExceptionprotected String[] getParameters(String name)
getParameters 在类中 AbstractBaseControlprotected String getParameter(String name)
getParameter 在类中 AbstractBaseControlprotected String getParameter(String name, String def)
AbstractBaseControlgetParameter 在类中 AbstractBaseControlname - 参数名def - 默认值protected int getParameterInt(String name)
getParameterInt 在类中 AbstractBaseControlprotected int getParameterInt(String name, int def)
getParameterInt 在类中 AbstractBaseControlprotected long getParameterLong(String name)
getParameterLong 在类中 AbstractBaseControlprotected long getParameterLong(String name, long def)
getParameterLong 在类中 AbstractBaseControlCopyright © 2017–2018 Pivotal Software, Inc.. All rights reserved.