📄 serviceform.java
字号:
package gov.nist.struts.webapp.monitor;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionMapping;import javax.servlet.http.HttpServletRequest;/** * This class is a placeholder for form values. * * @author Jean Deruelle * @version $Revision: 1.3 $ $Date: 2004/04/21 23:32:52 $ */public class ServiceForm extends ActionForm { /** * The main class of the service the user has uploaded */ protected String mainClass = null; /** * The URI of the user to whom the service belongs */ protected String userURI = null; /** * The path of the configuration file the user has uploaded */ protected String path = null; /** * Retrieve the URI of the user to whom the service belongs * @return the URI of the user to whom the service belongs */ public String getUserURI() { return userURI; } /** * Set the URI of the user to whom the service belongs * @param mainClass - the URI of the user to whom the service belongs */ public void setUserURI(String userURI) { this.userURI = userURI; } /** * Retrieve the main class of the service the user has uploaded * @return the main class of the service the user has uploaded */ public String getMainClass() { return mainClass; } /** * Set the main class of the service the user has uploaded * @param mainClass - the main class of the service the user has uploaded */ public void setMainClass(String mainClass) { this.mainClass = mainClass; } /** * Retrieve the path of the configuration file the user has uploaded * @return the path of the service the configuration file has uploaded */ public String getPath() { return path; } /** * Set the path of the service the configuration file has uploaded * @param path - the path of the service the configuration file has uploaded */ public void setPath(String path) { this.path = path; } /** * @see org.apache.struts.action.ActionForm#reset(ActionMapping actionMapping,HttpServletRequest httpServletRequest) */ public void reset(ActionMapping mapping, HttpServletRequest request) { mainClass = null; path = null; } /** * @see org.apache.struts.action.ActionForm#validate(ActionMapping mapping,HttpServletRequest request) */ public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); return errors; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -