public class XmlEsapiPropertyLoader extends AbstractPrioritizedPropertyLoader
filename, properties
Constructor and Description |
---|
XmlEsapiPropertyLoader(String filename,
int priority) |
Modifier and Type | Method and Description |
---|---|
Boolean |
getBooleanProp(String propertyName)
Get any Boolean type property from security configuration.
|
byte[] |
getByteArrayProp(String propertyName)
Get any byte array type property from security configuration.
|
int |
getIntProp(String propertyName)
Get any int type property from security configuration.
|
String |
getStringProp(String propertyName)
Get any property from security configuration.
|
protected void |
loadPropertiesFromFile(File file)
Methods loads configuration from .xml file.
|
compareTo, logSpecial, logSpecial, name, priority
public XmlEsapiPropertyLoader(String filename, int priority) throws IOException
IOException
public int getIntProp(String propertyName) throws ConfigurationException
ConfigurationException
- when property does not exist in configuration or has incorrect type.public byte[] getByteArrayProp(String propertyName) throws ConfigurationException
ConfigurationException
- when property does not exist in configuration or has incorrect type.public Boolean getBooleanProp(String propertyName) throws ConfigurationException
ConfigurationException
- when property does not exist in configuration or has incorrect type.public String getStringProp(String propertyName) throws ConfigurationException
ConfigurationException
- when property does not exist in configuration.protected void loadPropertiesFromFile(File file) throws ConfigurationException
loadPropertiesFromFile
in class AbstractPrioritizedPropertyLoader
file
- ConfigurationException
- if there is a problem loading the specified configuration file.Copyright © 2023 The Open Web Application Security Project (OWASP). All rights reserved.