Skip to main content
Jump to: navigation, search

Difference between revisions of "SMILA/Documentation/SimpleMimeTypeIdentifier"

(Bundle: org.eclipse.eilf.processing.pipelets.mimetype.SimpleMimeTypeIdentifier)
(Replacing page with 'This page is obsolete.')
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Bundle: <tt>org.eclipse.smila.processing.pipelets.mimetype.SimpleMimeTypeIdentifier</tt> ==
+
This page is obsolete.
 
+
=== 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.
+
 
+
==== Useful Information ====
+
 
+
Note that this ProcessingService also is a DeclarativeService that implements interface <tt>org.eclipse.smila.processing.pipelets.mimetype.MimeTypeIdentifier</tt> and can be used outside the workflow as well.
+
 
+
=== Configuration ===
+
 
+
* <tt>configuration/org.eclipse.smila.processing.pipelets.mimetype/MimeTypeConfig.xml</tt>
+
 
+
{| border = 1
+
!Property!!Type!!Description
+
|-
+
|FileExtensionAttribute||String||name of the attribute containing the file extension
+
|-
+
|MimeTypeAttribute||String||name of the attribute to store the identified MimeType in
+
Note that all properties are required and must be provided.
+
|}
+
 
+
==== Example ====
+
 
+
The following example was used in the SMILA example application to identify MimeTypes of documents delivered by Filesystem- and WebCrawler.
+
 
+
'''MimeTypeConfig.xml'''
+
<source lang="xml">
+
<PipeletConfiguration xmlns="http://www.eclipse.org/smila/processor">
+
  <Property name="FileExtensionAttribute">
+
    <Value>FileExtension</Value>
+
  </Property> 
+
  <Property name="MimeTypeAttribute">
+
    <Value>MimeType</Value>
+
  </Property>   
+
</PipeletConfiguration>
+
</source>
+
 
+
[[Category:SMILA]] [[Category:SMILA/Processing Service]]
+

Latest revision as of 09:59, 3 June 2009

This page is obsolete.

Back to the top