1 28 29 30 package com.caucho.management.j2ee; 31 32 import com.caucho.server.webapp.WebAppController; 33 34 37 public class WebModule extends J2EEModule { 38 private final WebAppController _webAppController; 39 40 public WebModule(WebAppController webAppController) 41 { 42 _webAppController = webAppController; 43 } 44 45 protected String getName() 46 { 47 String name = _webAppController.getContextPath(); 48 49 return name == null || name.length() == 0 ? "/" : name; 50 } 51 52 public String getDeploymentDescriptor() 53 { 54 return ""; 56 } 57 58 62 public String []getServlets() 63 { 64 return queryObjectNames("j2eeType", "Servlet"); 65 } 66 } 67 | Popular Tags |