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

📄 servletbean.java

📁 java 写的一个新闻发布系统
💻 JAVA
字号:
package org.jahia.data.applications;import java.util.*;import org.jahia.utils.*;           // JahiaConsole/** * This object contains all the data relative to a servlet, notably the * context in which it should run, it's type (servlet or JSP) and additionnal * @author Serge Huber * @version 1.0 */public class ServletBean {    public final static int SERVLET_TYPE = 1;    public final static int JSP_TYPE = 2;    public final static String SERVLET = "SERVLET";    public final static String JSP = "JSP";    private String  name;			 			// display name    private String  context;					// the servlet context    private String  servletName;     			// Servlet alias  ex: HelloWorldServlet    private String  servletsrc;   				// Servlet classe or jsp file ex: /jsp/HelloWorld.jsp ou org.jahia.HelloWorldServlet    private int     webAppType = SERVLET_TYPE;  // 1=servlet, 2=jsp    private String  desc;   					// desc	private String  urlMappingPattern = "" ;	// the mapping pattern that matched this servlet  	    /** if loaded in the Aplication registry or not     that is instantiated     **/    private boolean loaded = false;    /**     *     */    public ServletBean(                            int     webAppType,                            String  name,                            String  servletName,                            String  servletsrc,                            String  context,                            String  desc                      )                      {        this.webAppType     = webAppType;        this.name           = name;        this.context        = context;        this.servletName    = servletName;        this.servletsrc 	= servletsrc;		this.desc    		= desc;    } // end constructor    /**     * accessor methods     * {     */    public  String  getName()           	{   return name;            	}    public  String  getContext()        	{   return context;         	}    public  String  getServletName()    	{   return servletName;     	}    public  String  getservletsrc()  		{   return servletsrc;   		}    public  int     getWebAppType()     	{   return webAppType;      	}    public  String  getdesc()  				{   return desc;	   			}    public  String  getUrlMappingPattern()	{   return urlMappingPattern;  	}    public  boolean isLoaded()				{   return loaded;				}    public  String     getWebAppTypeLabel(){        if ( webAppType == SERVLET_TYPE ){            return SERVLET;        }        return JSP;    }    public  void    setName( String name )                      {   this.name = name;                   }    public  void    setContext( String context )		        {   this.context = context;			    }    public  void    setServletName( String servletName )        {   this.servletName  = servletName;	}    public  void    setservletsrc( String servletsrc )    		{   this.servletsrc = servletsrc;   	}    public  void    setWebAppType( int webAppType )             {   this.webAppType = webAppType;       }    public  void    setUrlMappingPattern( String pattern )		{   this.urlMappingPattern = pattern;	}    public  void    setdesc( String desc )        				{   this.desc = desc;       			}    public  void    setLoaded( boolean loaded )                 {   this.loaded = loaded;		        }    // end accessor methods} // end ServletBean

⌨️ 快捷键说明

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