org.sitemesh.offline
Class OfflineContext

java.lang.Object
  extended by org.sitemesh.BaseSiteMeshContext
      extended by 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

Constructor Summary
OfflineContext(ContentProcessor contentProcessor, Directory baseDirectory, String path)
           
 
Method Summary
protected  void decorate(String decoratorPath, Content content, Writer out)
           
 String getPath()
          Get path of the page currently being displayed.
 
Methods inherited from class org.sitemesh.BaseSiteMeshContext
decorate, getContentToMerge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineContext

public OfflineContext(ContentProcessor contentProcessor,
                      Directory baseDirectory,
                      String path)
Method Detail

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.