FileDocCategorySizeDatePackage
WebServiceInfoImpl.javaAPI DocGlassfish v2 API7824Fri May 04 22:24:44 BST 2007com.sun.enterprise.admin.wsmgmt.repository.impl

WebServiceInfoImpl

public class WebServiceInfoImpl extends Object implements com.sun.enterprise.admin.wsmgmt.repository.spi.WebServiceInfo
This is the mechanism to provide web service information for a given module. A WebServiceInfoProvider implementation is a class that extends the WebServiceInfoProvider abstract class. Some WebServiceInfoProvider can deal with ejb and web module. Some only deal with web modules.

Fields Summary
private String
wsName
private String
wsUri
private String
wsAppId
private boolean
wsAppStandAloneModule
private String
wsBundleName
private String
wsWSDL
private String
wsWebServices
private String
wsMapping
private String
wsImplName
private String
wsImplType
private String
wsImplClass
Constructors Summary
public WebServiceInfoImpl(String name, String uri, String appid, String bundleName, boolean isStandAlone, String wsdl, String mapfile, String webservicesFile, String implType, String implName, String implClass)
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

            wsName = name;
            wsUri = uri;
            wsAppId = appid;
            wsAppStandAloneModule = isStandAlone;
            wsBundleName = bundleName;
            wsWSDL = wsdl;
            wsWebServices = webservicesFile;
            wsMapping = mapfile;
            wsImplType = implType;
            wsImplName = implName;
            wsImplClass = implClass;
        
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 wsAppId;
    
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 wsBundleName;
    
public java.lang.String[]getDescriptorLocations()
Returns the descriptor locations. The descriptors include WSDL, webservices.xml and mapping file. If the alt WSDL location is specified in the archive, the overridden (correct) WSDL file location is returned.

return
the descriptor locations

        String [] list = new String[3];
        list[0] = wsWSDL;
        list[1] = wsWebServices;
        list[2] = wsMapping;
        return list;
    
public java.lang.StringgetEndpointUri()
Returns the relative URI of this endpoint.

return
the uri string

        return wsUri;
    
public java.lang.StringgetMappingFileLocation()
Returns the mapping file location.

return
the mapping file location

        return wsMapping;
    
public java.lang.StringgetName()
Returns the name of the WebService.

return
fully qualified name of this WebService

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

return
the Ejb or Servlet class name

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

return
the Ejb or Servlet name

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

return
either "EJB" or "SERVLET"

        return wsImplType;
    
public java.lang.StringgetWSDLFileLocation()
Returns the WSDL file location.

return
the WSDL file location

        return wsWSDL;
    
public java.lang.StringgetWebservicesFileLocation()
Returns the webservices.xml file location.

return
the Web services file location

        return wsWebServices;
    
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 wsAppStandAloneModule;
    
public java.lang.StringtoString()
Provides the string representation for this web sevice end point.

return
string representation.

        return "Web Service Name: " + wsName + " URI: " + wsUri  + 
        " Application Id " + wsAppId + " isStandAlone?: " + 
        wsAppStandAloneModule + " Bundle Name: " + wsBundleName + 
        " WSDL location " + wsWSDL + " Mapping file location: " + 
        wsMapping + " webservices.xml location: " + wsWebServices + 
        " impl Type " + wsImplType + " impl Name " + wsImplName + 
        " impl Class " + wsImplClass;