org.apache.aries.web.converter.impl
Class WarToWabConverterService

java.lang.Object
  extended by org.apache.aries.web.converter.impl.WarToWabConverterService
All Implemented Interfaces:
WarToWabConverter

public class WarToWabConverterService
extends Object
implements WarToWabConverter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.aries.web.converter.WarToWabConverter
WarToWabConverter.InputStreamProvider
 
Field Summary
 
Fields inherited from interface org.apache.aries.web.converter.WarToWabConverter
WEB_CONTEXT_PATH
 
Constructor Summary
WarToWabConverterService()
           
 
Method Summary
 WabConversion convert(WarToWabConverter.InputStreamProvider input, String name, Properties properties)
          Generate the converter WAB file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarToWabConverterService

public WarToWabConverterService()
Method Detail

convert

public WabConversion convert(WarToWabConverter.InputStreamProvider input,
                             String name,
                             Properties properties)
                      throws IOException
Description copied from interface: WarToWabConverter
Generate the converter WAB file. This file includes all the files from the input and has the new manifest.

Specified by:
convert in interface WarToWabConverter
name - The name of the war file
properties - Properties to influence the conversion as defined in RFC66. The following properties are supported
  • Bundle-ClassPath
  • Bundle-ManifestVersion
  • Bundle-SymbolicName
  • Bundle-Version
  • Import-Package
  • Web-ContextPath
  • Web-JSPExtractLocation
Except for Bundle-ClassPath and Import-Package any supplied properties will overwrite values specified in an existing bundle manifest. For Bundle-ClassPath and Import-Package the supplied values will be joined to those specified in a bundle manifest (if it exists) and also the results of the scan of the WAR file.
Returns:
Throws:
IOException


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.