org.apache.pluto.util.assemble.io
Class JarStreamingAssembly
java.lang.Object
org.apache.pluto.util.assemble.io.JarStreamingAssembly
public class JarStreamingAssembly
- extends java.lang.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.
Method Summary |
static void |
assembleStream(java.util.jar.JarInputStream source,
java.util.jar.JarOutputStream dest,
java.lang.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 |
JarStreamingAssembly
public JarStreamingAssembly()
assembleStream
public static void assembleStream(java.util.jar.JarInputStream source,
java.util.jar.JarOutputStream dest,
java.lang.String dispatchServletClass)
throws java.io.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:
java.io.IOException
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.