Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.config.impl
Class XmlConfigurationSerializer

java.lang.Object
  extended by oracle.stellent.ridc.config.impl.XmlConfigurationSerializer

All Implemented Interfaces:
ConfigurationSerializer<IdcClientConfig>

public class XmlConfigurationSerializer
extends java.lang.Object
implements ConfigurationSerializer<IdcClientConfig>

Field Summary
static java.lang.String NAMESPACE_URI
           

 

Constructor Summary
XmlConfigurationSerializer()
           

 

Method Summary
protected  IdcClient readConfig(IdcClientManager clientManager, XPathEvaluator evaluator)
          Read the configuration
 IdcClientManager readConfiguration(java.io.InputStream stream)
          Read the configuration from an XML stream
 void serializeConfiguration(java.io.OutputStream stream, IdcClientManager clientManager)
          Serialize the clients in the IdcClientManager to an XML stream
protected  void writeConfig(IdcClientConfig config, java.lang.String name, java.io.Writer writer)
          Write the configuration

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

NAMESPACE_URI

public static final java.lang.String NAMESPACE_URI
See Also:
Constant Field Values

Constructor Detail

XmlConfigurationSerializer

public XmlConfigurationSerializer()

Method Detail

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

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.