public class HttpServletWorkSource extends AbstractWorkSource<HttpServletTask>
WorkSource
for a HttpServletContainer
.AbstractWorkSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_HTTP_SERVLET_CLASS_NAME
Name of property for the class name of the
HttpServlet
implementation. |
static String |
PROPERTY_PREFIX_INIT_PARAMETER
Prefix of property for an initialisation parameter.
|
static String |
PROPERTY_SERVLET_MAPPINGS
Name of property for the
HttpServlet mappings. |
static String |
PROPERTY_SERVLET_NAME
Name of property for the
HttpServlet name. |
Constructor and Description |
---|
HttpServletWorkSource() |
Modifier and Type | Method and Description |
---|---|
protected void |
loadSpecification(AbstractWorkSource.SpecificationContext context)
Loads the
WorkSourceSpecification . |
void |
sourceWork(WorkTypeBuilder<HttpServletTask> workTypeBuilder,
WorkSourceContext context)
Sources the
WorkType by populating it via the input
WorkTypeBuilder . |
getSpecification
public static final String PROPERTY_SERVLET_NAME
HttpServlet
name.public static final String PROPERTY_SERVLET_MAPPINGS
HttpServlet
mappings.public static final String PROPERTY_HTTP_SERVLET_CLASS_NAME
HttpServlet
implementation.public static final String PROPERTY_PREFIX_INIT_PARAMETER
protected void loadSpecification(AbstractWorkSource.SpecificationContext context)
AbstractWorkSource
WorkSourceSpecification
.loadSpecification
in class AbstractWorkSource<HttpServletTask>
context
- AbstractWorkSource.SpecificationContext
.public void sourceWork(WorkTypeBuilder<HttpServletTask> 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.