Java EE 5 SDK

com.sun.appserv.management.ext.wsmgmt
Class WebServiceEndpointInfoImpl

java.lang.Object
  extended by com.sun.appserv.management.base.MapCapableBase
      extended by com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfoImpl
All Implemented Interfaces:
MapCapable, WebServiceEndpointInfo

public final class WebServiceEndpointInfoImpl
extends MapCapableBase
implements WebServiceEndpointInfo

This is the mechanism to provide web service endpoint's information in a given module.

Since:
AppServer 9.0

Field Summary
 
Fields inherited from interface com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo
APP_ID_KEY, APPLICATION_XML_KEY, BUNDLE_NAME_KEY, CLASS_NAME, EJB_IMPL, EJB_XML_KEY, END_POINT_URI_KEY, IS_SECURE_KEY, IS_STAND_ALONE_MODULE_KEY, MAPPING_FILE_KEY, MAPPING_FILE_LOCATION_KEY, NAME_KEY, SERVICE_IMPL_CLASS_KEY, SERVICE_IMPL_NAME_KEY, SERVICE_IMPL_TYPE_KEY, SERVLET_IMPL, SUN_EJB_XML_KEY, SUN_WEB_XML_KEY, THROUGHPUT_STATISTIC, WEB_SERVICES_FILE_KEY, WEB_XML_KEY, WSDL_FILE_KEY, WSDL_FILE_LOCATION_KEY
 
Fields inherited from interface com.sun.appserv.management.base.MapCapable
MAP_CAPABLE_CLASS_NAME_KEY
 
Constructor Summary
WebServiceEndpointInfoImpl(Map<String,Serializable> m, String className)
          Public constructor
WebServiceEndpointInfoImpl(String name, String uri, String appid, String bundleName, boolean isStandalone, String wsdl, String mapfile, String webservicesFile, String implType, String implName, String implClass, boolean isSecure)
          Public constructor
 
Method Summary
 String getAppID()
          Returns the name of the application or stand alone module that has this web service.
 String getApplicationXML()
          Gets the application.xml file .
 String getBundleName()
          Returns the module name within a EAR or null if it is a stand alone module.
 String[] getDescriptors()
          Returns the descriptor .
 String getEJBXML()
          Gets the ejb.xml file .
 String getEndpointURI()
          Returns the relative URI of this endpoint.
 String getMappingFile()
          Returns the mapping file .
 String getName()
          Returns the name of the WebService.
 String getServiceImplClass()
          Returns the implementation Ejb or Servlet class name of this web service.
 String getServiceImplName()
          Returns the implementation Ejb or Servlet name of this web service.
 String getServiceImplType()
          Returns the implementation type of this web service.
 String getSunEJBXML()
          Gets the sun-ejb.xml file .
 String getSunWebXML()
          Gets the sun-web.xml file .
 String getWebservicesFile()
          Returns the webservices.xml file .
 String getWebXML()
          Gets the web.xml file .
 String getWSDLFile()
          Returns the WSDL file.
 boolean isAppStandaloneModule()
          Returns true if this web service belongs to a stand alone module.
 boolean isSecure()
          Returns true if this web service is secured or not.
 void setAppID(String name)
          Sets the name of the application or stand alone module that has this web service.
 void setApplicationXML(String applicationXML)
          Sets the application.xml file .
 void setBundleName(String name)
          Sets the module name within a EAR or null if it is a stand alone module.
 void setEJBXML(String EJBXML)
          Sets the ejb.xml file .
 void setEndpointURI(String uri)
          Sets the relative URI of this endpoint.
 void setIsAppStandaloneModule(boolean isAppStandAloneModule)
          Sets the boolean indicating web service belongs to a stand alone module.
 void setIsSecure(boolean isSec)
          Returns true if this web service is secured or not.
 void setMappingFile(String mapFile)
          Sets the mapping file .
 void setName(String name)
          Sets the name of the WebService.
 void setServiceImplClass(String implClassName)
          Sets the implementation Ejb or Servlet class name of this web service.
 void setServiceImplName(String name)
          Sets the implementation Ejb or Servlet name of this web service.
 void setServiceImplType(String type)
          Sets the implementation type of this web service.
 void setSunEJBXML(String sunEJBXML)
          Sets the sun-ejb.xml file .
 void setSunWebXML(String sunWebXML)
          Sets the sun-web.xml file .
 void setWebservicesFile(String webservicesFile)
          Sets the webservices.xml file .
 void setWebXML(String webXML)
          Sets the web.xml file .
 void setWSDLFile(String wsdl)
          Sets the WSDL file .
