1 25 package org.objectweb.jonas.ws.mbean; 26 27 import java.util.ArrayList ; 28 import java.util.List ; 29 30 36 public class Service extends AbstractWebServiceMBean { 37 38 41 private String name = null; 42 43 46 private String wsdlURL = null; 47 48 51 private String mappingFilename = null; 52 53 56 private String wsdlFilename = null; 57 58 61 private List portComponents = new ArrayList (); 62 63 66 private List portComponentONames = new ArrayList (); 67 68 72 public Service(String objectName) { 73 super(objectName); 74 } 75 76 79 public String getMappingFilename() { 80 return mappingFilename; 81 } 82 83 86 public void setMappingFilename(String mappingFile) { 87 this.mappingFilename = mappingFile; 88 } 89 90 93 public String getWsdlFilename() { 94 return wsdlFilename; 95 } 96 97 100 public void setWsdlFilename(String wsdlFilename) { 101 this.wsdlFilename = wsdlFilename; 102 } 103 104 107 public String getName() { 108 return name; 109 } 110 111 114 public void setName(String name) { 115 this.name = name; 116 } 117 118 121 public String getWsdlURL() { 122 return wsdlURL; 123 } 124 125 128 public void setWsdlURL(String wsdlURL) { 129 this.wsdlURL = wsdlURL; 130 } 131 132 135 public List getPortComponentsMBean() { 136 return portComponents; 137 } 138 139 142 public String [] getPortComponents() { 143 return (String []) portComponentONames.toArray(new String [portComponentONames.size()]); 144 } 145 146 150 public void addPortComponentMBean(PortComponent pc) { 151 portComponents.add(pc); 152 portComponentONames.add(pc.getObjectName()); 153 } 154 155 158 protected String getMBeanType() { 159 return WebServicesObjectName.WEBSERVICE_TYPE; 160 } 161 162 165 protected List getChildsMBeans() { 166 return portComponents; 167 } 168 169 } 170 | Popular Tags |