public class HttpUrlContinuationWorkSource extends AbstractWorkSource<HttpUrlContinuationTask>
WorkSource
for a HTTP URL continuation.AbstractWorkSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_SECURE
Name of
Property specifying whether the HTTP URL continuation
requires a secure ServerHttpConnection . |
static String |
PROPERTY_URI_PATH
Name of
Property specifying the URI path for the HTTP URL
continuation. |
static String |
TASK_NAME
Name of the
TaskType . |
Constructor and Description |
---|
HttpUrlContinuationWorkSource() |
Modifier and Type | Method and Description |
---|---|
static String |
getApplicationUriPath(String configuredUriPath)
Obtains the application URI path from the configured URI path.
|
protected void |
loadSpecification(AbstractWorkSource.SpecificationContext context)
Loads the
WorkSourceSpecification . |
void |
sourceWork(WorkTypeBuilder<HttpUrlContinuationTask> workTypeBuilder,
WorkSourceContext context)
Sources the
WorkType by populating it via the input
WorkTypeBuilder . |
getSpecification
public static final String PROPERTY_URI_PATH
Property
specifying the URI path for the HTTP URL
continuation.public static final String PROPERTY_SECURE
Property
specifying whether the HTTP URL continuation
requires a secure ServerHttpConnection
.public static final String TASK_NAME
TaskType
.public static String getApplicationUriPath(String configuredUriPath) throws InvalidHttpRequestUriException
configuredUriPath
- Configured URI path.InvalidHttpRequestUriException
- If configured URI path is invalid.protected void loadSpecification(AbstractWorkSource.SpecificationContext context)
AbstractWorkSource
WorkSourceSpecification
.loadSpecification
in class AbstractWorkSource<HttpUrlContinuationTask>
context
- AbstractWorkSource.SpecificationContext
.public void sourceWork(WorkTypeBuilder<HttpUrlContinuationTask> 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.