public class PreviewAction extends AbstractScmWebEditorAction implements org.apache.struts2.interceptor.ServletRequestAware
| Modifier and Type | Field and Description |
|---|---|
protected String |
format
the file's format
|
protected String |
htmlPreview
the HTML code to display for the preview
|
protected String |
newText
the text to preview
|
protected javax.servlet.http.HttpServletRequest |
request
the HTTP request sent to the server
|
ATTRIBUTE_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, scmType, session| Constructor and Description |
|---|
PreviewAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute()
Execution of the preview action
|
String |
getFormat() |
String |
getHtmlPreview() |
String |
getNewText() |
void |
setFormat(String format) |
void |
setHtmlPreview(String htmlPreview) |
void |
setNewText(String newText) |
void |
setServletRequest(javax.servlet.http.HttpServletRequest request) |
convertToUnicode, getCodepageDetector, getMimeType, getMimeType, getMimeTypes, getPassword, getRequest, getScmSession, getScmType, getSweVersion, getUsername, getUsernamePwFromSession, loadProperties, loadProperties, setScmTypeaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, 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 transient javax.servlet.http.HttpServletRequest request
protected String htmlPreview
protected String newText
protected String format
public String getNewText()
public void setNewText(String newText)
public String getHtmlPreview()
public void setHtmlPreview(String htmlPreview)
public String getFormat()
public void setFormat(String format)
public String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportpublic void setServletRequest(javax.servlet.http.HttpServletRequest request)
setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAwaresetServletRequest in class AbstractScmWebEditorActionCopyright © 2009–2017 CodeLutin. All rights reserved.