public abstract class AbstractPrioritizedPropertyLoader extends Object implements EsapiPropertyLoader, Comparable<AbstractPrioritizedPropertyLoader>
Modifier and Type | Field and Description |
---|---|
protected String |
filename |
protected Properties |
properties |
Constructor and Description |
---|
AbstractPrioritizedPropertyLoader(String filename,
int priority) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AbstractPrioritizedPropertyLoader compared) |
protected abstract void |
loadPropertiesFromFile(File file)
Method that loads the data from configuration file to properties object.
|
protected void |
logSpecial(String msg)
Used to log errors to the console during the loading of the properties file itself.
|
protected void |
logSpecial(String msg,
Throwable t)
Used to log errors to the console during the loading of the properties file itself.
|
String |
name() |
int |
priority()
Get priority of this property loader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBooleanProp, getByteArrayProp, getIntProp, getStringProp
protected final String filename
protected Properties properties
public AbstractPrioritizedPropertyLoader(String filename, int priority) throws IOException
IOException
public int priority()
public int compareTo(AbstractPrioritizedPropertyLoader compared)
compareTo
in interface Comparable<AbstractPrioritizedPropertyLoader>
public String name()
protected abstract void loadPropertiesFromFile(File file)
file
- protected final void logSpecial(String msg, Throwable t)
PrintStream
System.out
. Output is discarded if the System
property
"org.owasp.esapi.logSpecial.discard" is set to true
.msg
- The message to log to the console.t
- Associated exception that was caught.protected final void logSpecial(String msg)
PrintStream
System.out
. Output is discarded if the System
property
"org.owasp.esapi.logSpecial.discard" is set to true
.msg
- The message to log to the console.Copyright © 2023 The Open Worldwide Application Security Project (OWASP). All rights reserved.