public class HttpTemplateInitialWorkSource extends AbstractWorkSource<HttpTemplateInitialTask>
WorkSource
to provide the HttpTemplateInitialTask
.AbstractWorkSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_CHARSET
Property name for the
Charset of the HttpTemplate . |
static String |
PROPERTY_CONTENT_TYPE
Property name for the Content-Type of the
HttpTemplate . |
static String |
PROPERTY_RENDER_REDIRECT_HTTP_METHODS
Property name for a comma separated list of HTTP methods that will
trigger a redirect before rendering the
HttpTemplate . |
static String |
PROPERTY_TEMPLATE_URI
Property name for the
HttpTemplate URI path. |
static String |
TASK_NAME
Name of the
HttpTemplateInitialTask . |
Constructor and Description |
---|
HttpTemplateInitialWorkSource() |
Modifier and Type | Method and Description |
---|---|
protected void |
loadSpecification(AbstractWorkSource.SpecificationContext context)
Loads the
WorkSourceSpecification . |
void |
sourceWork(WorkTypeBuilder<HttpTemplateInitialTask> workTypeBuilder,
WorkSourceContext context)
Sources the
WorkType by populating it via the input
WorkTypeBuilder . |
getSpecification
public static final String PROPERTY_TEMPLATE_URI
HttpTemplate
URI path.public static final String PROPERTY_RENDER_REDIRECT_HTTP_METHODS
HttpTemplate
.public static final String PROPERTY_CONTENT_TYPE
HttpTemplate
.public static final String PROPERTY_CHARSET
Charset
of the HttpTemplate
.public static final String TASK_NAME
HttpTemplateInitialTask
.protected void loadSpecification(AbstractWorkSource.SpecificationContext context)
AbstractWorkSource
WorkSourceSpecification
.loadSpecification
in class AbstractWorkSource<HttpTemplateInitialTask>
context
- AbstractWorkSource.SpecificationContext
.public void sourceWork(WorkTypeBuilder<HttpTemplateInitialTask> workTypeBuilder, WorkSourceContext context) throws Exception
WorkSource
WorkType
by populating it via the input
WorkTypeBuilder
.workTypeBuilder
- WorkTypeBuilder
to be populated with the
type definition
of the Work
.context
- WorkSourceContext
to source details to populate the
WorkTypeBuilder
.Exception
- If fails to populate the WorkTypeBuilder
.Copyright © 2005–2016. All rights reserved.