org.sitemesh
Class BaseSiteMeshContext

java.lang.Object
  extended by org.sitemesh.BaseSiteMeshContext
All Implemented Interfaces:
SiteMeshContext
Direct Known Subclasses:
OfflineContext, WebAppContext

public abstract class BaseSiteMeshContext
extends Object
implements SiteMeshContext

Common implementation code for SiteMeshContext.

Author:
Joe Walnes

Constructor Summary
protected BaseSiteMeshContext(ContentProcessor contentProcessor)
           
 
Method Summary
 Content decorate(String decoratorName, Content content)
           
protected abstract  void decorate(String decoratorPath, Content content, Writer out)
           
 Content getContentToMerge()
          The ContentProperty of the document being merged in to the decorator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sitemesh.SiteMeshContext
getPath
 

Constructor Detail

BaseSiteMeshContext

protected BaseSiteMeshContext(ContentProcessor contentProcessor)
Method Detail

decorate

protected abstract void decorate(String decoratorPath,
                                 Content content,
                                 Writer out)
                          throws IOException
Throws:
IOException

decorate

public Content decorate(String decoratorName,
                        Content content)
                 throws IOException
Specified by:
decorate in interface SiteMeshContext
Throws:
IOException

getContentToMerge

public Content getContentToMerge()
Description copied from interface: SiteMeshContext
The ContentProperty of the document being merged in to the decorator. This is only set within the scope of the SiteMeshContext.decorate(String, Content) method - the rest of the time, this will return null.

Specified by:
getContentToMerge in interface SiteMeshContext


Copyright © 2011. All Rights Reserved.