|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.compile.spi.section.source.impl.AbstractSectionSource
net.officefloor.plugin.servlet.webxml.WebXmlSectionSource
public class WebXmlSectionSource
SectionSource to load HttpServlet functionality from a
web.xml file (as per Servlet specification).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource |
|---|
AbstractSectionSource.SpecificationContext |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
WebXmlSectionSource()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource |
|---|
getSpecification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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.
| Constructor Detail |
|---|
public WebXmlSectionSource()
| Method Detail |
|---|
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)
AbstractSectionSourceSectionSourceSpecification.
loadSpecification in class AbstractSectionSourcecontext - AbstractSectionSource.SpecificationContext.
public void sourceSection(SectionDesigner designer,
SectionSourceContext context)
throws Exception
SectionSourceOfficeSection 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||