public class GetImageAction extends ScmWebEditorMainAction
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
imageInByte
the bytes coding the image
|
protected String |
imagePath
the path to the image
|
protected javax.servlet.http.HttpServletRequest |
servletRequest
the HTTP request sent to the server
|
address, badLogin, EDIT_PAGE, format, fromLoginPage, mimeType, NO_PARAMETER, numRevision, origText, projectUrl, pw, repositoryId, response, saveCookie, usernameATTRIBUTE_BAD_LOGIN, ATTRIBUTE_FILESEARCH_SERVLET_URL, ATTRIBUTE_INVALIDATE_MAX_TIME, ATTRIBUTE_IS_LOGIN, ATTRIBUTE_LOGIN, ATTRIBUTE_ORIG_TEXT, ATTRIBUTE_PREVIEW_SERVLET_URL, ATTRIBUTE_PRIVATE_SERVLET_URI, ATTRIBUTE_PROJECT_URL, ATTRIBUTE_REDIRECT_URL, ATTRIBUTE_REDIRECTION_URL, ATTRIBUTE_SCM_EDITOR_URI, AUTH_ERROR, CONTEXT_ACTION_KEY, detector, EDITABLESFILES, ENCODING, ERROR_PATH, PARAMETER_ADDRESS, PARAMETER_COMMIT_MESSAGE, PARAMETER_DEFAULT_LANG, PARAMETER_FILE_NAME, PARAMETER_FORMAT, PARAMETER_LANG, PARAMETER_MYTEXT, PARAMETER_ORIG_TEXT, PARAMETER_PROJECT_URL, PARAMETER_PW, PARAMETER_SCM_EDITOR_URL, PARAMETER_TEXT, PARAMETER_USERNAME, PROPERTIESFILES, request, scmType, session| Constructor and Description |
|---|
GetImageAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute()
Execution of the main action
|
String |
getCustomContentType() |
byte[] |
getCustomImageInBytes() |
byte[] |
getImageInByte() |
String |
getImagePath() |
void |
setImageInByte(byte[] imageInByte) |
void |
setImagePath(String imagePath) |
void |
setServletRequest(javax.servlet.http.HttpServletRequest request) |
getAddress, getFormat, getMimeType, getNumRevision, getOrigText, getProjectUrl, getPw, getRepositoryId, getSupportedScmsName, getUsername, isBadLogin, setAddress, setFormat, setFromLoginPage, setProjectUrl, setPw, setRepositoryId, setServletResponse, setUsernameconvertToUnicode, getCodepageDetector, getMimeType, getMimeType, getMimeTypes, getPassword, getRequest, getScmSession, getScmType, getSweVersion, getUsername, getUsernamePwFromSession, loadProperties, loadProperties, setScmTypeaddActionError, 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, setContainer, setFieldErrors, validateprotected byte[] imageInByte
protected String imagePath
protected javax.servlet.http.HttpServletRequest servletRequest
public byte[] getImageInByte()
public void setImageInByte(byte[] imageInByte)
public String getImagePath()
public void setImagePath(String imagePath)
public String execute()
ScmWebEditorMainActionexecute in interface com.opensymphony.xwork2.Actionexecute in class ScmWebEditorMainActionpublic byte[] getCustomImageInBytes()
public String getCustomContentType()
public void setServletRequest(javax.servlet.http.HttpServletRequest request)
setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAwaresetServletRequest in class AbstractScmWebEditorActionCopyright © 2009–2015 CodeLutin. All rights reserved.