org.sitemesh.content.debug
Class DumpingContentProcessor

java.lang.Object
  extended by org.sitemesh.content.debug.DumpingContentProcessor
All Implemented Interfaces:
ContentProcessor

public class DumpingContentProcessor
extends Object
implements ContentProcessor

Decorates a ContentProcessor and will dump the contents of each Content that is created to an output stream. Useful for debugging.

Author:
Joe Walnes

Constructor Summary
DumpingContentProcessor(ContentProcessor contentProcessor, Appendable debugOut)
           
 
Method Summary
 Content build(CharBuffer data, SiteMeshContext context)
           
static String dump(Content content)
           
static void dump(Content content, Appendable out)
           
static String getFullPath(ContentProperty contentProperty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpingContentProcessor

public DumpingContentProcessor(ContentProcessor contentProcessor,
                               Appendable debugOut)
Method Detail

build

public Content build(CharBuffer data,
                     SiteMeshContext context)
              throws IOException
Specified by:
build in interface ContentProcessor
Throws:
IOException

dump

public static void dump(Content content,
                        Appendable out)
                 throws IOException
Throws:
IOException

dump

public static String dump(Content content)

getFullPath

public static String getFullPath(ContentProperty contentProperty)


Copyright © 2011. All Rights Reserved.