Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Turbine Wiki" for 
change notification.

The "Turbine4/Turbine4.0M1/Migrate233" page has been changed by ThomasVandahl:
http://wiki.apache.org/turbine/Turbine4/Turbine4.0M1/Migrate233?action=diff&rev1=5&rev2=6

Comment:
Added MimeTypeService

      </localization>
  }}}
  
+ === MimeTypeService ===
+ 
+ The !TurbineMimeTypeService has been replaced with the 
[[http://turbine.apache.org/fulcrum/fulcrum-mimetype/|Fulcrum Mimetype]] 
counterpart. The following example shows the default configuration of the 
''!MimeTypeService'' before and after the migration. For details of the 
configuration options available see the 
[[http://turbine.apache.org/fulcrum/fulcrum-mimetype/|Fulcrum Mimetype Site]].
+ 
+ `TurbineResources.properties`:
+ 
+ {{{
+ 
services.MimeTypeService.classname=org.apache.turbine.services.mimetype.TurbineMimeTypeService
+ 
+ # -------------------------------------------------------------------
+ #
+ #  M I M E T Y P E  S E R V I C E
+ #
+ # -------------------------------------------------------------------
+ 
+ # This property specifies a file containing mappings between MIME
+ # content types and the corresponding file name extensions. The
+ # service itself contains a hardcoded set of most common mappings.
+ # The file must use the same syntax as the mime.types file of
+ # the Apache Server, i.e.
+ # <mimetype> <ext1> <ext2>...
+ #
+ services.MimeTypeService.mime.types=/WEB-INF/conf/mime.types
+ 
+ # This property specifies a file containing mappings between locales
+ # and the corresponding character encodings. The service itself
+ # contains a hardcoded set of most common mappings.
+ # The file should use the Java property file syntax, i.e.
+ # <lang_country_variant>=<charset>
+ #
+ services.MimeTypeService.charsets=/WEB-INF/conf/charset.properties
+ }}}
+ 
+ `roleConfiguration.xml`:
+ 
+ {{{#!xml
+     <role
+         name="org.apache.fulcrum.mimetype.MimeTypeService"
+         shorthand="mimetype"
+         default-class="org.apache.fulcrum.mimetype.DefaultMimeTypeService"/>
+ }}}
+ 
+ `componentConfiguration.xml`:
+ 
+ {{{#!xml
+     <mimetype
+         mimetypes="WEB-INF/conf/mime.types"
+         charsets="WEB-INF/conf/charsets.properties" />
+ }}}
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to