Skip navigation links
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 java.lang.Object
- implements ConfigurationSerializer<IdcClientConfig>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMESPACE_URI
public static final java.lang.String NAMESPACE_URI
-
- See Also:
- Constant Field Values
XmlConfigurationSerializer
public XmlConfigurationSerializer()
readConfiguration
public IdcClientManager readConfiguration(java.io.InputStream stream)
throws ConfigurationException
- Read the configuration from an XML stream
-
- Specified by:
readConfiguration
in interface ConfigurationSerializer<IdcClientConfig>
-
- Parameters:
stream
- the XML stream
- Returns:
- a new IdcClientManager with the clients initialized
- Throws:
ConfigurationException
serializeConfiguration
public void serializeConfiguration(java.io.OutputStream stream,
IdcClientManager clientManager)
throws ConfigurationException
- Serialize the clients in the IdcClientManager to an XML stream
-
- Specified by:
serializeConfiguration
in interface ConfigurationSerializer<IdcClientConfig>
-
- Parameters:
stream
- the output stream to write the XML
clientManager
- the client manager instance to persist
- Throws:
ConfigurationException
writeConfig
protected void writeConfig(IdcClientConfig config,
java.lang.String name,
java.io.Writer writer)
throws java.io.IOException
- Write the configuration
-
- Parameters:
config
- the config object
name
- the config name
writer
- the writer to output the config information
- Throws:
java.io.IOException
readConfig
protected IdcClient readConfig(IdcClientManager clientManager,
XPathEvaluator evaluator)
throws ConfigurationException
- Read the configuration
-
- Parameters:
clientManager
- the client manager
evaluator
- the evaluator holding the XML configuration information
- Returns:
- the initialized config object
- Throws:
ConfigurationException
Skip navigation links
Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.