Class WebTemplateSectionSource
- java.lang.Object
-
- net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
-
- net.officefloor.web.template.section.WebTemplateSectionSource
-
- All Implemented Interfaces:
SectionSource
@PrivateSource public class WebTemplateSectionSource extends AbstractSectionSource
SectionSource
for the HTTP template.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebTemplateSectionSource.NoLogicClass
Class to use if no class specified.static class
WebTemplateSectionSource.SectionWriterStruct
SectionWebTemplateWriter
struct.static class
WebTemplateSectionSource.WebTemplateManagedFunctionSource
ManagedFunctionSource
for the HTTP template.-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ON_COMPLETION_OUTPUT_NAME
Name of theSectionOutput
for flow after completion of rending theParsedTemplate
.static java.lang.String
OVERRIDE_SECTION_PREFIX
Prefix on aParsedTemplateSection
name to indicate it is an override section.static java.lang.String
PROPERTY_BEAN_PREFIX
Property
prefix to obtain the bean for theParsedTemplateSection
.static java.lang.String
PROPERTY_CHARSET
static java.lang.String
PROPERTY_CLASS_NAME
Name ofProperty
for theClass
providing the backing logic to the template.static java.lang.String
PROPERTY_CONTENT_TYPE
static java.lang.String
PROPERTY_INHERITED_TEMPLATES_COUNT
Name ofProperty
for the number of inherited templates.static java.lang.String
PROPERTY_IS_PATH_PARAMETERS
Name ofProperty
to indicate if thisWebTemplate
containsHttpPathParameter
instances (dynamic path).static java.lang.String
PROPERTY_LINK_SECURE_PREFIX
Property
prefix to obtain whether the link is to be secure.static java.lang.String
PROPERTY_LINK_SEPARATOR
Name ofProperty
to obtain the link separator.static java.lang.String
PROPERTY_REDIRECT_VALUES_FUNCTION
Name ofProperty
for theMethod
name on the logicClass
that will return an object containing the values for the path parameters in redirecting to thisWebTemplate
.static java.lang.String
PROPERTY_TEMPLATE_CONTENT
Name ofProperty
to obtain the rawParsedTemplate
content.static java.lang.String
PROPERTY_TEMPLATE_LOCATION
Name ofProperty
providing the location of theWebTemplate
content.static java.lang.String
PROPERTY_TEMPLATE_LOCATION_CHARSET
Name ofProperty
providing theCharset
to read in theWebTemplate
content at the configuredPROPERTY_TEMPLATE_LOCATION
.static java.lang.String
PROPERTY_TEMPLATE_SECURE
static java.lang.String
REDIRECT_TEMPLATE_OUTPUT_NAME
Name of theSectionOutput
for redirect to theWebTemplate
.static java.lang.String
RENDER_TEMPLATE_INPUT_NAME
Name of theSectionInput
for rendering thisParsedTemplate
.
-
Constructor Summary
Constructors Constructor Description WebTemplateSectionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebTemplateExtensionBuilder
addWebTemplateExtension(java.lang.String webtemplateExtensionClassName, PropertyList propertyList)
Adds aWebTemplateExtensionBuilder
.protected void
loadSpecification(AbstractSectionSource.SpecificationContext context)
Loads theSectionSourceSpecification
.void
setHttpInputPath(HttpInputPath inputPath)
Specifies theHttpInputPath
.void
sourceSection(SectionDesigner designer, SectionSourceContext context)
Sources theOfficeSection
by constructing it via the inputSectionDesigner
.-
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
-
-
-
-
Field Detail
-
RENDER_TEMPLATE_INPUT_NAME
public static final java.lang.String RENDER_TEMPLATE_INPUT_NAME
Name of theSectionInput
for rendering thisParsedTemplate
.- See Also:
- Constant Field Values
-
REDIRECT_TEMPLATE_OUTPUT_NAME
public static final java.lang.String REDIRECT_TEMPLATE_OUTPUT_NAME
Name of theSectionOutput
for redirect to theWebTemplate
.- See Also:
- Constant Field Values
-
ON_COMPLETION_OUTPUT_NAME
public static final java.lang.String ON_COMPLETION_OUTPUT_NAME
Name of theSectionOutput
for flow after completion of rending theParsedTemplate
.- See Also:
- Constant Field Values
-
OVERRIDE_SECTION_PREFIX
public static final java.lang.String OVERRIDE_SECTION_PREFIX
Prefix on aParsedTemplateSection
name to indicate it is an override section.- See Also:
- Constant Field Values
-
PROPERTY_INHERITED_TEMPLATES_COUNT
public static final java.lang.String PROPERTY_INHERITED_TEMPLATES_COUNT
Name ofProperty
for the number of inherited templates.- See Also:
- Constant Field Values
-
PROPERTY_TEMPLATE_CONTENT
public static final java.lang.String PROPERTY_TEMPLATE_CONTENT
Name ofProperty
to obtain the rawParsedTemplate
content.- See Also:
- Constant Field Values
-
PROPERTY_TEMPLATE_LOCATION
public static final java.lang.String PROPERTY_TEMPLATE_LOCATION
Name ofProperty
providing the location of theWebTemplate
content.- See Also:
- Constant Field Values
-
PROPERTY_TEMPLATE_LOCATION_CHARSET
public static final java.lang.String PROPERTY_TEMPLATE_LOCATION_CHARSET
Name ofProperty
providing theCharset
to read in theWebTemplate
content at the configuredPROPERTY_TEMPLATE_LOCATION
.- See Also:
- Constant Field Values
-
PROPERTY_CLASS_NAME
public static final java.lang.String PROPERTY_CLASS_NAME
Name ofProperty
for theClass
providing the backing logic to the template.- See Also:
- Constant Field Values
-
PROPERTY_IS_PATH_PARAMETERS
public static final java.lang.String PROPERTY_IS_PATH_PARAMETERS
Name of
Property
to indicate if thisWebTemplate
containsHttpPathParameter
instances (dynamic path).Note that specifying the
HttpInputPath
overrides this configured value.- See Also:
- Constant Field Values
-
PROPERTY_REDIRECT_VALUES_FUNCTION
public static final java.lang.String PROPERTY_REDIRECT_VALUES_FUNCTION
Name ofProperty
for theMethod
name on the logicClass
that will return an object containing the values for the path parameters in redirecting to thisWebTemplate
.- See Also:
- Constant Field Values
-
PROPERTY_BEAN_PREFIX
public static final java.lang.String PROPERTY_BEAN_PREFIX
Property
prefix to obtain the bean for theParsedTemplateSection
.- See Also:
- Constant Field Values
-
PROPERTY_TEMPLATE_SECURE
public static final java.lang.String PROPERTY_TEMPLATE_SECURE
- See Also:
- Constant Field Values
-
PROPERTY_LINK_SECURE_PREFIX
public static final java.lang.String PROPERTY_LINK_SECURE_PREFIX
Property
prefix to obtain whether the link is to be secure.- See Also:
- Constant Field Values
-
PROPERTY_LINK_SEPARATOR
public static final java.lang.String PROPERTY_LINK_SEPARATOR
Name ofProperty
to obtain the link separator.- See Also:
- Constant Field Values
-
PROPERTY_CONTENT_TYPE
public static final java.lang.String PROPERTY_CONTENT_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_CHARSET
public static final java.lang.String PROPERTY_CHARSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHttpInputPath
public void setHttpInputPath(HttpInputPath inputPath)
Specifies theHttpInputPath
.- Parameters:
inputPath
-HttpInputPath
.
-
addWebTemplateExtension
public WebTemplateExtensionBuilder addWebTemplateExtension(java.lang.String webtemplateExtensionClassName, PropertyList propertyList)
Adds aWebTemplateExtensionBuilder
.- Parameters:
webtemplateExtensionClassName
-WebTemplateExtension
Class
name.propertyList
-PropertyList
.- Returns:
WebTemplateExtensionBuilder
.
-
loadSpecification
protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class:AbstractSectionSource
Loads theSectionSourceSpecification
.- Specified by:
loadSpecification
in classAbstractSectionSource
- Parameters:
context
-AbstractSectionSource.SpecificationContext
.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSource
Sources theOfficeSection
by constructing it via the inputSectionDesigner
.- Parameters:
designer
-SectionDesigner
to construct the structure of theOfficeSection
.context
-SectionSourceContext
to source details to construct theOfficeSection
.- Throws:
java.lang.Exception
- If fails to construct theOfficeSection
.
-
-