Milyn-Smooks Version 0.4

org.milyn.delivery
Class ContentDeliveryConfigImpl

java.lang.Object
  extended byorg.milyn.delivery.ContentDeliveryConfigImpl
All Implemented Interfaces:
ContentDeliveryConfig

public class ContentDeliveryConfigImpl
extends java.lang.Object
implements ContentDeliveryConfig

Useragent content delivery configuration.

Author:
tfennelly

Method Summary
 java.util.Hashtable getAssemblyUnits()
          Get the AssemblyUnits 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.
static ContentDeliveryConfig getInstance(UAContext deviceContext, ContainerContext containerContext)
          Get the ContentDeliveryConfigImpl instance for the named table.
 java.util.List getObjects(java.lang.String selector)
          Get a list Objects from the supplied CDRDef selector value.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContentDeliveryConfig getInstance(UAContext deviceContext,
                                                ContainerContext containerContext)
Get the ContentDeliveryConfigImpl instance for the named table.

Parameters:
deviceContext - The device context for the associated device.
containerContext - Container context.
Returns:
The ContentDeliveryConfig instance for the named table.

getTransSet

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

Specified by:
getTransSet in interface ContentDeliveryConfig
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.

getCDRDefs

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

Specified by:
getCDRDefs in interface ContentDeliveryConfig
Parameters:
selector - "selector" attribute value from the .cdrl file in the .cdrar.
Returns:
List of CDRDef instances, or null.
See Also:
ContentDeliveryConfig.getObjects(String)

getObjects

public java.util.List getObjects(java.lang.String selector)
Get a list Objects from the supplied CDRDef selector value.

Uses CDRStore.getObject(CDRDef) to construct the object.

Specified by:
getObjects in interface ContentDeliveryConfig
Parameters:
selector - selector attribute value from the .cdrl file in the .cdrar.
Returns:
List of Object instances. An empty list is returned where no selectors exist.
See Also:
CDRStore.getObject(CDRDef), ContentDeliveryConfig.getCDRDefs(String)

getAssemblyUnits

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

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

Specified by:
getAssemblyUnits in interface ContentDeliveryConfig
Returns:
The AssemblyUnits table for this delivery context.

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.

Specified by:
getSerailizationUnits in interface ContentDeliveryConfig
Returns:
The SerializationUnit table for this delivery context.

getDTD

public DTDStore.DTDObjectContainer getDTD()
Description copied from interface: ContentDeliveryConfig
Get the DTD (DTDStore.DTDObjectContainer) for this delivery context.

Specified by:
getDTD in interface ContentDeliveryConfig
Returns:
The DTD (DTDStore.DTDObjectContainer) for this delivery context.

Milyn-Smooks Version 0.4