1 25 package org.objectweb.jonas.ws.mbean; 26 27 import java.util.ArrayList ; 28 import java.util.List ; 29 30 36 public class PortComponent extends AbstractWebServiceMBean { 37 38 41 private String name = null; 42 43 46 private String wsdlPort = null; 47 48 51 private String serviceEndpointInterface = null; 52 53 56 private String implementationBeanOName = null; 57 58 61 private List handlers = new ArrayList (); 62 63 66 private List handlerONames = new ArrayList (); 67 68 71 private String endpoint = null; 72 73 77 public PortComponent(String objectName) { 78 super(objectName); 79 } 80 81 84 public String getEndpoint() { 85 return endpoint; 86 } 87 88 91 public void setEndpoint(String endpoint) { 92 this.endpoint = endpoint; 93 } 94 95 98 public String getName() { 99 return name; 100 } 101 102 105 public void setName(String name) { 106 this.name = name; 107 } 108 109 112 public String getServiceEndpointInterface() { 113 return serviceEndpointInterface; 114 } 115 116 119 public void setServiceEndpointInterface(String serviceEndpointInterface) { 120 this.serviceEndpointInterface = serviceEndpointInterface; 121 } 122 123 126 public String getWsdlPort() { 127 return wsdlPort; 128 } 129 130 133 public void setWsdlPort(String wsdlPort) { 134 this.wsdlPort = wsdlPort; 135 } 136 137 140 public List getHandlersMBean() { 141 return handlers; 142 } 143 144 147 public String [] getHandlers() { 148 return (String []) handlerONames.toArray(new String [handlerONames.size()]); 149 } 150 151 155 public void addHandlerMBean(Handler h) { 156 handlers.add(h); 157 handlerONames.add(h.getObjectName()); 158 } 159 160 163 public String getImplementationBean() { 164 return implementationBeanOName; 165 } 166 167 170 public void setImplementationBean(String implementationBean) { 171 this.implementationBeanOName = implementationBean; 172 } 173 174 177 protected String getMBeanType() { 178 return WebServicesObjectName.PORTCOMPONENT_TYPE; 179 } 180 181 184 protected List getChildsMBeans() { 185 return handlers; 186 } 187 188 189 } 190 | Popular Tags |