org.objectweb.jonas_client.deployment.api
Class ClientContainerDeploymentDesc

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
      extended by org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
          extended by org.objectweb.jonas_client.deployment.api.ClientContainerDeploymentDesc
All Implemented Interfaces:
DescriptionGroup, JndiEnvRefsGroup

public class ClientContainerDeploymentDesc
extends JndiEnvRefsGroupDesc

This class do the parsing of the application-client.xml file and jonas-client.xml files and contruct a data structure associated to these two files.

Author:
Florent Benoit, Philippe Coq

Field Summary
 
Fields inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
description, displayName, largeIcon, smallIcon
 
Constructor Summary
ClientContainerDeploymentDesc(java.lang.ClassLoader classLoader, ApplicationClient applicationClient, JonasClient jonasClient)
          Construct an instance of a ClientContainerDeploymentDesc.
Constructor is private, call one of the static getInstance method instead.
 
Method Summary
 java.lang.String getCallbackHandler()
          Get the callback handler of this client application.
 java.lang.String getJaasEntry()
          Get the entry in the jaas configuration file
 java.lang.String getJaasFile()
          Get the name of the jaas configuration file
 java.lang.String getJOnASXmlContent()
          Return the content of the jonas-web.xml file
 java.lang.String getPassword()
          Get the password used for a callback handler
 java.lang.String getUsername()
          Get the username used for a callback handler
 java.lang.String getXmlContent()
          Return the content of the web.xml file
 void setJOnASXmlContent(java.lang.String jonasXmlContent)
           
 void setXmlContent(java.lang.String xmlContent)
           
 java.lang.String toString()
          Return a String representation of the ClientContainerDeploymentDesc.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
getEjbLocalRefDesc, getEjbRefDesc, getEnvEntryDesc, getMessageDestinationRefDesc, getResourceEnvRefDesc, getResourceRefDesc, getServiceRefDesc
 
Methods inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
getDescription, getDisplayName, getLargeIcon, getSAXMsg, getSmallIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientContainerDeploymentDesc

public ClientContainerDeploymentDesc(java.lang.ClassLoader classLoader,
                                     ApplicationClient applicationClient,
                                     JonasClient jonasClient)
                              throws DeploymentDescException
Construct an instance of a ClientContainerDeploymentDesc.
Constructor is private, call one of the static getInstance method instead.

Parameters:
classLoader - the classloader for the classes.
applicationClient - the data structure of the application-client (application-client.xml)
jonasClient - the data structure of the jonas-client (jonas-client.xml)
Throws:
DeploymentDescException - if the deployment descriptors are corrupted.
Method Detail

getJaasFile

public java.lang.String getJaasFile()
Get the name of the jaas configuration file

Returns:
the name of the jaas configuration file

getJaasEntry

public java.lang.String getJaasEntry()
Get the entry in the jaas configuration file

Returns:
the entry in the jaas configuration file

getUsername

public java.lang.String getUsername()
Get the username used for a callback handler

Returns:
the username used for a callback handler

getPassword

public java.lang.String getPassword()
Get the password used for a callback handler

Returns:
the password used for a callback handler

getCallbackHandler

public java.lang.String getCallbackHandler()
Get the callback handler of this client application.

Returns:
the callback handler of this client application.

getXmlContent

public java.lang.String getXmlContent()
Return the content of the web.xml file

Returns:
the content of the web.xml file

getJOnASXmlContent

public java.lang.String getJOnASXmlContent()
Return the content of the jonas-web.xml file

Returns:
the content of the jonas-web.xml file

setXmlContent

public void setXmlContent(java.lang.String xmlContent)
Parameters:
xmlContent - XML Content

setJOnASXmlContent

public void setJOnASXmlContent(java.lang.String jonasXmlContent)
Parameters:
jonasXmlContent - XML Content

toString

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

Specified by:
toString in interface DescriptionGroup
Specified by:
toString in class DescriptionGroupDesc
Returns:
a String representation of the ClientContainerDeploymentDesc.