|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
org.objectweb.jonas_client.deployment.api.ClientContainerDeploymentDesc
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.
Field Summary | |
static java.lang.String |
CLIENT_FILE_NAME
The path to the application-client.xml file. |
static java.lang.String |
JONAS_CLIENT_FILE_NAME
The path to the jonas-client.xml file. |
Fields inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc |
description, displayName, largeIcon, smallIcon |
Method Summary | |
java.lang.String |
getCallbackHandler()
Get the callback handler of this client application. |
static org.xml.sax.EntityResolver |
getEntityResolver()
Get the current EntityResolver. |
static org.xml.sax.ErrorHandler |
getErrorHandler()
Get the current ErrorHandler. |
static ClientContainerDeploymentDesc |
getInstance(java.lang.String clientFileName,
java.lang.ClassLoader classLoaderForCls)
Get an instance of a Client deployment descriptor by parsing the application-client.xml and jonas-client.xml deployment descriptors. |
static ClientContainerDeploymentDesc |
getInstance(java.lang.String clientFileName,
java.lang.ClassLoader classLoaderForCls,
java.lang.String altClientXmlFilename)
Get an instance of a Client deployment descriptor by parsing the application-client.xml and jonas-client.xml deployment descriptors. |
java.lang.String |
getJaasEntry()
Get the entry in the jaas configuration file |
java.lang.String |
getJaasFile()
Get the name of the jaas configuration file |
static boolean |
getParsingWithValidation()
Controls whether the parser is reporting all validity errors. |
java.lang.String |
getPassword()
Get the password used for a callback handler |
java.lang.String |
getUsername()
Get the username used for a callback handler |
static ApplicationClient |
loadApplicationClient(java.io.Reader reader,
java.lang.String fileName)
Load the application-client.xml file. |
static JonasClient |
loadJonasClient(java.io.Reader reader,
java.lang.String fileName)
Load the jonas-client.xml file. |
static void |
setEntityResolver(org.xml.sax.EntityResolver entityResolver)
Set the specified EntityResolver. |
static void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
Set the specified ErrorHandler. |
static void |
setParsingWithValidation(boolean validation)
Controls whether the parser is reporting all validity errors. |
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, 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 |
Field Detail |
public static final java.lang.String CLIENT_FILE_NAME
public static final java.lang.String JONAS_CLIENT_FILE_NAME
Method Detail |
public static ClientContainerDeploymentDesc getInstance(java.lang.String clientFileName, java.lang.ClassLoader classLoaderForCls) throws DeploymentDescException
clientFileName
- the fileName of the client file for the deployment
descriptors.classLoaderForCls
- the classloader for the classes.
ClientContainerDeploymentDescException
- if the deployment
descriptors are corrupted.
DeploymentDescException
public static ClientContainerDeploymentDesc getInstance(java.lang.String clientFileName, java.lang.ClassLoader classLoaderForCls, java.lang.String altClientXmlFilename) throws DeploymentDescException
clientFileName
- the fileName of the client file for the deployment
descriptors.classLoaderForCls
- the classloader for the classes.altClientXmlFilename
- the fileName to the application-client.xml for the alt-dd
tag in the Ear Case. This is used for specify an alternate DDesc file.
ClientContainerDeploymentDescException
- if the deployment
descriptors are corrupted.
DeploymentDescException
public static ApplicationClient loadApplicationClient(java.io.Reader reader, java.lang.String fileName) throws DeploymentDescException
reader
- the reader of the XML file.fileName
- the name of the file (application-client.xml).
ClientContainerDeploymentDescException
- if the deployment descriptor
is corrupted.
DeploymentDescException
public static JonasClient loadJonasClient(java.io.Reader reader, java.lang.String fileName) throws DeploymentDescException
fileName
- the name of the file (jonas-client.xml).
ClientContainerDeploymentDescException
- if the deployment
descriptor is corrupted.
DeploymentDescException
public java.lang.String getJaasFile()
public java.lang.String getJaasEntry()
public java.lang.String getUsername()
public java.lang.String getPassword()
public java.lang.String getCallbackHandler()
public java.lang.String toString()
toString
in interface DescriptionGroup
toString
in class DescriptionGroupDesc
public static org.xml.sax.ErrorHandler getErrorHandler()
public static org.xml.sax.EntityResolver getEntityResolver()
public static boolean getParsingWithValidation()
public static void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
errorHandler
- the Error Handler to set.public static void setEntityResolver(org.xml.sax.EntityResolver entityResolver)
entityResolver
- the Entity Resolver to set.public static void setParsingWithValidation(boolean validation)
validation
- if true, all external entities will be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |