Milyn-Smooks Version 0.4

org.milyn.delivery
Interface ContentDeliveryConfig

All Known Implementing Classes:
ContentDeliveryConfigImpl

public interface ContentDeliveryConfig

Content delivery configuration.

Provides access to Content Delivery Resources (e.g. Content Delivery Units) and other information for the requesting browser e.g. see getAssemblyUnits().

Author:
tfennelly

Method Summary
 java.util.Hashtable getAssemblyUnits()
          Get the AssemblyUnit table for this delivery context.
 java.util.List getCDRDefs(java.lang.String selector)
          Get the list of CDRDefs for the specified selector definition.
 DTDStore.DTDObjectContainer getDTD()
          Get the DTD (DTDStore.DTDObjectContainer) for this delivery context.
 java.util.List getObjects(java.lang.String selector)
          Get a list of Objects from the CDRDefs specified by the selector.
 java.util.Hashtable getSerailizationUnits()
          Get the SerializationUnit table for this delivery context.
 TransSet getTransSet(java.lang.String tag)
          Get the TransUnit configure instances, for the named tag, for the useragent associated with this table.
 

Method Detail

getCDRDefs

public java.util.List getCDRDefs(java.lang.String selector)
Get the list of CDRDefs for the specified selector definition.

This list will be preselected and preordered for the requesting browser.

Use one or both of the following mechanisms to a access the resource bytes:

  1. CDRStore.getEntry(CDRDef)
  2. ClassLoader.getResourceAsStream(java.lang.String) if the resource is located in the classpath - using CDRDef.getPath() for the resource "name" parameter. Prefix the name with "/".

Parameters:
selector - selector attribute value from the .cdrl file in the .cdrar. This parameter is treated case incensitively.
Returns:
List of CDRDef instances, or null if no CDRDefs are defined under that selector (for the device).
See Also:
getObjects(String)

getObjects

public java.util.List getObjects(java.lang.String selector)
Get a list of Objects from the CDRDefs specified by the selector.

Gets the CDRDefs specified for the selector and attempts to instanciate a Java class instance from the resource specified by each of the CDRDefs.

Implementations should use CDRStore.getObject(CDRDef) to construct each object.

Parameters:
selector - selector attribute value from the .cdrl file in the .cdrar. This parameter is treated case incensitively.
Returns:
List of Object instances. An empty list is returned where no selectors exist.
See Also:
CDRStore.getObject(CDRDef), getCDRDefs(String)

getAssemblyUnits

public java.util.Hashtable getAssemblyUnits()
Get the AssemblyUnit table for this delivery context.

The table is keyed by element name and the values are AssemblyUnit instances.

Returns:
The AssemblyUnit table for this delivery context.

getTransSet

public TransSet getTransSet(java.lang.String tag)
Get the TransUnit configure instances, for the named tag, for the useragent associated with this table.

Parameters:
tag - The tag name for which the TransUnits are being requested.
Returns:
TransSet for the specified tag name, or null if none is specified.

getSerailizationUnits

public java.util.Hashtable getSerailizationUnits()
Get the SerializationUnit table for this delivery context.

The table is keyed by element name and the values are SerializationUnit instances.

Returns:
The SerializationUnit table for this delivery context.

getDTD

public DTDStore.DTDObjectContainer getDTD()
Get the DTD (DTDStore.DTDObjectContainer) for this delivery context.

Returns:
The DTD (DTDStore.DTDObjectContainer) for this delivery context.

Milyn-Smooks Version 0.4