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 WebTemplate
addTemplate(boolean isSecure, java.lang.String applicationPath, java.io.Reader templateContent)
Adds aWebTemplate
.WebTemplate
addTemplate(boolean isSecure, java.lang.String applicationPath, java.lang.String locationOfTemplate)
Adds aWebTemplate
.protected abstract WebTemplate
addTemplate(boolean isSecure, java.lang.String applicationPath, PropertyList properties)
Adds theWebTemplate
.protected abstract PropertyList
createPropertyList()
Creates aPropertyList
.protected abstract SourceIssues
getSourceIssues()
Obtains theSourceIssues
.protected abstract boolean
isPathParameters(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:
true
if path parameters.
-
addTemplate
protected abstract WebTemplate addTemplate(boolean isSecure, java.lang.String applicationPath, PropertyList properties)
Adds theWebTemplate
.- Parameters:
isSecure
- Indicates if requires secureServerHttpConnection
to render theWebTemplate
.applicationPath
- Application path to theWebTemplate
. May contain path parameters.properties
- InitialProperties
for theWebTemplate
that should be further configured by the returnedWebTemplate
implementation.- Returns:
WebTemplate
.
-
addTemplate
public WebTemplate addTemplate(boolean isSecure, java.lang.String applicationPath, java.io.Reader templateContent)
Description copied from interface:WebTemplateFactory
Adds aWebTemplate
.- Specified by:
addTemplate
in interfaceWebTemplateFactory
- Parameters:
isSecure
- Indicates if requires secureServerHttpConnection
to render theWebTemplate
.applicationPath
- Application path to theWebTemplate
. May contain path parameters.templateContent
-Reader
to the template content.- Returns:
WebTemplate
.
-
addTemplate
public WebTemplate addTemplate(boolean isSecure, java.lang.String applicationPath, java.lang.String locationOfTemplate)
Description copied from interface:WebTemplateFactory
Adds aWebTemplate
.- Specified by:
addTemplate
in interfaceWebTemplateFactory
- Parameters:
isSecure
- Indicates if requires secureServerHttpConnection
to render theWebTemplate
.applicationPath
- Application path to theWebTemplate
. May contain path parameters.locationOfTemplate
- Location of the template content.- Returns:
WebTemplate
.
-
-