Milyn-Smooks Version 0.4

org.milyn.cdr
Class CDRConfig

java.lang.Object
  extended byorg.milyn.cdr.CDRConfig

public final class CDRConfig
extends java.lang.Object

Disgester class for the Content Delivery Resource definition data found in an Archive Definition File (.cdrl).

Archive definition files (.cdrl) are located in the "/META-INF" folder of a .cdrar or can be manually located and loaded from other locations e.g. from the "/WEB-INF/cdr" folder in Servlet context.

Author:
tfennelly

Constructor Summary
CDRConfig(java.lang.String name)
          Public Constrctor.
CDRConfig(java.lang.String name, java.io.InputStream stream)
          Public Constructor.
 
Method Summary
 void addCDRDef(CDRDef unitDef)
          Add the supplied CDRDef instance to this CDRConfig.
 CDRDef[] getCDRDefs()
          Get the CDR definitions defined in this archive.
 java.lang.String getName()
          Get the name of the archive definition file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDRConfig

public CDRConfig(java.lang.String name)
Public Constrctor.

Parameters:
name - The name of the archive definition file.

CDRConfig

public CDRConfig(java.lang.String name,
                 java.io.InputStream stream)
          throws org.xml.sax.SAXException,
                 java.io.IOException
Public Constructor.

Create an CDRConfig instance by "digesting" a .cdrl file.

Parameters:
name - The name of the archive definition file.
stream - The XML stream from which the Archive Definition is constructed.
Method Detail

addCDRDef

public void addCDRDef(CDRDef unitDef)
Add the supplied CDRDef instance to this CDRConfig.

Parameters:
unitDef - The CDRDef instance to be added.

getName

public java.lang.String getName()
Get the name of the archive definition file.

Returns:
The name of the archive definition file.

getCDRDefs

public CDRDef[] getCDRDefs()
Get the CDR definitions defined in this archive.

Returns:
This archives unit definitions array.

Milyn-Smooks Version 0.4