protected  boolean validate()
          Return true if internal state is valid, false otherwise.
 
Methods inherited from class com.sun.appserv.management.base.MapCapableBase
asMap, asMapHook, checkInJavaUtil, checkLegalObject, checkLegalObject, checkValidType, equals, getboolean, getBoolean, getByte, getField, getFile, getInteger, getMap, getMapClassName, getObject, getString, getStringArray, hashCode, illegalObject, makeImmutable, putAll, putField, putFieldHook, toString, validateNullOrOfType, validateThrow
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.appserv.management.base.MapCapable
asMap, getMapClassName
 

Constructor Detail

WebServiceEndpointInfoImpl

public WebServiceEndpointInfoImpl(Map<String,Serializable> m,
                                  String className)
Public constructor

Parameters:
m - Map containing keys as in WebServiceEndpointInfo and their values
className - Class name of the interface , must be WebServiceEndpointInfo.CLASS_NAME

WebServiceEndpointInfoImpl

public WebServiceEndpointInfoImpl(String name,
                                  String uri,
                                  String appid,
                                  String bundleName,
                                  boolean isStandalone,
                                  String wsdl,
                                  String mapfile,
                                  String webservicesFile,
                                  String implType,
                                  String implName,
                                  String implClass,
                                  boolean isSecure)
Public constructor

Parameters:
name - Name of the web service end point
uri - URI of the web service end point
appid - Application Id of this web service end point
bundleName - Bundle name (module name) of this web service end point
isStandalone - true, if the module (ejb or web) of this web service end point is standalone
wsdl - WSDL file location for this web service end point
mapfile - Mapping file location for this web service end point
webservicesFile - webservices.xml file location for this web service end point
implType - Implementation type of this web service end point
implName - Implemenation Ejb or Servlet name
implClass - Implementation Ejb or Servlet class name
isSecure - Secure service or not
Method Detail

validate

protected boolean validate()
Description copied from class: MapCapableBase
Return true if internal state is valid, false otherwise.

Specified by:
validate in class MapCapableBase

getName

public String getName()
Returns the name of the WebService.

Specified by:
getName in interface WebServiceEndpointInfo
Returns:
fully qualified name of this WebService

setName

public void setName(String name)
Sets the name of the WebService.


getEndpointURI

public String getEndpointURI()
Returns the relative URI of this endpoint.

Specified by:
getEndpointURI in interface WebServiceEndpointInfo
Returns:
the uri string

setEndpointURI

public void setEndpointURI(String uri)
Sets the relative URI of this endpoint.


getAppID

public String getAppID()
Returns the name of the application or stand alone module that has this web service.

Specified by:
getAppID in interface WebServiceEndpointInfo
Returns:
the Application Id

setAppID

public void setAppID(String name)
Sets the name of the application or stand alone module that has this web service.


isAppStandaloneModule

public boolean isAppStandaloneModule()
Returns true if this web service belongs to a stand alone module.

Specified by:
isAppStandaloneModule in interface WebServiceEndpointInfo
Returns:
true if this web service belongs to a stand alone module

setIsAppStandaloneModule

public void setIsAppStandaloneModule(boolean isAppStandAloneModule)
Sets the boolean indicating web service belongs to a stand alone module.

Parameters:
isAppStandAloneModule - true if this web service belongs to a stand alone module

getBundleName

public String getBundleName()
Returns the module name within a EAR or null if it is a stand alone module.

Specified by:
getBundleName in interface WebServiceEndpointInfo
Returns:
the bundle name

setBundleName

public void setBundleName(String name)
Sets the module name within a EAR or null if it is a stand alone module.

Parameters:
name - the bundle name

getServiceImplType

public String getServiceImplType()
Returns the implementation type of this web service.

Specified by:
getServiceImplType in interface WebServiceEndpointInfo
Returns:
either "EJB" or "SERVLET"

setServiceImplType

public void setServiceImplType(String type)
Sets the implementation type of this web service.

Parameters:
type - either "EJB" or "SERVLET"

