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 void
doLoad(Element child)
protected abstract void
doWrite(XMLStreamWriter writer)
protected abstract void
doWrite(ContentHandler handler)
File
getConfigDir()
protected abstract String
getRootElemName()
protected abstract double
getSupportedVersion()
boolean
load(File configFile)
boolean
load(InputStream in)
The specified stream remains open after this method returns.void
load(Element doc)
void
save(File configFile)
void
save(OutputStream out)
protected void
write(XMLStreamWriter writer)
protected void
write(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:
IOException
ConfigurationException
-
load
public boolean load(InputStream in) throws IOException, ConfigurationException
The specified stream remains open after this method returns.
- Parameters:
in
-- Returns:
- Throws:
IOException
ConfigurationException
-
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
-
-