Setting up file device drivers

Use this procedure to specify file device driver settings in DeviceTypes.xml. The extension-map attribute is the file device driver's only optional attribute.

For more information about writing a valid import device type XML file, Managing device types.

  1. With a text editor, open <LBI_HOME>\<SmartNotification_HOME>\conf\DeviceTypes.xml.
  2. Ensure the device driver attribute is set to "com.lawson.lsn.deliveryengine.drivers.FileDeviceDriver".
  3. Locate the extension-map attribute and type your map value. For example, "text/html=.html;text/*=.txt;*.txt"

    The value of this parameter is a semicolon separated list of MIME-type to file extension mappings. The map is used to append an extension to the generated file based upon the MIME-type generated by the formatter. The driver uses the extension associated with the closest matching MIME-type. For flexibility, the driver accepts the wild card *.

    When used for the subtype, the mapping may apply for all content matching in type. When used as a MIME-type, the associated extension is the default extension. The provided sample specifies the .html extension for text/html content, .txt for all other text content, and a default extension of .txt.

    This is an example of a file device driver setting:

    <device-type name="HTML File" 
    extension-map="text/html=.html;text/*=.txt;*=.txt" />
  4. Save and close DeviceTypes.xml.