public class ImportArchiveAction extends FaxToMailActionSupport implements com.opensymphony.xwork2.Preparable, HasUploadedFile
| Modifier and Type | Field and Description |
|---|---|
protected FaxToMailApplicationContext |
applicationContext |
protected File |
archiveFile |
protected String |
archiveFileContentType |
protected String |
archiveFileFileName |
protected String |
attachmentBase |
protected String |
contentType |
protected String |
fileName |
protected ArchiveImportResult |
importResult |
protected InputStream |
inputStream |
applicationConfig, EXCLUSION_STRATEGY, gson, GSON_EXCLUSIONS, NEXT, SAVE, session| Constructor and Description |
|---|
ImportArchiveAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
downloadImportErrorFile() |
String |
execute() |
String |
getArchiveFileContentType() |
String |
getArchiveFileFileName() |
String |
getContentType() |
String |
getFileName() |
ArchiveImportResult |
getImportResult() |
InputStream |
getInputStream() |
File |
getUploadedFile() |
String |
input() |
void |
prepare() |
void |
setApplicationContext(FaxToMailApplicationContext applicationContext) |
void |
setArchiveFile(File archiveFile) |
void |
setArchiveFileContentType(String archiveFileContentType) |
void |
setArchiveFileFileName(String archiveFileFileName) |
void |
setAttachmentBase(String attachmentBase) |
void |
setFileName(String fileName) |
void |
setImportResult(ArchiveImportResult importResult) |
void |
setUploadedFile(File file) |
getApplicationConfig, getAuthenticatedUser, getEnumAsMap, getGson, getSession, isAdmin, isAuthenticated, setApplicationConfig, setSession, toJsonaddActionError, 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, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected String attachmentBase
protected File archiveFile
protected String archiveFileFileName
protected String archiveFileContentType
protected FaxToMailApplicationContext applicationContext
protected ArchiveImportResult importResult
protected InputStream inputStream
protected String fileName
protected String contentType
public void setApplicationContext(FaxToMailApplicationContext applicationContext)
public void prepare()
throws Exception
prepare in interface com.opensymphony.xwork2.PreparableExceptionpublic String input() throws Exception
input in class com.opensymphony.xwork2.ActionSupportExceptionpublic String execute() throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionpublic void setArchiveFile(File archiveFile)
public void setAttachmentBase(String attachmentBase)
public String getArchiveFileFileName()
public void setArchiveFileFileName(String archiveFileFileName)
public String getArchiveFileContentType()
public void setArchiveFileContentType(String archiveFileContentType)
public ArchiveImportResult getImportResult()
public void setImportResult(ArchiveImportResult importResult)
public InputStream getInputStream()
public String getFileName()
public void setFileName(String fileName)
public String getContentType()
public File getUploadedFile()
getUploadedFile in interface HasUploadedFilepublic void setUploadedFile(File file)
setUploadedFile in interface HasUploadedFileCopyright © 2014–2016 CodeLutin. All rights reserved.