gboat2.attachment.action
类 UploadAction

java.lang.Object
  继承者 com.opensymphony.xwork2.ActionSupport
      继承者 gboat2.base.core.web.BaseActionSupport
          继承者 gboat2.attachment.action.UploadAction
所有已实现的接口:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, IBaseActionSupport, Serializable, org.apache.struts2.interceptor.ServletRequestAware, org.apache.struts2.interceptor.ServletResponseAware, org.apache.struts2.osgi.interceptor.BundleContextAware, org.apache.struts2.osgi.interceptor.ServiceAware, org.apache.struts2.util.ServletContextAware

public class UploadAction
extends BaseActionSupport

文件上传

从以下版本开始:
jdk1.6
作者:
tanxw
另请参见:
序列化表格

字段摘要
 
从类 gboat2.base.core.web.BaseActionSupport 继承的字段
container, context, CURRENT_BUNDLE_RES_LOCATION, devMode, flatResultLayout, go, MIN_SUFFIX, model, nameSeparator, osgiHost, page, request, response, SID, sortDirection, sortField
 
从类 com.opensymphony.xwork2.ActionSupport 继承的字段
LOG
 
从接口 com.opensymphony.xwork2.Action 继承的字段
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
构造方法摘要
UploadAction()
           
 
方法摘要
 String deleteFile()
           
 String download()
           
 String downloadRecord()
           
 String execute()
          上传文件
 String getAttachId()
           
 String getAttachName()
           
 String getAttachType()
           
 String getBelongId()
           
 String getConfigId()
           
 File getFile()
           
 String getFileContentType()
           
 String getFileFileName()
           
 String getFilePath()
           
 void setAttachId(String attachId)
           
 void setAttachName(String attachName)
           
 void setAttachType(String attachType)
           
 void setBelongId(String belongId)
           
 void setConfigId(String configId)
           
 void setFile(File file)
           
 void setFileContentType(String fileContentType)
           
 void setFileFileName(String fileFileName)
           
 void setFilePath(String filePath)
           
 String virtualDelete()
           
 
从类 gboat2.base.core.web.BaseActionSupport 继承的方法
ajaxDelete, ajaxListData, ajaxSave, ajaxSaveReturn, delete, deleteModel, edit, executeListQuery, forward, get_M, get_MdId, getActionBundle, getBean, getBean, getDefaultAjaxDeleteUri, getDefaultAjaxSaveUri, getDefaultDeleteUri, getDefaultEditUri, getDefaultListUri, getDefaultSaveUri, getDefaultViewUri, getDomainClassAnnotationed, getDomainClassAnnotationedForList, getExtendForView, getListParameterMap, getMetadata, getModel, getPage, getPriCheckParams, getServiceAnnotationed, getSID, getSortDirection, getSortField, getUriPrefix, initEdit, initList, initSave, initView, invokeInitMethod, list, operationCheck, postDelete, postList, postSave, prepare, prepareEdit, prepareList, prepareModel, prepareView, putDebugInfoIfDevMode, registerEnumClassNotInEntry, save, saveModel, set_M, set_MdId, setAutowiredBeans, setAutowiredBeans, setBundleContext, setContainer, setDevMode, setFlatResultLayout, setGo, setModel, setNameSeparator, setPriCheckParams, setServices, setServletContext, setServletRequest, setServletResponse, setSID, setSortDirection, setSortField, setValue, view
 
从类 com.opensymphony.xwork2.ActionSupport 继承的方法
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

UploadAction

public UploadAction()
方法详细信息

execute

public String execute()
上传文件

指定者:
接口 com.opensymphony.xwork2.Action 中的 execute
覆盖:
BaseActionSupport 中的 execute
返回:

deleteFile

public String deleteFile()
                  throws Exception
抛出:
Exception

virtualDelete

public String virtualDelete()
                     throws Exception
抛出:
Exception

download

public String download()
                throws IOException
抛出:
IOException

downloadRecord

public String downloadRecord()
                      throws IOException
抛出:
IOException

getFile

public File getFile()

setFile

public void setFile(File file)

getFileContentType

public String getFileContentType()

setFileContentType

public void setFileContentType(String fileContentType)

getFileFileName

public String getFileFileName()

setFileFileName

public void setFileFileName(String fileFileName)

getAttachType

public String getAttachType()

setAttachType

public void setAttachType(String attachType)

getAttachName

public String getAttachName()

setAttachName

public void setAttachName(String attachName)

getAttachId

public String getAttachId()

setAttachId

public void setAttachId(String attachId)

getBelongId

public String getBelongId()

setBelongId

public void setBelongId(String belongId)

getFilePath

public String getFilePath()

setFilePath

public void setFilePath(String filePath)

getConfigId

public String getConfigId()

setConfigId

public void setConfigId(String configId)


Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.