public abstract class ConfigBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
ConfigBase() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
extractConfigData(byte[] confData,
String xpath)
Retrieves XML elements (determined by the used path)
from the configuration.
|
static String |
getActiveConfig(byte[] data,
String activePath)
Used to determine which of the elements in the configuration file
is set as active.
|
protected String |
stringFromXpath(com.ximpleware.AutoPilot ap,
String xpath)
Used to get an element by its relative xpath.
|
protected byte[] extractConfigData(byte[] confData,
String xpath)
throws IOException,
com.ximpleware.VTDException
confData - - prepared XMLxpath - - path to the retrieved configuration elementIOExceptioncom.ximpleware.VTDExceptionpublic static String getActiveConfig(byte[] data, String activePath) throws IOException, com.ximpleware.VTDException
data - - the configuration fileactivePath - - xpath to the element which defines the active configurationIOExceptioncom.ximpleware.VTDExceptionprotected String stringFromXpath(com.ximpleware.AutoPilot ap, String xpath) throws com.ximpleware.XPathParseException
ap - - a vtd autopilotxpath - - xpath to the element which shall be returnedcom.ximpleware.XPathParseExceptionCopyright © 2018 JULIE Lab, Germany. All rights reserved.