FileDocCategorySizeDatePackage
WebServiceEndpointInfoImpl.javaAPI DocGlassfish v2 API14210Fri May 04 22:30:50 BST 2007com.sun.appserv.management.ext.wsmgmt

WebServiceEndpointInfoImpl

public final class WebServiceEndpointInfoImpl extends com.sun.appserv.management.base.MapCapableBase implements WebServiceEndpointInfo
This is the mechanism to provide web service endpoint's information in a given module.
since
AppServer 9.0

Fields Summary
Constructors Summary
public WebServiceEndpointInfoImpl(Map m, String className)
Public constructor

param
m Map containing keys as in {@link WebServiceEndpointInfo} and their values
param
className Class name of the interface , must be WebServiceEndpointInfo.CLASS_NAME

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

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


        super (null, WebServiceEndpointInfo.CLASS_NAME);
        setName(name);
        setEndpointURI(uri);
        setAppID(appid);
        setIsAppStandaloneModule(isStandalone);
        setBundleName(bundleName);
        setWSDLFile(wsdl);
        setWebservicesFile(webservicesFile);
        setMappingFile(mapfile);
        setServiceImplType(implType);
        setServiceImplName(implName);
        setServiceImplClass(implClass);
        setServiceURL(sURL);
        setIsSecure(isSecure);
    
Methods Summary
public java.lang.StringgetAppID()
Returns the name of the application or stand alone module that has this web service.

return
the Application Id

        return (getString(WebServiceEndpointInfo.APP_ID_KEY));
    
public java.lang.StringgetApplicationXML()
Gets the application.xml file .

return
applicationXML the application.xml file

        return getString(WebServiceEndpointInfo.APPLICATION_XML_KEY); 
    
public java.lang.StringgetBundleName()
Returns the module name within a EAR or null if it is a stand alone module.

return
the bundle name

        return (getString(WebServiceEndpointInfo.BUNDLE_NAME_KEY));
    
public java.lang.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.

return
the descriptors

        String [] list = new String[3];
        list[0] = getString(WebServiceEndpointInfo.WSDL_FILE_KEY);
        list[1] = getString(WebServiceEndpointInfo.WEB_SERVICES_FILE_KEY);
        list[2] = getString(WebServiceEndpointInfo.MAPPING_FILE_KEY);
        return list;
    
public java.lang.StringgetEJBXML()
Gets the ejb.xml file .

return
EJBXML the ejb.xml file

        return getString(WebServiceEndpointInfo.EJB_XML_KEY);
    
public java.lang.StringgetEndpointURI()
Returns the relative URI of this endpoint.

return
the uri string

        return (getString(WebServiceEndpointInfo.END_POINT_URI_KEY));
    
public java.lang.StringgetMappingFile()
Returns the mapping file .

return
the mapping file

        return (getString(WebServiceEndpointInfo.MAPPING_FILE_KEY));
    
public java.lang.StringgetName()
Returns the name of the WebService.

return
fully qualified name of this WebService

        return (getString(WebServiceEndpointInfo.NAME_KEY));
    
public java.lang.StringgetServiceImplClass()
Returns the implementation Ejb or Servlet class name of this web service.

return
the Ejb or Servlet class name

        return (getString(WebServiceEndpointInfo.SERVICE_IMPL_CLASS_KEY));
    
public java.lang.StringgetServiceImplName()
Returns the implementation Ejb or Servlet name of this web service.

return
the Ejb or Servlet name

        return (getString(WebServiceEndpointInfo.SERVICE_IMPL_NAME_KEY));
    
public java.lang.StringgetServiceImplType()
Returns the implementation type of this web service.

return
either "EJB" or "SERVLET"

        return (getString(WebServiceEndpointInfo.SERVICE_IMPL_TYPE_KEY));
    
public java.lang.StringgetServiceURL()
Returns the service URL of this endpoint.

return
the url string

        return (getString(WebServiceEndpointInfo.SERVICE_URL_KEY));
    
public java.lang.StringgetSunEJBXML()
Gets the sun-ejb.xml file .

return
sunEJBXML the sun-ejb.xml file

        return getString(WebServiceEndpointInfo.SUN_EJB_XML_KEY);
    
public java.lang.StringgetSunWebXML()
Gets the sun-web.xml file .

return
sunWebXML the sun-web.xml file

        return getString(WebServiceEndpointInfo.SUN_WEB_XML_KEY); 
    
public java.lang.StringgetWSDLFile()
Returns the WSDL file.

return
the WSDL file

        return (getString(WebServiceEndpointInfo.WSDL_FILE_KEY));
    
public java.lang.StringgetWebXML()
Gets the web.xml file .

return
webXML the web.xml file

        return getString(WebServiceEndpointInfo.WEB_XML_KEY);
    
public java.lang.StringgetWebservicesFile()
Returns the webservices.xml file .

