FileDocCategorySizeDatePackage
WebModuleMdl.javaAPI DocGlassfish v2 API3653Fri May 04 22:24:16 BST 2007com.sun.enterprise.management.model

WebModuleMdl

public class WebModuleMdl extends J2EEModuleMdl

Fields Summary
private static String
MANAGED_OBJECT_TYPE
private String
webModuleName
private String
applicationName
Constructors Summary
public WebModuleMdl(com.sun.enterprise.management.util.J2EEModuleCallBack module)

       
	super(module);
        this.webModuleName = module.getName();
        this.applicationName = module.getParentName();
        if(isStandAloneModule(applicationName))
           this.applicationName = "null";
    
Methods Summary
public java.lang.StringgetJ2EEApplication()
Accessor method for the parent key

        return this.applicationName;
    
public java.lang.StringgetModuleName()

        return this.webModuleName;
    
public java.lang.Stringgetj2eeType()
The type of the J2EEManagedObject as specified by JSR77. The class that implements a specific type must override this method and return the appropriate type string.

        return MANAGED_OBJECT_TYPE;
    
public java.lang.String[]getservlets()

        //Set appMods = findNames("j2eeType=WebModule,name=" + getname()+",J2EEServer=" + getJ2EEServer()+",J2EEApplication="+this.applicationName);
        Set appMods = findNames("j2eeType=Servlet,WebModule=" +this.webModuleName+",J2EEServer=" + getJ2EEServer()+",J2EEApplication="+this.applicationName);
        
        Iterator it = appMods.iterator();
        String [] mods = new String[appMods.size()];
        int i =0;
        while(it.hasNext()) {
            mods[i++] = ((ObjectName)it.next()).toString();
        }
        return mods;