public class HttpTemplateWorkSourceExtension extends AbstractSocketWorkSourceExtension<HttpTemplateWork,HttpTemplateWorkSource> implements ExtensionOpener
Modifier and Type | Class and Description |
---|---|
static class |
HttpTemplateWorkSourceExtension.SectionToBeanTypeMapping
Mapping of the
HttpTemplateSection to bean type. |
EXTENSION_ID
EXTENSION_ID
Constructor and Description |
---|
HttpTemplateWorkSourceExtension()
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
createControl(org.eclipse.swt.widgets.Composite page,
WorkSourceExtensionContext context)
Loads the input page with the necessary
Control instances to
populate the PropertyList . |
String |
getSuggestedWorkName(PropertyList properties)
Obtains the suggested name of the
Work . |
String |
getTaskDocumentation(TaskDocumentationContext context)
|
void |
openSource(ExtensionOpenerContext context)
Opens the source.
|
getClasspathProvisions, getWorkSourceClass, getWorkSourceLabel
public HttpTemplateWorkSourceExtension()
public void createControl(org.eclipse.swt.widgets.Composite page, WorkSourceExtensionContext context)
WorkSourceExtension
Control
instances to
populate the PropertyList
. Also allows notifying of changes to
Property
instances via the WorkSourceExtensionContext
.createControl
in interface WorkSourceExtension<HttpTemplateWork,HttpTemplateWorkSource>
page
- Page to be setup for populating the PropertyList
.context
- WorkSourceExtensionContext
.public String getSuggestedWorkName(PropertyList properties)
WorkSourceExtension
Work
.getSuggestedWorkName
in interface WorkSourceExtension<HttpTemplateWork,HttpTemplateWorkSource>
getSuggestedWorkName
in class AbstractSocketWorkSourceExtension<HttpTemplateWork,HttpTemplateWorkSource>
properties
- PropertyList
.Work
name or null
if no
suggestion.public String getTaskDocumentation(TaskDocumentationContext context) throws Throwable
WorkSourceExtension
getTaskDocumentation
in interface WorkSourceExtension<HttpTemplateWork,HttpTemplateWorkSource>
context
- TaskDocumentationContext
.Task
.Throwable
- If fails to obtain documentation about the Task
.public void openSource(ExtensionOpenerContext context) throws Exception
ExtensionOpener
openSource
in interface ExtensionOpener
context
- ExtensionOpenerContext
.Exception
- If fails to open the source.Copyright © 2005–2016. All rights reserved.