⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jahiawebappdef.java

📁 java 写的一个新闻发布系统
💻 JAVA
字号:
////                                   ____.//                       __/\ ______|    |__/\.     _______//            __   .____|    |       \   |    +----+       \//    _______|  /--|    |    |    -   \  _    |    :    -   \_________//   \\______: :---|    :    :           |    :    |         \________>//           |__\---\_____________:______:    :____|____:_____\//                                      /_____|////                 . . . i n   j a h i a   w e   t r u s t . . .////////  JahiaWebAppDef////  NK      16.01.2001////package org.jahia.data.webapps;import java.io.*;import java.util.*;/** * Holds Informations about a WebApp Definition *  * A web app contains a set of servlet element * * <servlet> *   <servlet-name>FilemanagerServlet</servlet-name> *   <display-name>Filemanager Portlet</display-name> *   <desc>no desc</desc> *   <servlet-class>org.jahia.portlets.filemanager.FilemanagerServlet</servlet-class> *   <init-param> *     <param-name>properties</param-name> *     <param-value>WEB-INF/conf/filemanager.properties</param-value> *   </init-param> * </servlet> * * @author Khue ng * @version 1.0 */ public class JahiaWebAppDef {	/** The Display name of the web App **/	private String m_Name = "";	/** The desc **/	private String m_desc = "";	/** The Context Root Folder **/   	private String m_ContextRoot;   	/** The set of servlets *   	 * @associates Servlet_Element*/	   	private Vector m_Servlets = new Vector();	   	/** The set of roles *   	 * @associates Security_Role*/	   	private Vector m_Roles = new Vector();	      	/**     * Constructor     *     */	public JahiaWebAppDef ( 							String name,							String contextRoot )	{		m_Name = name;    	m_ContextRoot = contextRoot;	}   	/**     * Return the webApp display name     *     * @return (String) the name of the webApp     */   	public String getName(){          	return m_Name;   	} 	/**     * Set the display name     * @param (String) the name of the webApp     */   	public void setName(String name){          	m_Name = name;   	}    	/**     * Return the Context Root     *     * @return (String) the context root     */   	public String getContextRoot(){          	return m_ContextRoot;   	}    	/**     * Set the Context Root     * @param (String) the Context Root     */   	public void setContextRoot(String contextRoot){          	m_ContextRoot = contextRoot;   	}    	/**     * Return the Web App desc     *     * @return (String) the desc     */   	public String getdesc(){          	return m_desc;   	}    	/**     * Set the desc     * @param (String) the desc     */   	public void setdesc(String descr){          	m_desc = descr;   	} 	/**	 * add a Servlet Element	 *	 * @param (Servlet_Element) a servlet element	 */    public void addServlet(Servlet_Element servlet){    	m_Servlets.add(servlet);    }    	/**	 * append a Vector of Servlet Element at the end of the servlets list	 *	 * @param (Vector) a vector of servlet element	 */    public void addServlets(Vector servlets){    	m_Servlets.addAll(servlets);    }	/**	 * get a Vector of the Servlets	 *	 * @return (Vector) return an enumeration of servlets	 */    public Vector getServlets(){    	return m_Servlets;    }	/**	 * add a Security_Role	 *	 * @param (Security_Role) a role element	 */    public void addRole(Security_Role role){    	m_Roles.add(role);    }    	/**	 * append a Vector of Roles  at the end of the roles list	 *	 * @param (Vector) a vector of role element	 */    public void addRoles(Vector roles){    	m_Roles.addAll(roles);    }	/**	 * get a Vector of the roles	 *	 * @return (Enumeration) return the enumeration of Roles	 */    public Enumeration getRoles(){    	return m_Roles.elements();    }                } // end JahiaWebAppDef

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -