org.apache.pluto.util.assemble
Class WebXmlRewritingAssembler

java.lang.Object
  extended by org.apache.pluto.util.assemble.WebXmlRewritingAssembler
All Implemented Interfaces:
Assembler
Direct Known Subclasses:
AbstractArchiveAssembler, FileAssembler

public abstract class WebXmlRewritingAssembler
extends Object
implements Assembler

Version:
$Revision: 564921 $

Field Summary
 
Fields inherited from interface org.apache.pluto.util.assemble.Assembler
DISPATCH_SERVLET_CLASS, PORTLET_XML, SERVLET_XML
 
Constructor Summary
WebXmlRewritingAssembler()
           
 
Method Summary
protected  void updateWebappDescriptor(InputStream webXmlIn, InputStream portletXmlIn, OutputStream webXmlOut, String dispatchServletClass)
          Updates the webapp descriptor by injecting portlet wrapper servlet definitions and mappings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.pluto.util.assemble.Assembler
assemble
 

Constructor Detail

WebXmlRewritingAssembler

public WebXmlRewritingAssembler()
Method Detail

updateWebappDescriptor

protected void updateWebappDescriptor(InputStream webXmlIn,
                                      InputStream portletXmlIn,
                                      OutputStream webXmlOut,
                                      String dispatchServletClass)
                               throws IOException
Updates the webapp descriptor by injecting portlet wrapper servlet definitions and mappings.

Parameters:
webXmlIn - input stream to the webapp descriptor, it will be closed before the web xml is written out.
portletXmlIn - input stream to the portlet app descriptor, it will be closed before the web xml is written out.
webXmlOut - output stream to the webapp descriptor, it will be flushed and closed.
dispatchServletClass - The name of the servlet class to use for handling portlet requests
Throws:
IOException


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