User: olegnitz
Date: 02/02/10 09:57:45
Added: jetty/src/main/org/mortbay/jetty/servlet/jmx
ServletHttpContextMBean.java
WebApplicationMBean.java mbean_en.properties
Log:
Fresh version of Jetty and patches to Jetty plugin by Jan Bartel
Revision Changes Path
1.1
contrib/jetty/src/main/org/mortbay/jetty/servlet/jmx/ServletHttpContextMBean.java
Index: ServletHttpContextMBean.java
===================================================================
// ========================================================================
// Copyright (c) 1999 Mort Bay Consulting (Australia) Pty. Ltd.
// $Id: ServletHttpContextMBean.java,v 1.1 2002/02/10 17:57:44 olegnitz Exp $
// ========================================================================
package org.mortbay.jetty.servlet.jmx;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanException;
import javax.management.MBeanServer;
import javax.management.MBeanOperationInfo;
import javax.management.modelmbean.InvalidTargetObjectTypeException;
import javax.management.modelmbean.ModelMBeanAttributeInfo;
import javax.management.modelmbean.ModelMBeanOperationInfo;
import org.mortbay.http.HttpServer;
import org.mortbay.jetty.servlet.ServletHttpContext;
import org.mortbay.jetty.servlet.WebApplicationContext;
import org.mortbay.util.Code;
import org.mortbay.util.Log;
import org.mortbay.util.LifeCycle;
import org.mortbay.http.jmx.HttpContextMBean;
import org.mortbay.jetty.jmx.ServerMBean;
import java.beans.beancontext.BeanContextMembershipListener;
import java.beans.beancontext.BeanContextMembershipEvent;
import java.util.Iterator;
/* ------------------------------------------------------------ */
/** Web Application MBean.
* Note that while Web Applications are HttpContexts, the MBean is
* not derived from HttpContextMBean as they are managed differently.
*
* @version $Revision: 1.1 $
* @author Greg Wilkins (gregw)
*/
public class ServletHttpContextMBean extends HttpContextMBean
{
/* ------------------------------------------------------------ */
/** Constructor.
* @exception MBeanException
* @exception InstanceNotFoundException
*/
public ServletHttpContextMBean()
throws MBeanException
{}
/* ------------------------------------------------------------ */
protected void defineManagedResource()
{
super.defineManagedResource();
defineAttribute("dynamicServletPathSpec");
defineOperation("addServlet",
new String[] {STRING,STRING,STRING},
IMPACT_ACTION);
}
}
1.1
contrib/jetty/src/main/org/mortbay/jetty/servlet/jmx/WebApplicationMBean.java
Index: WebApplicationMBean.java
===================================================================
// ========================================================================
// Copyright (c) 1999 Mort Bay Consulting (Australia) Pty. Ltd.
// $Id: WebApplicationMBean.java,v 1.1 2002/02/10 17:57:44 olegnitz Exp $
// ========================================================================
package org.mortbay.jetty.servlet.jmx;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanException;
import javax.management.MBeanServer;
import javax.management.MBeanOperationInfo;
import javax.management.modelmbean.InvalidTargetObjectTypeException;
import javax.management.modelmbean.ModelMBeanAttributeInfo;
import javax.management.modelmbean.ModelMBeanOperationInfo;
import org.mortbay.http.HttpServer;
import org.mortbay.jetty.servlet.WebApplicationContext;
import org.mortbay.util.Code;
import org.mortbay.util.Log;
import org.mortbay.util.LifeCycle;
import org.mortbay.jetty.jmx.ServerMBean;
import java.util.Iterator;
/* ------------------------------------------------------------ */
/** Web Application MBean.
* Note that while Web Applications are HttpContexts, the MBean is
* not derived from HttpContextMBean as they are managed differently.
*
* @version $Revision: 1.1 $
* @author Greg Wilkins (gregw)
*/
public class WebApplicationMBean extends ServletHttpContextMBean
{
/* ------------------------------------------------------------ */
/** Constructor.
* @exception MBeanException
* @exception InstanceNotFoundException
*/
public WebApplicationMBean()
throws MBeanException
{}
/* ------------------------------------------------------------ */
protected void defineManagedResource()
{
super.defineManagedResource();
defineAttribute("displayName",false);
defineAttribute("defaultsDescriptor",true);
defineAttribute("deploymentDescriptor",false);
defineAttribute("WAR",true);
defineAttribute("extractWAR",true);
}
}
1.1
contrib/jetty/src/main/org/mortbay/jetty/servlet/jmx/mbean_en.properties
Index: mbean_en.properties
===================================================================
ServletHttpContext=A HttpContext with additional conveniance methods for servlets .
Changes made to this MBean are not persisted.
ServletHttpContext.addServlet(java.lang.String,java.lang.String,java.lang.String)
= Add a servlet to the context.
ServletHttpContext.addServlet(java.lang.String,java.lang.String,java.lang.String)[0]=
name:The name of the servlet.
ServletHttpContext.addServlet(java.lang.String,java.lang.String,java.lang.String)[1]=
pathSpec:The suffix or prefix URL path for the servlet.
ServletHttpContext.addServlet(java.lang.String,java.lang.String,java.lang.String)[2]=
className:The class name of the servlet.
ServletHttpContext.dynamicServletPathSpec = The path spec from which dynamic
servlets are loaded.
WebApplication=A J2EE Web application extension of ServletHttpContext. Changes made
to this MBean are not persisted.
WebApplication.displayName = The display name of the web application
context.
WebApplication.defaultsDescriptor = The XML resource defining the default
configuration for the context.
WebApplication.deploymentDescriptor = The XML resource defining the specific
configuration of the context.
WebApplication.WAR = The WAR file or directory as a URL or
filename.
WebApplication.extractWAR = If true, packed WAR files are extracted to a
temp directory.
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development