Class AbstractWebTemplateFactory
- java.lang.Object
-
- net.officefloor.web.template.build.AbstractWebTemplateFactory
-
- All Implemented Interfaces:
WebTemplateFactory
- Direct Known Subclasses:
WebTemplateArchitectEmployer,WebTemplateLoaderImpl
public abstract class AbstractWebTemplateFactory extends java.lang.Object implements WebTemplateFactory
AbstractWebTemplateFactory.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AbstractWebTemplateFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description WebTemplateaddTemplate(boolean isSecure, java.lang.String applicationPath, java.io.Reader templateContent)Adds aWebTemplate.WebTemplateaddTemplate(boolean isSecure, java.lang.String applicationPath, java.lang.String locationOfTemplate)Adds aWebTemplate.protected abstract WebTemplateaddTemplate(boolean isSecure, java.lang.String applicationPath, PropertyList properties)Adds theWebTemplate.protected abstract PropertyListcreatePropertyList()Creates aPropertyList.protected abstract SourceIssuesgetSourceIssues()Obtains theSourceIssues.protected abstract booleanisPathParameters(java.lang.String applicationPath)Indicates if path parameters.
-
-
-
Method Detail
-
createPropertyList
protected abstract PropertyList createPropertyList()
Creates aPropertyList.- Returns:
- New
PropertyList.
-
getSourceIssues
protected abstract SourceIssues getSourceIssues()
Obtains theSourceIssues.- Returns:
SourceIssues.
-
isPathParameters
protected abstract boolean isPathParameters(java.lang.String applicationPath)
Indicates if path parameters.- Parameters:
applicationPath- Application path.- Returns:
trueif path parameters.
-
addTemplate
protected abstract WebTemplate addTemplate(boolean isSecure, java.lang.String applicationPath, PropertyList properties)
Adds theWebTemplate.- Parameters:
isSecure- Indicates if requires secureServerHttpConnectionto render theWebTemplate.applicationPath- Application path to theWebTemplate. May contain path parameters.properties- InitialPropertiesfor theWebTemplatethat should be further configured by the returnedWebTemplateimplementation.- Returns:
WebTemplate.
-
addTemplate
public WebTemplate addTemplate(boolean isSecure, java.lang.String applicationPath, java.io.Reader templateContent)
Description copied from interface:WebTemplateFactoryAdds aWebTemplate.- Specified by:
addTemplatein interfaceWebTemplateFactory- Parameters:
isSecure- Indicates if requires secureServerHttpConnectionto render theWebTemplate.applicationPath- Application path to theWebTemplate. May contain path parameters.templateContent-Readerto the template content.- Returns:
WebTemplate.
-
addTemplate
public WebTemplate addTemplate(boolean isSecure, java.lang.String applicationPath, java.lang.String locationOfTemplate)
Description copied from interface:WebTemplateFactoryAdds aWebTemplate.- Specified by:
addTemplatein interfaceWebTemplateFactory- Parameters:
isSecure- Indicates if requires secureServerHttpConnectionto render theWebTemplate.applicationPath- Application path to theWebTemplate. May contain path parameters.locationOfTemplate- Location of the template content.- Returns:
WebTemplate.
-
-