1 25 26 package org.objectweb.jonas.webapp.jonasadmin; 27 28 import javax.management.ObjectName ; 29 30 35 public class JettyObjectName { 36 37 public static ObjectName jettyServer() { 38 try { 39 return new ObjectName ("jonas:type=webContainer,name=Jetty"); 40 } 41 catch (javax.management.MalformedObjectNameException e) { 42 return null; 44 } 45 } 46 47 public static ObjectName jettyContexts() { 48 try { 49 return new ObjectName ("jonas:type=webContainer,name=Jetty,*"); 50 } 51 catch (javax.management.MalformedObjectNameException e) { 52 return null; 54 } 55 } 56 57 public static ObjectName jettyContexts(String p_Path) { 58 try { 59 return new ObjectName ("jonas:type=webContainer,name=Jetty,context=" + p_Path + ",*"); 60 } 61 catch (javax.management.MalformedObjectNameException e) { 62 return null; 64 } 65 } 66 } 67 | Popular Tags |