getServiceImplName

public String getServiceImplName()
Returns the implementation Ejb or Servlet name of this web service.

Specified by:
getServiceImplName in interface WebServiceEndpointInfo
Returns:
the Ejb or Servlet name

setServiceImplName

public void setServiceImplName(String name)
Sets the implementation Ejb or Servlet name of this web service.

Parameters:
name - the Ejb or Servlet name

getServiceImplClass

public String getServiceImplClass()
Returns the implementation Ejb or Servlet class name of this web service.

Specified by:
getServiceImplClass in interface WebServiceEndpointInfo
Returns:
the Ejb or Servlet class name

setServiceImplClass

public void setServiceImplClass(String implClassName)
Sets the implementation Ejb or Servlet class name of this web service.

Parameters:
implClassName - the Ejb or Servlet class name

getWSDLFile

public String getWSDLFile()
Returns the WSDL file.

Specified by:
getWSDLFile in interface WebServiceEndpointInfo
Returns:
the WSDL file

setWSDLFile

public void setWSDLFile(String wsdl)
Sets the WSDL file .

Parameters:
wsdl - the WSDL file

getWebservicesFile

public String getWebservicesFile()
Returns the webservices.xml file .

Specified by:
getWebservicesFile in interface WebServiceEndpointInfo
Returns:
the Web services file

setWebservicesFile

public void setWebservicesFile(String webservicesFile)
Sets the webservices.xml file .

Parameters:
webservicesFile - the Web services file

getMappingFile

public String getMappingFile()
Returns the mapping file .

Specified by:
getMappingFile in interface WebServiceEndpointInfo
Returns:
the mapping file

setMappingFile

public void setMappingFile(String mapFile)
Sets the mapping file .

Parameters:
mapFile - the mapping file

getWebXML

public String getWebXML()
Gets the web.xml file .

Specified by:
getWebXML in interface WebServiceEndpointInfo
Returns:
webXML the web.xml file

setWebXML

public void setWebXML(String webXML)
Sets the web.xml file .

Parameters:
webXML - the web.xml file

setSunWebXML

public void setSunWebXML(String sunWebXML)
Sets the sun-web.xml file .

Parameters:
sunWebXML - the sun-web.xml file

getSunWebXML

public String getSunWebXML()
Gets the sun-web.xml file .

Specified by:
getSunWebXML in interface WebServiceEndpointInfo
Returns:
sunWebXML the sun-web.xml file

setEJBXML

public void setEJBXML(String EJBXML)
Sets the ejb.xml file .

Parameters:
EJBXML - the ejb.xml file

getEJBXML

public String getEJBXML()
Gets the ejb.xml file .

Specified by:
getEJBXML in interface WebServiceEndpointInfo
Returns:
EJBXML the ejb.xml file

setSunEJBXML

public void setSunEJBXML(String sunEJBXML)
Sets the sun-ejb.xml file .

Parameters:
sunEJBXML - the sun-ejb.xml file

getSunEJBXML

public String getSunEJBXML()
Gets the sun-ejb.xml file .

Specified by:
getSunEJBXML in interface WebServiceEndpointInfo
Returns:
sunEJBXML the sun-ejb.xml file

setApplicationXML

public void setApplicationXML(String applicationXML)
Sets the application.xml file .

Parameters:
applicationXML - the application.xml file

getApplicationXML

public String getApplicationXML()
Gets the application.xml file .

Specified by:
getApplicationXML in interface WebServiceEndpointInfo
Returns:
applicationXML the application.xml file

isSecure

public boolean isSecure()
Returns true if this web service is secured or not. Corresponds to the WebServiceEndpointInfo.IS_SECURE_KEY key.

Specified by:
isSecure in interface WebServiceEndpointInfo
Returns:
true, if this web service is secured, false otherwise

setIsSecure

public void setIsSecure(boolean isSec)
Returns true if this web service is secured or not. Corresponds to the WebServiceEndpointInfo.IS_SECURE_KEY key.


getDescriptors

public String[] getDescriptors()
Returns the descriptor . The descriptors include WSDL, webservices.xml and mapping file. If the alt WSDL is specified in the archive, the overridden (correct) WSDL file is returned.

Specified by:
getDescriptors in interface WebServiceEndpointInfo
Returns:
the descriptors

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.