public class WebXmlSectionSource extends AbstractSectionSource
AbstractSectionSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_WEB_XML_CONFIGURATION
Name of property optionally containing the
web.xml
configuration (should a section location not be provided). |
static String |
SERVICE_INPUT
Name of the
SectionInput that services the HttpRequest . |
static String |
UNHANDLED_OUTPUT
Name of the
SectionOutput should the HttpRequest not be
handled. |
Constructor and Description |
---|
WebXmlSectionSource() |
Modifier and Type | Method and Description |
---|---|
protected void |
loadSpecification(AbstractSectionSource.SpecificationContext context)
Loads the
SectionSourceSpecification . |
void |
sourceSection(SectionDesigner designer,
SectionSourceContext context)
Sources the
OfficeSection by constructing it via the input
SectionDesigner . |
static void |
validateWebXmlConfiguration(InputStream webXmlContents,
SourceContext context)
Validates the
web.xml configuration. |
getSpecification
public static final String PROPERTY_WEB_XML_CONFIGURATION
web.xml
configuration (should a section location not be provided).public static final String SERVICE_INPUT
SectionInput
that services the HttpRequest
.public static final String UNHANDLED_OUTPUT
SectionOutput
should the HttpRequest
not be
handled.public static void validateWebXmlConfiguration(InputStream webXmlContents, SourceContext context) throws InvalidServletConfigurationException
web.xml
configuration.webXmlContents
- Contents of the web.xml
.context
- SourceContext
.InvalidServletConfigurationException
- Should the web.xml
not be valid.protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
AbstractSectionSource
SectionSourceSpecification
.loadSpecification
in class AbstractSectionSource
context
- AbstractSectionSource.SpecificationContext
.public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws Exception
SectionSource
OfficeSection
by constructing it via the input
SectionDesigner
.designer
- SectionDesigner
to construct the structure of the
OfficeSection
.context
- SectionSourceContext
to source details to construct
the OfficeSection
.Exception
- If fails to construct the OfficeSection
.Copyright © 2005–2016. All rights reserved.