org.apache.pluto.util.assemble.war
Class WarAssembler

java.lang.Object
  extended by org.apache.pluto.util.assemble.WebXmlRewritingAssembler
      extended by org.apache.pluto.util.assemble.AbstractArchiveAssembler
          extended by org.apache.pluto.util.assemble.war.WarAssembler
All Implemented Interfaces:
Assembler

public class WarAssembler
extends AbstractArchiveAssembler

Since:
Nov 8, 2004
Version:
1.0

Field Summary
 
Fields inherited from interface org.apache.pluto.util.assemble.Assembler
DISPATCH_SERVLET_CLASS, PORTLET_XML, SERVLET_XML
 
Constructor Summary
WarAssembler()
          Default no-arg constructor.
 
Method Summary
 void assembleInternal(AssemblerConfig config)
          Assemble the source file to the destination file.
protected  void assembleWar(java.io.File source, java.io.File dest, java.lang.String dispatchServletClass)
          Reads the source JAR copying entries to the dest JAR.
 
Methods inherited from class org.apache.pluto.util.assemble.AbstractArchiveAssembler
assemble, performInPlaceAssembly
 
Methods inherited from class org.apache.pluto.util.assemble.WebXmlRewritingAssembler
updateWebappDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarAssembler

public WarAssembler()
Default no-arg constructor.

Method Detail

assembleInternal

public void assembleInternal(AssemblerConfig config)
                      throws UtilityException,
                             java.io.IOException
Description copied from class: AbstractArchiveAssembler
Assemble the source file to the destination file. The superclass is responsible for ensuring correct and not-null values for the source and destination, and for temporary file handling used during in-place assembly.

Specified by:
assembleInternal in class AbstractArchiveAssembler
Parameters:
config - the assembler configuration object
Throws:
UtilityException
java.io.IOException

assembleWar

protected void assembleWar(java.io.File source,
                           java.io.File dest,
                           java.lang.String dispatchServletClass)
                    throws java.io.IOException
Reads the source JAR copying entries to the dest JAR. 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.

Throws:
java.io.IOException


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