com.sun.enterprise.deployment
Class WebServicesDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.RootDeploymentDescriptor
                  extended by com.sun.enterprise.deployment.WebServicesDescriptor
All Implemented Interfaces:
java.io.Serializable

public class WebServicesDescriptor
extends RootDeploymentDescriptor

Information about the web services defined in a single module.

Author:
Kenneth Saks, Jerome Dochez
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.RootDeploymentDescriptor
classLoader, extensions, moduleDescriptor, moduleID
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
WebServicesDescriptor()
          Default constructor.
 
Method Summary
 void addWebService(WebService descriptor)
           
 BundleDescriptor getBundleDescriptor()
           
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String getDefaultSpecVersion()
           
 WebServiceEndpoint getEndpointByName(java.lang.String endpointName)
          Endpoint has a unique name within all the endpoints in the module.
 java.util.Collection<WebServiceEndpoint> getEndpoints()
           
 java.util.Collection<WebServiceEndpoint> getEndpointsImplementedBy(EjbDescriptor ejb)
           
 java.util.Collection<WebServiceEndpoint> getEndpointsImplementedBy(WebComponentDescriptor desc)
           
 java.lang.String getModuleID()
           
 XModuleType getModuleType()
           
 WebService getWebServiceByName(java.lang.String webServiceName)
           
 java.util.Collection<WebService> getWebServices()
           
 boolean hasEndpointsImplementedBy(EjbDescriptor ejb)
           
 boolean hasEndpointsImplementedBy(WebComponentDescriptor desc)
           
 boolean hasWebServices()
           
 boolean isApplication()
           
 boolean isEmpty()
          Return true if this root deployment descriptor does not describe anything
 void print(java.lang.StringBuffer toStringBuffer)
          Returns a formatted String of the attributes of this object.
 void removeWebService(WebService descriptor)
           
 void setBundleDescriptor(BundleDescriptor module)
           
 
Methods inherited from class com.sun.enterprise.deployment.RootDeploymentDescriptor
addExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, isDDWithNoAnnotationAllowed, isExtensionDescriptor, isFullAttribute, isFullFlag, setClassLoader, setDisplayName, setFullAttribute, setFullFlag, setModuleDescriptor, setModuleID, setName, setSchemaLocation, setSpecVersion
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setSmallIconUri, visit
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebServicesDescriptor

public WebServicesDescriptor()
Default constructor.

Method Detail

getDefaultSpecVersion

public java.lang.String getDefaultSpecVersion()
Specified by:
getDefaultSpecVersion in class RootDeploymentDescriptor
Returns:
the default version of the deployment descriptor loaded by this descriptor

setBundleDescriptor

public void setBundleDescriptor(BundleDescriptor module)

getBundleDescriptor

public BundleDescriptor getBundleDescriptor()

hasWebServices

public boolean hasWebServices()

isEmpty

public boolean isEmpty()
Description copied from class: RootDeploymentDescriptor
Return true if this root deployment descriptor does not describe anything

Specified by:
isEmpty in class RootDeploymentDescriptor
Returns:
true if this root descriptor is empty

getWebServiceByName

public WebService getWebServiceByName(java.lang.String webServiceName)

addWebService

public void addWebService(WebService descriptor)

removeWebService

public void removeWebService(WebService descriptor)

getWebServices

public java.util.Collection<WebService> getWebServices()

getEndpointByName

public WebServiceEndpoint getEndpointByName(java.lang.String endpointName)
Endpoint has a unique name within all the endpoints in the module.

Returns:
WebServiceEndpoint or null if not found

hasEndpointsImplementedBy

public boolean hasEndpointsImplementedBy(EjbDescriptor ejb)

getEndpointsImplementedBy

public java.util.Collection<WebServiceEndpoint> getEndpointsImplementedBy(EjbDescriptor ejb)

hasEndpointsImplementedBy

public boolean hasEndpointsImplementedBy(WebComponentDescriptor desc)

getEndpointsImplementedBy

public java.util.Collection<WebServiceEndpoint> getEndpointsImplementedBy(WebComponentDescriptor desc)

getEndpoints

public java.util.Collection<WebServiceEndpoint> getEndpoints()

getModuleType

public XModuleType getModuleType()
Specified by:
getModuleType in class RootDeploymentDescriptor
Returns:
the module type for this bundle descriptor

getModuleID

public java.lang.String getModuleID()
Specified by:
getModuleID in class RootDeploymentDescriptor
Returns:
the module ID for this module descriptor

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in class RootDeploymentDescriptor
Returns:
the class loader associated with this module

isApplication

public boolean isApplication()
Specified by:
isApplication in class RootDeploymentDescriptor
Returns:
true if this module is an application object

print

public void print(java.lang.StringBuffer toStringBuffer)
Returns a formatted String of the attributes of this object.

Overrides:
print in class RootDeploymentDescriptor


Copyright © 2012 GlassFish Community. All Rights Reserved.