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
SectionSourcefor the HTTP template.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebTemplateSectionSource.NoLogicClassClass to use if no class specified.static classWebTemplateSectionSource.SectionWriterStructSectionWebTemplateWriterstruct.static classWebTemplateSectionSource.WebTemplateManagedFunctionSourceManagedFunctionSourcefor 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.StringON_COMPLETION_OUTPUT_NAMEName of theSectionOutputfor flow after completion of rending theParsedTemplate.static java.lang.StringOVERRIDE_SECTION_PREFIXPrefix on aParsedTemplateSectionname to indicate it is an override section.static java.lang.StringPROPERTY_BEAN_PREFIXPropertyprefix to obtain the bean for theParsedTemplateSection.static java.lang.StringPROPERTY_CHARSETstatic java.lang.StringPROPERTY_CLASS_NAMEName ofPropertyfor theClassproviding the backing logic to the template.static java.lang.StringPROPERTY_CONTENT_TYPEstatic java.lang.StringPROPERTY_INHERITED_TEMPLATES_COUNTName ofPropertyfor the number of inherited templates.static java.lang.StringPROPERTY_IS_PATH_PARAMETERSName ofPropertyto indicate if thisWebTemplatecontainsHttpPathParameterinstances (dynamic path).static java.lang.StringPROPERTY_LINK_SECURE_PREFIXPropertyprefix to obtain whether the link is to be secure.static java.lang.StringPROPERTY_LINK_SEPARATORName ofPropertyto obtain the link separator.static java.lang.StringPROPERTY_REDIRECT_VALUES_FUNCTIONName ofPropertyfor theMethodname on the logicClassthat will return an object containing the values for the path parameters in redirecting to thisWebTemplate.static java.lang.StringPROPERTY_TEMPLATE_CONTENTName ofPropertyto obtain the rawParsedTemplatecontent.static java.lang.StringPROPERTY_TEMPLATE_LOCATIONName ofPropertyproviding the location of theWebTemplatecontent.static java.lang.StringPROPERTY_TEMPLATE_LOCATION_CHARSETName ofPropertyproviding theCharsetto read in theWebTemplatecontent at the configuredPROPERTY_TEMPLATE_LOCATION.static java.lang.StringPROPERTY_TEMPLATE_SECUREstatic java.lang.StringREDIRECT_TEMPLATE_OUTPUT_NAMEName of theSectionOutputfor redirect to theWebTemplate.static java.lang.StringRENDER_TEMPLATE_INPUT_NAMEName of theSectionInputfor rendering thisParsedTemplate.
-
Constructor Summary
Constructors Constructor Description WebTemplateSectionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebTemplateExtensionBuilderaddWebTemplateExtension(java.lang.String webtemplateExtensionClassName, PropertyList propertyList)Adds aWebTemplateExtensionBuilder.protected voidloadSpecification(AbstractSectionSource.SpecificationContext context)Loads theSectionSourceSpecification.voidsetHttpInputPath(HttpInputPath inputPath)Specifies theHttpInputPath.voidsourceSection(SectionDesigner designer, SectionSourceContext context)Sources theOfficeSectionby 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 theSectionInputfor rendering thisParsedTemplate.- See Also:
- Constant Field Values
-
REDIRECT_TEMPLATE_OUTPUT_NAME
public static final java.lang.String REDIRECT_TEMPLATE_OUTPUT_NAME
Name of theSectionOutputfor redirect to theWebTemplate.- See Also:
- Constant Field Values
-
ON_COMPLETION_OUTPUT_NAME
public static final java.lang.String ON_COMPLETION_OUTPUT_NAME
Name of theSectionOutputfor 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 aParsedTemplateSectionname 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 ofPropertyfor the number of inherited templates.- See Also:
- Constant Field Values
-
PROPERTY_TEMPLATE_CONTENT
public static final java.lang.String PROPERTY_TEMPLATE_CONTENT
Name ofPropertyto obtain the rawParsedTemplatecontent.- See Also:
- Constant Field Values
-
PROPERTY_TEMPLATE_LOCATION
public static final java.lang.String PROPERTY_TEMPLATE_LOCATION
Name ofPropertyproviding the location of theWebTemplatecontent.- See Also:
- Constant Field Values
-
PROPERTY_TEMPLATE_LOCATION_CHARSET
public static final java.lang.String PROPERTY_TEMPLATE_LOCATION_CHARSET
Name ofPropertyproviding theCharsetto read in theWebTemplatecontent at the configuredPROPERTY_TEMPLATE_LOCATION.- See Also:
- Constant Field Values
-
PROPERTY_CLASS_NAME
public static final java.lang.String PROPERTY_CLASS_NAME
Name ofPropertyfor theClassproviding 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
Propertyto indicate if thisWebTemplatecontainsHttpPathParameterinstances (dynamic path).Note that specifying the
HttpInputPathoverrides this configured value.- See Also:
- Constant Field Values
-
PROPERTY_REDIRECT_VALUES_FUNCTION
public static final java.lang.String PROPERTY_REDIRECT_VALUES_FUNCTION
Name ofPropertyfor theMethodname on the logicClassthat 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
Propertyprefix 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
Propertyprefix 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 ofPropertyto 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-WebTemplateExtensionClassname.propertyList-PropertyList.- Returns:
WebTemplateExtensionBuilder.
-
loadSpecification
protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class:AbstractSectionSourceLoads theSectionSourceSpecification.- Specified by:
loadSpecificationin classAbstractSectionSource- Parameters:
context-AbstractSectionSource.SpecificationContext.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSourceSources theOfficeSectionby constructing it via the inputSectionDesigner.- Parameters:
designer-SectionDesignerto construct the structure of theOfficeSection.context-SectionSourceContextto source details to construct theOfficeSection.- Throws:
java.lang.Exception- If fails to construct theOfficeSection.
-
-