org.objectweb.jonas_ws.deployment.api
Class ServiceDesc

java.lang.Object
  extended byorg.objectweb.jonas_ws.deployment.api.ServiceDesc

public class ServiceDesc
extends java.lang.Object

This class corresponds to 1 webservices-description XML element. It's used to get a MappingFile instance if it's defined, idem for WSDLFile instance and give access to the Web service Port component list.

Author:
Guillaume Sauthier, Xavier Delplanque

Constructor Summary
ServiceDesc(java.lang.ClassLoader jarCL, WebserviceDescription wsd)
          Constructor : creates a ServiceDesc object.
 
Method Summary
 MappingFile getMapping()
          Return the Mapping File.
 java.lang.String getName()
          Return the name of the WebService.
 PortComponentDesc getPortComponent(java.lang.String pcName)
          Return the port component desc with the given name if it exists, null else.
 java.util.List getPortComponents()
          Return the port component list of this service desc.
 WSDLFile getWSDL()
          Return the WSDL File.
 java.lang.String toString()
          Return a String representation of the ServiceDesc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceDesc

public ServiceDesc(java.lang.ClassLoader jarCL,
                   WebserviceDescription wsd)
            throws WSDeploymentDescException
Constructor : creates a ServiceDesc object.

Parameters:
jarCL - ejbjar or war classLoader
wsd - Zeus object containing Webservices informations
Throws:
WSDeploymentDescException - When contruction fails.
Method Detail

getName

public java.lang.String getName()
Return the name of the WebService.

Returns:
the name of the WebService.

getMapping

public MappingFile getMapping()
Return the Mapping File.

Returns:
the MappingFile.

getWSDL

public WSDLFile getWSDL()
Return the WSDL File.

Returns:
the WSDL File.

getPortComponents

public java.util.List getPortComponents()
Return the port component list of this service desc.

Returns:
the port component list of this service desc.

getPortComponent

public PortComponentDesc getPortComponent(java.lang.String pcName)
Return the port component desc with the given name if it exists, null else.

Parameters:
pcName - the name of the portComponent to retrieve.
Returns:
the port component desc with the given name if it exists, null else.

toString

public java.lang.String toString()
Return a String representation of the ServiceDesc.

Returns:
a String representation of the ServiceDesc.