Skip to main content
Jump to: navigation, search

Difference between revisions of "SMILA/Documentation/SimpleMimeTypeIdentifierPipelet"

(New page: == Bundle: <tt>org.eclipse.eilf.processing.pipelets.mimetype.SimpleMimeTypeIdentifierPipelet</tt> == === Description === This ProcessingService is used to identify the mimetype of a docum...)
 
(Bundle: org.eclipse.eilf.processing.pipelets.mimetype.SimpleMimeTypeIdentifierPipelet)
Line 1: Line 1:
== Bundle: <tt>org.eclipse.eilf.processing.pipelets.mimetype.SimpleMimeTypeIdentifierPipelet</tt> ==
+
== Bundle: <tt>org.eclipse.smila.processing.pipelets.mimetype.SimpleMimeTypeIdentifierPipelet</tt> ==
  
 
=== Description ===
 
=== Description ===
Line 6: Line 6:
 
=== Configuration ===
 
=== Configuration ===
  
Configuration File: <tt>configuration/org.eclipse.eilf.processing.pipelets.aperture/ConverterConfig.xml</tt>
+
Configuration File: <tt>configuration/org.eclipse.smila.processing.pipelets.aperture/ConverterConfig.xml</tt>
  
 
{| border = 1
 
{| border = 1

Revision as of 05:33, 13 November 2008

Bundle: org.eclipse.smila.processing.pipelets.mimetype.SimpleMimeTypeIdentifierPipelet

Description

This ProcessingService is used to identify the mimetype of a document. The service uses the file extension todo the MIME type detection. The identified MimeType is store in an attribute in the record.

Configuration

Configuration File: configuration/org.eclipse.smila.processing.pipelets.aperture/ConverterConfig.xml

Property Type Description
MIME Type String Name of MIME type field. Literal will be created.
Extension String Name of extension field. Expected as literal.

Note that all properties are required and must be provided.

Example

The following example is a snipplet from a BPEL pipeline.

<proc:invokePipelet>
  <proc:pipelet class="org.eclipse.smila.processing.pipelets.mimetype.SimpleMimeTypeIdentifierPipelet" />
  <proc:variables input="request" />
  <proc:PipeletConfiguration>
    <proc:Property name="MIME Type">
      <proc:Value>MIME Type</proc:Value>
    </proc:Property>
    <proc:Property name="Extension">
      <proc:Value>Extension</proc:Value>
    </proc:Property>
  </proc:PipeletConfiguration>
</proc:invokePipelet>

Back to the top