org.sitemesh.config.properties
Class PropertiesOfflineConfigurator

java.lang.Object
  extended by org.sitemesh.config.properties.PropertiesConfigurator
      extended by org.sitemesh.config.properties.PropertiesOfflineConfigurator

public class PropertiesOfflineConfigurator
extends PropertiesConfigurator

Configures a SiteMeshOfflineBuilder from string key/value pairs. The keys are:

decoratorMappings: A list of mappings of path patterns to decorators. Each entry should consist of pattern=decorator, separated by whitespace or commas. If multiple decorators are required, they should be delimited with a pipe | char (and no whitespace) e.g. /admin/*=/decorators/admin.html, *.secret=/decorators/secret.html|/decorators/common.html

mimeTypes (optional): A list of mime-types, separated by whitespace or commas, that should attempt to be decorated. Defaults to text/html.

tagRuleBundles (optional): The names of any additional TagRuleBundles to install, separated by whitespace or commas. These will be added to the default bundles (as set up in BaseSiteMeshBuilder.setupDefaults()): CoreHtmlTagRuleBundle and DecoratorTagRuleBundle. Note: The contentProcessor and tagRuleBundles are mutually exclusive - you should not set them both.

contentProcessor (optional): The name of the ContentProcessor to use. Note: The contentProcessor and tagRuleBundles are mutually exclusive - you should not set them both.

exclude (optional): A list of path patterns to exclude from decoration, separated by whitespace or commas. e.g. /javadoc/*, somepage.html, *.jsp

Where a name is used, this typically means the fully qualified class name, which must have a default constructor. However, a custom ObjectFactory implementation (passed into the #ConfigPropertiesBuilder(org.sitemesh.config.ObjectFactory) constructor may change the behavior of this (e.g. to plug into a dependency injection framework).

Author:
Joe Walnes

Field Summary
protected static String[] DEST_DIR_PARAM
           
protected static String[] SOURCE_DIR_PARAM
           
 
Fields inherited from class org.sitemesh.config.properties.PropertiesConfigurator
CONTENT_PROCESSOR_PARAM, DECORATOR_MAPPINGS_PARAM, TAG_RULE_BUNDLES_PARAM
 
Constructor Summary
PropertiesOfflineConfigurator(ObjectFactory objectFactory, Map<String,String> properties)
           
 
Method Summary
 void configureOffline(BaseSiteMeshOfflineBuilder builder)
           
 
Methods inherited from class org.sitemesh.config.properties.PropertiesConfigurator
configureCommon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE_DIR_PARAM

protected static final String[] SOURCE_DIR_PARAM

DEST_DIR_PARAM

protected static final String[] DEST_DIR_PARAM
Constructor Detail

PropertiesOfflineConfigurator

public PropertiesOfflineConfigurator(ObjectFactory objectFactory,
                                     Map<String,String> properties)
Method Detail

configureOffline

public void configureOffline(BaseSiteMeshOfflineBuilder builder)


Copyright © 2011. All Rights Reserved.