org.sitemesh
Class BaseSiteMeshContext
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseSiteMeshContext
protected BaseSiteMeshContext(ContentProcessor contentProcessor)
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.