| java.lang.Object org.jboss.metadata.XmlFileLoader
XmlFileLoader | public XmlFileLoader()(Code) | | |
XmlFileLoader | public XmlFileLoader(boolean validateDTDs)(Code) | | |
getClassLoader | public ClassLoader getClassLoader()(Code) | | Gets the class loader
ClassLoader - the class loader |
getDefaultValidateDTDs | public static boolean getDefaultValidateDTDs()(Code) | | |
getDocument | public static Document getDocument(URL url) throws DeploymentException(Code) | | Invokes getDocument(url, defaultValidateDTDs)
|
getDocument | public static Document getDocument(URL url, boolean validateDTDs) throws DeploymentException(Code) | | Get the xml file from the URL and parse it into a Document object.
Calls new XmlFileLoader(validateDTDs).getDocumentFromURL(url);
Parameters: url - the URL from which the xml doc is to be obtained. Document |
getDocument | public Document getDocument(InputStream is, String inPath) throws DeploymentException(Code) | | Parses the xml document in is to create a DOM Document. DTD validation
is enabled if validateDTDs is true and we install an EntityResolver and
ErrorHandler to resolve J2EE DTDs and handle errors. We also create an
InputSource for the InputStream and set the SystemId URI to the inPath
value. This allows relative entity references to be resolved against the
inPath URI. The is argument will be closed.
Parameters: is - the InputStream containing the xml descriptor to parse Parameters: inPath - the path information for the xml doc. This is used as theInputSource SystemId URI for resolving relative entity references. Document |
getDocument | public Document getDocument(InputSource is, String inPath) throws DeploymentException(Code) | | Parses the xml document in is to create a DOM Document. DTD validation
is enabled if validateDTDs is true and we install an EntityResolver and
ErrorHandler to resolve J2EE DTDs and handle errors. We also create an
InputSource for the InputStream and set the SystemId URI to the inPath
value. This allows relative entity references to be resolved against the
inPath URI.
Parameters: is - the InputSource containing the xml descriptor to parse Parameters: inPath - the path information for the xml doc. This is used foronly for error reporting. Document |
getDocumentFromURL | public Document getDocumentFromURL(URL url) throws DeploymentException(Code) | | Get the xml file from the URL and parse it into a Document object.
Calls getDocument(new InputSource(url.openStream()), url.getPath())
with the InputSource.SystemId set to url.toExternalForm().
Parameters: url - the URL from which the xml doc is to be obtained. Document |
getValidateDTDs | public boolean getValidateDTDs()(Code) | | Get the flag indicating that ejb-jar.dtd, jboss.dtd &
jboss-web.dtd conforming documents should be validated
against the DTD.
|
load | public ApplicationMetaData load(URL alternativeDD) throws Exception(Code) | | Creates the ApplicationMetaData.
The configuration files are found in the classLoader when not explicitly given as
the alternativeDD.
The default jboss.xml and jaws.xml files are always read first, then we override
the defaults if the user provides them
Parameters: alternativeDD - a URL to the alternative DD given in application.xml |
setDefaultValidateDTDs | public static void setDefaultValidateDTDs(boolean validate)(Code) | | |
setValidateDTDs | public void setValidateDTDs(boolean validate)(Code) | | Set the flag indicating that ejb-jar.dtd, jboss.dtd &
jboss-web.dtd conforming documents should be validated
against the DTD.
|
|
|