public abstract class BaseSiteMeshContext extends Object implements SiteMeshContext
SiteMeshContext
.Modifier | Constructor and Description |
---|---|
protected |
BaseSiteMeshContext(ContentProcessor contentProcessor) |
Modifier and Type | Method and Description |
---|---|
Content |
decorate(String decoratorName,
Content content) |
protected abstract void |
decorate(String decoratorPath,
Content content,
Writer out) |
ContentProcessor |
getContentProcessor()
ContentProcessor used by this context.
|
Content |
getContentToMerge()
The ContentProperty of the document being merged in to the decorator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPath
protected BaseSiteMeshContext(ContentProcessor contentProcessor)
protected abstract void decorate(String decoratorPath, Content content, Writer out) throws IOException
IOException
public Content decorate(String decoratorName, Content content) throws IOException
decorate
in interface SiteMeshContext
IOException
public Content getContentToMerge()
SiteMeshContext
SiteMeshContext.decorate(String, Content)
method - the
rest of the time, this will return null.getContentToMerge
in interface SiteMeshContext
public ContentProcessor getContentProcessor()
SiteMeshContext
getContentProcessor
in interface SiteMeshContext
Copyright © 2015. All Rights Reserved.