public class ScmWebEditorMainAction extends AbstractScmWebEditorAction implements org.apache.struts2.interceptor.ServletResponseAware
| Modifier and Type | Field and Description |
|---|---|
protected String |
address
the repository's address
|
protected boolean |
badLogin
equals true if there is a problem during the authentication process
|
static String |
EDIT_PAGE |
protected String |
format
the format of the edited file
|
protected boolean |
fromLoginPage
equals true if the client comes from the login page
|
protected String |
mimeType
the edited file's MIME type
|
static String |
NO_PARAMETER |
protected String |
numRevision
the number of the edited file's revision
|
protected String |
origText
the original file's content
|
protected String |
projectUrl
the URL to the repository's root
|
protected String |
pw
the password to use to connect to the repository
|
protected String |
repositoryId
the repository's unique identifier
|
protected javax.servlet.http.HttpServletResponse |
response
the HTTP response to send to the client
|
protected boolean |
saveCookie
equals true if the authentication information has to be saved in a cookie
|
protected String |
username
the username to use to connect to the repository
|
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, request, scmType, session| Constructor and Description |
|---|
ScmWebEditorMainAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute()
Execution of the main action
|
String |
getAddress() |
String |
getFormat() |
String |
getMimeType() |
String |
getNumRevision() |
String |
getOrigText() |
String |
getProjectUrl() |
String |
getPw() |
String |
getRepositoryId() |
List<String> |
getSupportedScmsName() |
String |
getUsername() |
boolean |
isBadLogin() |
void |
setAddress(String address) |
void |
setFormat(String format) |
void |
setFromLoginPage(boolean fromLoginPage) |
void |
setProjectUrl(String projectUrl) |
void |
setPw(String pw) |
void |
setRepositoryId(String repositoryId) |
void |
setServletResponse(javax.servlet.http.HttpServletResponse response) |
void |
setUsername(String username) |
convertToUnicode, getCodepageDetector, getMimeType, getMimeType, getMimeTypes, getPassword, getRequest, getScmSession, getScmType, getSweVersion, getUsername, getUsernamePwFromSession, loadProperties, loadProperties, setScmType, setServletRequestaddActionError, 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, validatepublic static final String NO_PARAMETER
public static final String EDIT_PAGE
protected String address
protected String projectUrl
protected String format
protected String origText
protected String mimeType
protected boolean saveCookie
protected boolean badLogin
protected String numRevision
protected String username
protected String pw
protected transient javax.servlet.http.HttpServletResponse response
protected String repositoryId
protected boolean fromLoginPage
public String getMimeType()
public String getRepositoryId()
public void setRepositoryId(String repositoryId)
public String getUsername()
public void setUsername(String username)
public String getPw()
public void setPw(String pw)
public String getAddress()
public void setAddress(String address)
public String getFormat()
public void setFormat(String format)
public String getOrigText()
public String getProjectUrl()
public String getNumRevision()
public void setProjectUrl(String projectUrl)
public void setFromLoginPage(boolean fromLoginPage)
public boolean isBadLogin()
public String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportpublic void setServletResponse(javax.servlet.http.HttpServletResponse response)
setServletResponse in interface org.apache.struts2.interceptor.ServletResponseAwareCopyright © 2009–2016 CodeLutin. All rights reserved.