Class AbstractConfig
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.config.AbstractConfig
-
- Direct Known Subclasses:
VaultAuthConfig,VaultSettings
@ProviderType public abstract class AbstractConfig extends Object
VaultUserConfig...
-
-
Constructor Summary
Constructors Constructor Description AbstractConfig()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract voiddoLoad(Element child)protected abstract voiddoWrite(XMLStreamWriter writer)protected abstract voiddoWrite(ContentHandler handler)FilegetConfigDir()protected abstract StringgetRootElemName()protected abstract doublegetSupportedVersion()booleanload(File configFile)booleanload(InputStream in)The specified stream remains open after this method returns.voidload(Element doc)voidsave(File configFile)voidsave(OutputStream out)protected voidwrite(XMLStreamWriter writer)protected voidwrite(ContentHandler handler)Deprecated.
-
-
-
Field Detail
-
log
protected static org.slf4j.Logger log
-
DIR_NAME
public static final String DIR_NAME
- See Also:
- Constant Field Values
-
ATTR_VERSION
public static final String ATTR_VERSION
- See Also:
- Constant Field Values
-
version
protected double version
-
-
Method Detail
-
getRootElemName
protected abstract String getRootElemName()
-
getSupportedVersion
protected abstract double getSupportedVersion()
-
load
public void load(Element doc) throws ConfigurationException
- Throws:
ConfigurationException
-
doLoad
protected abstract void doLoad(Element child) throws ConfigurationException
- Throws:
ConfigurationException
-
load
public boolean load(File configFile) throws IOException, ConfigurationException
- Throws:
IOExceptionConfigurationException
-
load
public boolean load(InputStream in) throws IOException, ConfigurationException
The specified stream remains open after this method returns.
- Parameters:
in-- Returns:
- Throws:
IOExceptionConfigurationException
-
save
public void save(File configFile) throws IOException
- Throws:
IOException
-
save
public void save(OutputStream out) throws IOException
- Throws:
IOException
-
getConfigDir
public File getConfigDir() throws IOException
- Throws:
IOException
-
write
@Deprecated protected void write(ContentHandler handler) throws SAXException
Deprecated.- Throws:
SAXException
-
doWrite
protected abstract void doWrite(ContentHandler handler) throws SAXException
- Throws:
SAXException
-
write
protected void write(XMLStreamWriter writer) throws XMLStreamException
- Throws:
XMLStreamException
-
doWrite
protected abstract void doWrite(XMLStreamWriter writer) throws XMLStreamException
- Throws:
XMLStreamException
-
-