org.sitemesh.offline
Class OfflineContext
java.lang.Object
org.sitemesh.BaseSiteMeshContext
org.sitemesh.offline.OfflineContext
- All Implemented Interfaces:
- SiteMeshContext
public class OfflineContext
- extends BaseSiteMeshContext
SiteMesh SiteMeshContext implementation specifically for use
in offline site generation.
Reads resources (content, decorators, includes, etc) from the passed in
Directory implementation. This could be backed by a filesystem, memory,
or a custom source/target.
- Author:
- Joe Walnes
- See Also:
SiteMeshOffline,
Directory,
SiteMeshContext
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OfflineContext
public OfflineContext(ContentProcessor contentProcessor,
Directory baseDirectory,
String path)
getPath
public String getPath()
- Description copied from interface:
SiteMeshContext
- Get path of the page currently being displayed.
decorate
protected void decorate(String decoratorPath,
Content content,
Writer out)
throws IOException
- Specified by:
decorate in class BaseSiteMeshContext
- Throws:
IOException
Copyright © 2011. All Rights Reserved.