org.apache.pluto.util.assemble.io
Class JarStreamingAssembly

java.lang.Object
  extended by org.apache.pluto.util.assemble.io.JarStreamingAssembly

public class JarStreamingAssembly
extends Object

Utility class responsible for accepting a JarInputStream representing a web application archive, iterating over each JarEntry in the input stream and assembling the WAR web.xml for portlet deployment.


Constructor Summary
JarStreamingAssembly()
           
 
Method Summary
static void assembleStream(JarInputStream source, JarOutputStream dest, String dispatchServletClass)
          Reads the source JarInputStream, copying entries to the destination JarOutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarStreamingAssembly

public JarStreamingAssembly()
Method Detail

assembleStream

public static void assembleStream(JarInputStream source,
                                  JarOutputStream dest,
                                  String dispatchServletClass)
                           throws IOException
Reads the source JarInputStream, copying entries to the destination JarOutputStream. The web.xml and portlet.xml are cached, and after the entire archive is copied (minus the web.xml) a re-written web.xml is generated and written to the destination JAR.

Parameters:
source - the WAR source input stream
dest - the WAR destination output stream
dispatchServletClass - the name of the dispatch class
Throws:
IOException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.