return
the Web services file

        return (getString(WebServiceEndpointInfo.WEB_SERVICES_FILE_KEY));
    
public booleanisAppStandaloneModule()
Returns true if this web service belongs to a stand alone module.

return
true if this web service belongs to a stand alone module

        return getBoolean(WebServiceEndpointInfo.IS_STAND_ALONE_MODULE_KEY).booleanValue();
    
public booleanisSecure()
Returns true if this web service is secured or not. Corresponds to the {@link #IS_SECURE_KEY} key.

return
true, if this web service is secured, false otherwise

        return getBoolean(WebServiceEndpointInfo.IS_SECURE_KEY).booleanValue();
    
public voidsetAppID(java.lang.String name)
Sets the name of the application or stand alone module that has this web service.

        putField(WebServiceEndpointInfo.APP_ID_KEY, name);
    
public voidsetApplicationXML(java.lang.String applicationXML)
Sets the application.xml file .

param
applicationXML the application.xml file

        putField(WebServiceEndpointInfo.APPLICATION_XML_KEY, 
                            applicationXML);
    
public voidsetBundleName(java.lang.String name)
Sets the module name within a EAR or null if it is a stand alone module.

param
name the bundle name

        putField(WebServiceEndpointInfo.BUNDLE_NAME_KEY, name);
    
public voidsetEJBXML(java.lang.String EJBXML)
Sets the ejb.xml file .

param
EJBXML the ejb.xml file

        putField(WebServiceEndpointInfo.EJB_XML_KEY, EJBXML);
    
public voidsetEndpointURI(java.lang.String uri)
Sets the relative URI of this endpoint.

        putField(WebServiceEndpointInfo.END_POINT_URI_KEY, uri);
    
public voidsetIsAppStandaloneModule(boolean isAppStandAloneModule)
Sets the boolean indicating web service belongs to a stand alone module.

param
isAppStandAloneModule true if this web service belongs to a stand alone module

        putField(WebServiceEndpointInfo.IS_STAND_ALONE_MODULE_KEY, new
        Boolean(isAppStandAloneModule) );
    
public voidsetIsSecure(boolean isSec)
Returns true if this web service is secured or not. Corresponds to the {@link #IS_SECURE_KEY} key.

return
true, if this web service is secured, false otherwise

        putField(WebServiceEndpointInfo.IS_SECURE_KEY, new
        Boolean(isSec) );
    
public voidsetMappingFile(java.lang.String mapFile)
Sets the mapping file .

param
mapFile the mapping file

        putField(WebServiceEndpointInfo.MAPPING_FILE_KEY, mapFile);
    
public voidsetName(java.lang.String name)
Sets the name of the WebService.

        putField(WebServiceEndpointInfo.NAME_KEY, name);
    
public voidsetServiceImplClass(java.lang.String implClassName)
Sets the implementation Ejb or Servlet class name of this web service.

param
implClassName the Ejb or Servlet class name

        putField(WebServiceEndpointInfo.SERVICE_IMPL_CLASS_KEY, implClassName);
    
public voidsetServiceImplName(java.lang.String name)
Sets the implementation Ejb or Servlet name of this web service.

param
name the Ejb or Servlet name

        putField(WebServiceEndpointInfo.SERVICE_IMPL_NAME_KEY, name);
    
public voidsetServiceImplType(java.lang.String type)
Sets the implementation type of this web service.

param
type either "EJB" or "SERVLET"

        putField(WebServiceEndpointInfo.SERVICE_IMPL_TYPE_KEY, type);
    
public voidsetServiceURL(java.lang.String url)
Sets the service URL of this endpoint.

        putField(WebServiceEndpointInfo.SERVICE_URL_KEY, url);
    
public voidsetSunEJBXML(java.lang.String sunEJBXML)
Sets the sun-ejb.xml file .

param
sunEJBXML the sun-ejb.xml file

        putField(WebServiceEndpointInfo.SUN_EJB_XML_KEY, 
                            sunEJBXML);
    
public voidsetSunWebXML(java.lang.String sunWebXML)
Sets the sun-web.xml file .

param
sunWebXML the sun-web.xml file

        putField(WebServiceEndpointInfo.SUN_WEB_XML_KEY, 
            sunWebXML);
    
public voidsetWSDLFile(java.lang.String wsdl)
Sets the WSDL file .

param
wsdl the WSDL file

        putField(WebServiceEndpointInfo.WSDL_FILE_KEY, wsdl);
    
public voidsetWebXML(java.lang.String webXML)
Sets the web.xml file .

param
webXML the web.xml file

        putField(WebServiceEndpointInfo.WEB_XML_KEY, webXML);
    
public voidsetWebservicesFile(java.lang.String webservicesFile)
Sets the webservices.xml file .

param
webservicesFile the Web services file

        putField(WebServiceEndpointInfo.WEB_SERVICES_FILE_KEY, 
                        webservicesFile);
    
protected booleanvalidate()

        return (true);