public class XmlConfigurationSerializer extends Object implements ConfigurationSerializer<IdcClientConfig>
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE_URI |
Constructor and Description |
---|
XmlConfigurationSerializer() |
Modifier and Type | Method and Description |
---|---|
protected IdcClient |
readConfig(IdcClientManager clientManager,
XPathEvaluator evaluator)
Read the configuration
|
IdcClientManager |
readConfiguration(InputStream stream)
Read the configuration from an XML stream
|
void |
serializeConfiguration(OutputStream stream,
IdcClientManager clientManager)
Serialize the clients in the IdcClientManager to an XML stream
|
protected void |
writeConfig(IdcClientConfig config,
String name,
Writer writer)
Write the configuration
|
public static final String NAMESPACE_URI
public IdcClientManager readConfiguration(InputStream stream) throws ConfigurationException
readConfiguration
in interface ConfigurationSerializer<IdcClientConfig>
stream
- the XML streamConfigurationException
public void serializeConfiguration(OutputStream stream, IdcClientManager clientManager) throws ConfigurationException
serializeConfiguration
in interface ConfigurationSerializer<IdcClientConfig>
stream
- the output stream to write the XMLclientManager
- the client manager instance to persistConfigurationException
protected void writeConfig(IdcClientConfig config, String name, Writer writer) throws IOException
config
- the config objectname
- the config namewriter
- the writer to output the config informationIOException
protected IdcClient readConfig(IdcClientManager clientManager, XPathEvaluator evaluator) throws ConfigurationException
clientManager
- the client managerevaluator
- the evaluator holding the XML configuration informationConfigurationException