com.netscape.certsrv.base
Interface ISourceConfigStore

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IConfigStore

public interface ISourceConfigStore
extends java.io.Serializable

An interface that represents the source that creates the configuration store tree. Note that the tree can be built based on the information from a text file or ldap entries.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $
See Also:
IConfigStore

Method Summary
 java.lang.Object get(java.lang.String name)
          Gets a property.
 java.util.Enumeration keys()
          Returns an enumeration of the config store's keys.
 void load(java.io.InputStream in)
          Reads a config store from an input stream.
 void put(java.lang.String name, java.lang.Object value)
          Retrieves a property.
 void save(java.io.OutputStream out, java.lang.String header)
          Stores this config store to the specified output stream.
 

Method Detail

get

java.lang.Object get(java.lang.String name)
Gets a property.

Parameters:
name - The property name
Returns:
property value

put

void put(java.lang.String name,
         java.lang.Object value)
Retrieves a property.

Parameters:
name - The property name
value - The property value

keys

java.util.Enumeration keys()
Returns an enumeration of the config store's keys.

Returns:
a list of keys
See Also:
Hashtable.elements(), Enumeration

load

void load(java.io.InputStream in)
          throws java.io.IOException
Reads a config store from an input stream.

Parameters:
in - input stream where the properties are located
Throws:
java.io.IOException - If an IO error occurs while loading from input.

save

void save(java.io.OutputStream out,
          java.lang.String header)
Stores this config store to the specified output stream.

Parameters:
out - output stream where the properties should be serialized
header - optional header to be serialized