| java.lang.Object com.opensymphony.module.sitemesh.Factory com.opensymphony.module.sitemesh.factory.BaseFactory
All known Subclasses: com.opensymphony.module.sitemesh.factory.DefaultFactory,
BaseFactory | abstract public class BaseFactory extends Factory (Code) | | Base Factory implementation. Provides utility methods for implementation.
author: Joe Walnes version: $Revision: 1.9 $ |
Constructor Summary | |
protected | BaseFactory(Config config) Constructor for default implementation of Factory.
Should never be called by client. |
config | protected Config config(Code) | | ServletConfig or FilterConfig.
|
excludeUrls | protected PathMapper excludeUrls(Code) | | A map of paths that are excluded from decoration
|
pageParsers | protected Map pageParsers(Code) | | Map that associates content-types with PageParser instances.
|
addExcludeUrl | protected void addExcludeUrl(String path)(Code) | | |
clearDecoratorMappers | protected void clearDecoratorMappers()(Code) | | Clear all current DecoratorMappers.
|
clearExcludeUrls | protected void clearExcludeUrls()(Code) | | Clears all exclude URLs.
|
clearParserMappings | protected void clearParserMappings()(Code) | | Clear all PageParser mappings.
|
getPageParser | public PageParser getPageParser(String contentType)(Code) | | Create a PageParser suitable for the given content-type.
For example, if the supplied parameter is text/html
a parser shall be returned that can parse HTML accordingly. Returns
null if no parser can be found for the supplied content type.
Parameters: contentType - The MIME content-type of the data to be parsed Appropriate PageParser for reading data, ornull if no suitable parser was found. |
isPathExcluded | public boolean isPathExcluded(String path)(Code) | | Returns true if the supplied path matches one of the exclude
URLs specified in sitemesh.xml, otherwise returns false .
Parameters: path - whether the path is excluded |
mapParser | protected void mapParser(String contentType, String className)(Code) | | Map new PageParser to given content-type. contentType = null signifies default
PageParser for unknown content-types.
|
pushDecoratorMapper | protected void pushDecoratorMapper(String className, Properties properties)(Code) | | Push new DecoratorMapper onto end of chain.
|
shouldParsePage | public boolean shouldParsePage(String contentType)(Code) | | Determine whether a Page of given content-type should be parsed or not.
|
|
|