public class PropertiesOfflineConfigurator extends PropertiesConfigurator
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 TagRuleBundle
s 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).
Modifier and Type | Field and Description |
---|---|
protected static String[] |
DEST_DIR_PARAM |
protected static String[] |
SOURCE_DIR_PARAM |
CONTENT_PROCESSOR_PARAM, DECORATOR_MAPPINGS_PARAM, TAG_RULE_BUNDLES_PARAM
Constructor and Description |
---|
PropertiesOfflineConfigurator(ObjectFactory objectFactory,
Map<String,String> properties) |
Modifier and Type | Method and Description |
---|---|
void |
configureOffline(BaseSiteMeshOfflineBuilder builder) |
configureCommon, getObjectFactory
protected static final String[] SOURCE_DIR_PARAM
protected static final String[] DEST_DIR_PARAM
public PropertiesOfflineConfigurator(ObjectFactory objectFactory, Map<String,String> properties)
public void configureOffline(BaseSiteMeshOfflineBuilder builder)
Copyright © 2015. All Rights Reserved.