org.apache.pluto.util.assemble.io
Class JarStreamingAssembly
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarStreamingAssembly
public JarStreamingAssembly()
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 streamdest
- the WAR destination output streamdispatchServletClass
- the name of the dispatch class
- Throws:
IOException
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.