org.objectweb.jonas_ws.deployment.api
Class ServiceDesc

java.lang.Object
  extended by org.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, JonasWebserviceDescription jwsd)
          Constructor : creates a ServiceDesc object.
 
Method Summary
 java.lang.String getEndpointURI()
           
protected static I18n getI18n()
           
 java.net.URL getLocalWSDLURL()
           
 MappingFile getMapping()
          Return the Mapping File.
 java.lang.String getMappingFilename()
           
 java.net.URL getMappingFileURL()
           
 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.
 java.io.File getPublicationDirectory()
           
 WSDLFile getWSDL()
          Return the WSDL File.
 java.lang.String getWsdlFilename()
           
 java.lang.String toString()
           
 
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,
                   JonasWebserviceDescription jwsd)
            throws WSDeploymentDescException
Constructor : creates a ServiceDesc object.

Parameters:
jarCL - ejbjar or war classLoader
wsd - Zeus object containing WebserviceDescription informations
jwsd - Zeus object containing JonasWebserviceDescription 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.

getEndpointURI

public java.lang.String getEndpointURI()
Returns:
Returns the endpointURI.

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()
Overrides:
toString in class java.lang.Object
Returns:
Returns a String representation of the ServiceDesc.

getI18n

protected static I18n getI18n()
Returns:
Returns the getI18n().

getPublicationDirectory

public java.io.File getPublicationDirectory()
Returns:
Returns the publicationDirectory.

getMappingFileURL

public java.net.URL getMappingFileURL()
Returns:
Returns URL where mapping file can be loaded.

getLocalWSDLURL

public java.net.URL getLocalWSDLURL()
Returns:
Returns URL where the WSDL can be loaded locally.

getMappingFilename

public java.lang.String getMappingFilename()
Returns:
Returns the JAX-RPC Mapping filename

getWsdlFilename

public java.lang.String getWsdlFilename()
Returns:
Returns the WSDL filename