1 23 package com.sun.appserv.management.ext.wsmgmt; 24 25 import java.util.Map ; 26 import java.util.HashMap ; 27 import java.io.Serializable ; 28 29 import com.sun.appserv.management.base.XTypes; 30 import com.sun.appserv.management.base.MapCapableBase; 31 32 38 public final class WebServiceEndpointInfoImpl 39 extends MapCapableBase 40 implements WebServiceEndpointInfo { 41 42 50 public WebServiceEndpointInfoImpl( 51 final Map <String ,Serializable > m, 52 final String className) { 53 super(m, className); 54 } 55 56 76 public WebServiceEndpointInfoImpl( String name, String uri, String appid, 77 String bundleName, boolean isStandalone, String wsdl, String mapfile, 78 79 String webservicesFile, String implType, String implName, 80 String implClass, boolean isSecure) { 81 82 super (null, WebServiceEndpointInfo.CLASS_NAME); 83 setName(name); 84 setEndpointURI(uri); 85 setAppID(appid); 86 setIsAppStandaloneModule(isStandalone); 87 setBundleName(bundleName); 88 setWSDLFile(wsdl); 89 setWebservicesFile(webservicesFile); 90 setMappingFile(mapfile); 91 setServiceImplType(implType); 92 setServiceImplName(implName); 93 setServiceImplClass(implClass); 94 setIsSecure(isSecure); 95 } 96 97 protected boolean validate() { 98 return (true); 99 } 100 101 106 public String getName() { 107 return (getString(WebServiceEndpointInfo.NAME_KEY)); 108 } 109 110 113 public void setName(String name) { 114 putField(WebServiceEndpointInfo.NAME_KEY, name); 115 } 116 117 122 public String getEndpointURI() { 123 return (getString(WebServiceEndpointInfo.END_POINT_URI_KEY)); 124 } 125 126 129 public void setEndpointURI(String uri) { 130 putField(WebServiceEndpointInfo.END_POINT_URI_KEY, uri); 131 } 132 133 139 public String getAppID() { 140 return (getString(WebServiceEndpointInfo.APP_ID_KEY)); 141 } 142 143 147 public void setAppID(String name) { 148 putField(WebServiceEndpointInfo.APP_ID_KEY, name); 149 } 150 151 156 public boolean isAppStandaloneModule() { 157 return getBoolean(WebServiceEndpointInfo.IS_STAND_ALONE_MODULE_KEY).booleanValue(); 158 } 159 160 166 public void setIsAppStandaloneModule(boolean isAppStandAloneModule) { 167 putField(WebServiceEndpointInfo.IS_STAND_ALONE_MODULE_KEY, new 168 Boolean (isAppStandAloneModule) ); 169 } 170 171 172 178 public String getBundleName() { 179 return (getString(WebServiceEndpointInfo.BUNDLE_NAME_KEY)); 180 } 181 182 188 public void setBundleName(String name) { 189 putField(WebServiceEndpointInfo.BUNDLE_NAME_KEY, name); 190 } 191 192 197 public String getServiceImplType() { 198 return (getString(WebServiceEndpointInfo.SERVICE_IMPL_TYPE_KEY)); 199 } 200 201 206 public void setServiceImplType(String type) { 207 putField(WebServiceEndpointInfo.SERVICE_IMPL_TYPE_KEY, type); 208 } 209 210 215 public String getServiceImplName() { 216 return (getString(WebServiceEndpointInfo.SERVICE_IMPL_NAME_KEY)); 217 } 218 219 224 public void setServiceImplName(String name) { 225 putField(WebServiceEndpointInfo.SERVICE_IMPL_NAME_KEY, name); 226 } 227 228 233 public String getServiceImplClass() { 234 return (getString(WebServiceEndpointInfo.SERVICE_IMPL_CLASS_KEY)); 235 } 236 237 242 public void setServiceImplClass(String implClassName) { 243 putField(WebServiceEndpointInfo.SERVICE_IMPL_CLASS_KEY, implClassName); 244 } 245 246 251 public String getWSDLFile() { 252 return (getString(WebServiceEndpointInfo.WSDL_FILE_KEY)); 253 } 254 255 260 public void setWSDLFile(String wsdl) { 261 putField(WebServiceEndpointInfo.WSDL_FILE_KEY, wsdl); 262 } 263 264 269 public String getWebservicesFile() { 270 return (getString(WebServiceEndpointInfo.WEB_SERVICES_FILE_KEY)); 271 } 272 273 278 public void setWebservicesFile(String webservicesFile) { 279 putField(WebServiceEndpointInfo.WEB_SERVICES_FILE_KEY, 280 webservicesFile); 281 } 282 283 288 public String getMappingFile() { 289 return (getString(WebServiceEndpointInfo.MAPPING_FILE_KEY)); 290 } 291 292 297 public void setMappingFile(String mapFile) { 298 putField(WebServiceEndpointInfo.MAPPING_FILE_KEY, mapFile); 299 } 300 301 306 public String getWebXML() { 307 return getString(WebServiceEndpointInfo.WEB_XML_KEY); 308 } 309 310 315 public void setWebXML(String webXML) { 316 putField(WebServiceEndpointInfo.WEB_XML_KEY, webXML); 317 } 318 319 324 public void setSunWebXML(String sunWebXML) { 325 putField(WebServiceEndpointInfo.SUN_WEB_XML_KEY, 326 sunWebXML); 327 } 328 329 334 public String getSunWebXML() { 335 return getString(WebServiceEndpointInfo.SUN_WEB_XML_KEY); 336 } 337 338 343 public void setEJBXML(String EJBXML) { 344 putField(WebServiceEndpointInfo.EJB_XML_KEY, EJBXML); 345 } 346 347 352 public String getEJBXML() { 353 return getString(WebServiceEndpointInfo.EJB_XML_KEY); 354 } 355 356 361 public void setSunEJBXML(String sunEJBXML) { 362 putField(WebServiceEndpointInfo.SUN_EJB_XML_KEY, 363 sunEJBXML); 364 } 365 366 371 public String getSunEJBXML() { 372 return getString(WebServiceEndpointInfo.SUN_EJB_XML_KEY); 373 } 374 375 380 public void setApplicationXML(String applicationXML) { 381 putField(WebServiceEndpointInfo.APPLICATION_XML_KEY, 382 applicationXML); 383 } 384 385 390 public String getApplicationXML() { 391 return getString(WebServiceEndpointInfo.APPLICATION_XML_KEY); 392 } 393 394 400 public boolean isSecure() { 401 return getBoolean(WebServiceEndpointInfo.IS_SECURE_KEY).booleanValue(); 402 } 403 404 410 public void setIsSecure(boolean isSec) { 411 putField(WebServiceEndpointInfo.IS_SECURE_KEY, new 412 Boolean (isSec) ); 413 } 414 415 422 public String [] getDescriptors() { 423 String [] list = new String [3]; 424 list[0] = getString(WebServiceEndpointInfo.WSDL_FILE_KEY); 425 list[1] = getString(WebServiceEndpointInfo.WEB_SERVICES_FILE_KEY); 426 list[2] = getString(WebServiceEndpointInfo.MAPPING_FILE_KEY); 427 return list; 428 } 429 } 430 | Popular Tags |