1 23 24 package com.sun.enterprise.admin.server.core.mbean.config; 25 26 import javax.management.*; 28 29 import com.sun.enterprise.config.ConfigException; 31 import com.sun.enterprise.config.serverbeans.ServerTags; 32 import com.sun.enterprise.config.serverbeans.ServerXPathHelper; 33 34 35 import com.sun.enterprise.admin.common.ObjectNames; 37 import com.sun.enterprise.admin.common.exception.MBeanConfigException; 38 import com.sun.enterprise.admin.common.constant.ConfigAttributeName; 39 40 46 public class ManagedHTTPMime extends ConfigMBeanBase implements ConfigAttributeName.Mime 47 { 48 51 private static final String [][] MAPLIST = 52 { 53 {kId , ATTRIBUTE + ServerTags.ID}, 54 {kFile , ATTRIBUTE + ServerTags.FILE}, 55 }; 56 59 private static final String [] ATTRIBUTES = 60 { 61 kId + ", String, R" , 62 kFile + ", String, RW" , 63 }; 64 67 private static final String [] OPERATIONS = null; 68 69 72 public ManagedHTTPMime() throws MBeanConfigException 73 { 74 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 75 } 76 77 81 public ManagedHTTPMime(String instanceName, String mimeId) throws MBeanConfigException 82 { 83 this(); initialize(ObjectNames.kMimeType, new String []{instanceName, mimeId}); 85 } 86 } | Popular Tags |