public interface HttpTemplateSectionExtensionContext extends SourceProperties
HttpTemplateSectionExtension
.Modifier and Type | Method and Description |
---|---|
void |
flagAsNonRenderTemplateMethod(String templateClassMethodName)
Flags that the method on the template class should not have the template
rendered to the
HttpResponse by default on its completion. |
SectionObject |
getOrCreateSectionObject(String typeName)
Obtains or creates the
SectionObject for the type name. |
SectionOutput |
getOrCreateSectionOutput(String name,
String argumentType,
boolean isEscalationOnly)
Obtains or creates the
SectionOutput . |
SectionDesigner |
getSectionDesigner()
Obtains the
SectionDesigner for the
HttpTemplateSectionSource being extended. |
SectionSourceContext |
getSectionSourceContext()
Obtains the
SectionSourceContext for the
HttpTemplateSectionSource to be extended. |
SectionTask |
getTask(String taskName)
Obtains the
SectionTask by the name. |
Class<?> |
getTemplateClass()
Obtains the logic class for the template.
|
String |
getTemplateContent()
Obtains the content of the template.
|
SectionManagedObject |
getTemplateLogicObject()
Obtains the
SectionManagedObject for the template logic object. |
void |
setTemplateContent(String templateContent)
Enables overriding the content of the template.
|
getProperties, getProperty, getProperty, getPropertyNames
String getTemplateContent()
void setTemplateContent(String templateContent)
Enables overriding the content of the template.
This need not be called, however is available should the extension wish to change the template content.
templateContent
- Content of the template.Class<?> getTemplateClass()
void flagAsNonRenderTemplateMethod(String templateClassMethodName)
HttpResponse
by default on its completion.templateClassMethodName
- Name of the method on the template class to be flagged to not
have template rendered on its completion.SectionSourceContext getSectionSourceContext()
Obtains the SectionSourceContext
for the
HttpTemplateSectionSource
to be extended.
Please be aware that the returned SectionSourceContext
does not
filter the properties. Therefore please use the property methods on this
interface to obtain the extension specific properties.
SectionSourceContext
for the
HttpTemplateSectionSource
to be extended.SectionDesigner getSectionDesigner()
SectionDesigner
for the
HttpTemplateSectionSource
being extended.SectionDesigner
for the HttpTemplateSectionSource
being extended.SectionManagedObject getTemplateLogicObject()
SectionManagedObject
for the template logic object.SectionManagedObject
.SectionTask getTask(String taskName)
SectionTask
by the name.taskName
- SectionTask
name.SectionTask
or null
if no
SectionTask
by name.SectionObject getOrCreateSectionObject(String typeName)
SectionObject
for the type name.typeName
- Type name.SectionObject
.SectionOutput getOrCreateSectionOutput(String name, String argumentType, boolean isEscalationOnly)
SectionOutput
.name
- SectionOutput
name.argumentType
- Argument type. May be null
if no argument.isEscalationOnly
- true
if escalation only.SectionOutput
.Copyright © 2005–2016. All rights reserved.