org.objectweb.jonas_ws.deployment.api
Class WSDeploymentDesc

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc
      extended by org.objectweb.jonas_ws.deployment.api.WSDeploymentDesc
All Implemented Interfaces:
DeploymentDesc

public class WSDeploymentDesc
extends AbsDeploymentDesc

This Classes is a data structure that encapsulate informations contained in webservices.xml deployment descriptor. It provides methods to manipulate these informations.

Author:
Guillaume Sauthier, Xavier Delplanque, Helene Joanin

Constructor Summary
WSDeploymentDesc(java.lang.ClassLoader jarCL, org.objectweb.util.monolog.api.Logger log, Webservices ws, JonasWebservices jws)
          Constructor : creates a WSDeploymentDesc object
 
Method Summary
 java.lang.String getContextRoot()
           
 java.lang.String getDisplayName()
          Return the Webservices displayName.
protected static I18n getI18n()
           
 java.util.List getServiceDescs()
          Return the list of ServiceDesc.
 java.lang.String getWarFile()
          Return the filename of the WebApp dispatching SOAP requests to the components (can be null if no filename specified in jonas-webservices.xml).
 java.lang.String toString()
          Return a String representation of the WSDeploymentDesc.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc
getSAXMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WSDeploymentDesc

public WSDeploymentDesc(java.lang.ClassLoader jarCL,
                        org.objectweb.util.monolog.api.Logger log,
                        Webservices ws,
                        JonasWebservices jws)
                 throws WSDeploymentDescException
Constructor : creates a WSDeploymentDesc object

Parameters:
jarCL - module (war or ejbjar) class loader.
log - the logger to use.
ws - Zeus object containing webservices informations
jws - Zeus object containing jonas-webservices informations
Throws:
WSDeploymentDescException - if in the Webservices file : - each service haven't got an unique name. - each port component haven't got an unique name. - each handler haven't got an unique name. - wsdl ports aren't inclued in portComponents.
Method Detail

getServiceDescs

public java.util.List getServiceDescs()
Return the list of ServiceDesc.

Returns:
the list of ServiceDesc.

getDisplayName

public java.lang.String getDisplayName()
Return the Webservices displayName.

Specified by:
getDisplayName in interface DeploymentDesc
Overrides:
getDisplayName in class AbsDeploymentDesc
Returns:
the Webservices displayName.

getContextRoot

public java.lang.String getContextRoot()
Returns:
Returns the contextRoot.

toString

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

Specified by:
toString in interface DeploymentDesc
Specified by:
toString in class AbsDeploymentDesc
Returns:
a String representation of the WSDeploymentDesc.

getWarFile

public java.lang.String getWarFile()
Return the filename of the WebApp dispatching SOAP requests to the components (can be null if no filename specified in jonas-webservices.xml).

Returns:
the filename of the WebApp dispatching SOAP requests to the components.

getI18n

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