Package oracle.stellent.ridc.config.impl
Class XmlConfigurationSerializer
java.lang.Object
oracle.stellent.ridc.config.impl.XmlConfigurationSerializer
- All Implemented Interfaces:
ConfigurationSerializer<IdcClientConfig>
public class XmlConfigurationSerializer
extends Object
implements ConfigurationSerializer<IdcClientConfig>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IdcClient
readConfig
(IdcClientManager clientManager, XPathEvaluator evaluator) Read the configurationreadConfiguration
(InputStream stream) Read the configuration from an XML streamvoid
serializeConfiguration
(OutputStream stream, IdcClientManager clientManager) Serialize the clients in the IdcClientManager to an XML streamprotected void
writeConfig
(IdcClientConfig config, String name, Writer writer) Write the configuration
-
Field Details
-
NAMESPACE_URI
- See Also:
-
-
Constructor Details
-
XmlConfigurationSerializer
public XmlConfigurationSerializer()
-
-
Method Details
-
readConfiguration
Read the configuration from an XML stream- Specified by:
readConfiguration
in interfaceConfigurationSerializer<IdcClientConfig>
- Parameters:
stream
- the XML stream- Returns:
- a new IdcClientManager with the clients initialized
- Throws:
ConfigurationException
-
serializeConfiguration
public void serializeConfiguration(OutputStream stream, IdcClientManager clientManager) throws ConfigurationException Serialize the clients in the IdcClientManager to an XML stream- Specified by:
serializeConfiguration
in interfaceConfigurationSerializer<IdcClientConfig>
- Parameters:
stream
- the output stream to write the XMLclientManager
- the client manager instance to persist- Throws:
ConfigurationException
-
writeConfig
Write the configuration- Parameters:
config
- the config objectname
- the config namewriter
- the writer to output the config information- Throws:
IOException
-
readConfig
protected IdcClient readConfig(IdcClientManager clientManager, XPathEvaluator evaluator) throws ConfigurationException Read the configuration- Parameters:
clientManager
- the client managerevaluator
- the evaluator holding the XML configuration information- Returns:
- the initialized config object
- Throws:
ConfigurationException
-