org.apache.aries.web.converter
Interface WarToWabConverter

All Known Implementing Classes:
WarToWabConverterService

public interface WarToWabConverter

Service interface for WAR to WAB conversion


Nested Class Summary
static interface WarToWabConverter.InputStreamProvider
          Support class for WabConverter to allow multiple passes over an input war archive without requiring in-memory buffering.
 
Field Summary
static String WEB_CONTEXT_PATH
           
 
Method Summary
 WabConversion convert(WarToWabConverter.InputStreamProvider input, String name, Properties properties)
          Generate the converter WAB file.
 

Field Detail

WEB_CONTEXT_PATH

static final String WEB_CONTEXT_PATH
See Also:
Constant Field Values
Method Detail

convert

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

Parameters:
input -
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.