public class HttpResponseSenderWorkSource extends AbstractWorkSource<Work>
WorkSource
to trigger sending the HttpResponse
.AbstractWorkSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_HTTP_RESPONSE_CONTENT_FILE
Property to obtain the class path location of the
File containing
the HTTP response. |
static String |
PROPERTY_HTTP_STATUS
Property to obtain the HTTP status for the
HttpResponse . |
Constructor and Description |
---|
HttpResponseSenderWorkSource() |
Modifier and Type | Method and Description |
---|---|
protected void |
loadSpecification(AbstractWorkSource.SpecificationContext context)
Loads the
WorkSourceSpecification . |
void |
sourceWork(WorkTypeBuilder<Work> workTypeBuilder,
WorkSourceContext context)
Sources the
WorkType by populating it via the input
WorkTypeBuilder . |
getSpecification
public static final String PROPERTY_HTTP_STATUS
HttpResponse
.public static final String PROPERTY_HTTP_RESPONSE_CONTENT_FILE
File
containing
the HTTP response.protected void loadSpecification(AbstractWorkSource.SpecificationContext context)
AbstractWorkSource
WorkSourceSpecification
.loadSpecification
in class AbstractWorkSource<Work>
context
- AbstractWorkSource.SpecificationContext
.public void sourceWork(WorkTypeBuilder<Work> 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.