Skip navigation links

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

E17274-04


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 Object
implements ConfigurationSerializer<IdcClientConfig>

Field Summary
static String NAMESPACE_URI
           

 

Constructor Summary
XmlConfigurationSerializer()
           

 

Method Summary
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

 

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 String NAMESPACE_URI
See Also:
Constant Field Values

Constructor Detail

XmlConfigurationSerializer

public XmlConfigurationSerializer()

Method Detail

readConfiguration

public IdcClientManager readConfiguration(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(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,
                           String name,
                           Writer writer)
                    throws IOException
Write the configuration
Parameters:
config - the config object
name - the config name
writer - 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 manager
evaluator - the evaluator holding the XML configuration information
Returns:
the initialized config object
Throws:
ConfigurationException

Skip navigation links

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

E17274-04


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