1 22 package org.jboss.console.navtree; 23 24 import java.net.URL ; 25 import java.applet.AppletStub ; 26 import java.applet.AppletContext ; 27 import java.util.Properties ; 28 29 34 public class MainAppletStub implements AppletStub 35 { 36 private URL docBase; 37 private URL codeBase; 38 private Properties params = new Properties (System.getProperties()); 39 40 public MainAppletStub() throws Exception 41 { 42 docBase = new URL ("http://localhost:8080/web-console/"); 43 codeBase = new URL ("http://localhost:8080/web-console/"); 44 params.setProperty("RefreshTime", "5"); 45 params.setProperty("PMJMXName", "jboss.admin:service=PluginManager"); 46 } 47 48 public boolean isActive() 49 { 50 return true; 51 } 52 53 public String getParameter(String name) 54 { 55 return System.getProperty(name); 56 } 57 58 public AppletContext getAppletContext() 59 { 60 return null; 61 } 62 63 public void appletResize(int width, int height) 64 { 65 } 66 67 public URL getDocumentBase() 68 { 69 return docBase; 70 } 71 public URL getCodeBase() 72 { 73 return codeBase; 74 } 75 } 76 | Popular Tags |