Package org.jboss.modules.xml
Class PermissionsXmlParser
java.lang.Object
org.jboss.modules.xml.PermissionsXmlParser
A simple parser for enterprise-style
permissions.xml files.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FactoryPermissionCollectionparsePermissionsXml(InputStream inputStream, ModuleLoader moduleLoader, String moduleName) Parse thepermissions.xmlstream content.static FactoryPermissionCollectionparsePermissionsXml(XmlPullParser reader, ModuleLoader moduleLoader, String moduleName) Parse thepermissions.xmlcontent.
-
Constructor Details
-
PermissionsXmlParser
public PermissionsXmlParser()
-
-
Method Details
-
parsePermissionsXml
public static FactoryPermissionCollection parsePermissionsXml(InputStream inputStream, ModuleLoader moduleLoader, String moduleName) throws XmlPullParserException, IOException Parse thepermissions.xmlstream content.- Parameters:
inputStream- the input streammoduleLoader- the module loader to load frommoduleName- the module name to load from- Returns:
- the permission collection (not
null) - Throws:
IOException- if the input stream throws an exceptionXmlPullParserException- if the XML parser throws an exception
-
parsePermissionsXml
public static FactoryPermissionCollection parsePermissionsXml(XmlPullParser reader, ModuleLoader moduleLoader, String moduleName) throws IOException, XmlPullParserException Parse thepermissions.xmlcontent.- Parameters:
reader- the parsermoduleLoader- the module loader to load frommoduleName- the module name to load from- Returns:
- the permission collection (not
null) - Throws:
IOException- if the input stream throws an exceptionXmlPullParserException- if the XML parser throws an exception
-