public class ServletWebAutoWireApplication<S extends OfficeFloorServlet> extends WebApplicationAutoWireOfficeFloorSource implements WebAutoWireApplication
AbstractOfficeFloorSource.SpecificationContextprocessScopeWirerHANDLER_INPUT_NAME, HANDLER_SECTION_NAME, WEB_PUBLIC_RESOURCES_CLASS_PATH_PREFIX| Modifier and Type | Method and Description |
|---|---|
static void |
configure(OfficeFloorServlet servletInitiateInstance,
ServletContext servletContext)
Configures the
OfficeFloorServlet implementation into the
ServletContext. |
void |
destroy()
Destroys this
ServletWebAutoWireApplication. |
static <I extends OfficeFloorServlet> |
initiate(I servletInstance)
Initiates and returns the
ServletWebAutoWireApplication for the
OfficeFloorServlet instance. |
void |
linkEscalation(Class<? extends Throwable> escalation,
String resourcePath) |
void |
linkToResource(AutoWireSection section,
String outputName,
String requestDispatcherPath) |
static void |
reset()
Resets the registered
ServletWebAutoWireApplication instances. |
boolean |
service(S servletInstance,
HttpServletRequest request,
HttpServletResponse response)
Services the
HttpServletRequest. |
addHttpApplicationObject, addHttpApplicationObject, addHttpRequestObject, addHttpRequestObject, addHttpSessionObject, addHttpSessionObject, addHttpTemplate, chainServicer, getHttpSecurity, getTemplateSectionName, getURIs, initOfficeFloor, linkEscalation, linkToHttpTemplate, linkToSendResponse, linkUri, setDefaultHttpTemplateUriSuffix, setHttpSecurityaddGovernance, addManagedObject, addObject, addSection, addSection, addSectionTransformer, addStartupFlow, addSupplier, assignDefaultTeam, assignTeam, getAppropriateAutoWire, getOfficeFloorCompiler, getSection, isLinked, isObjectAvailable, link, linkEscalation, loadSpecification, openOfficeFloor, setProfiler, sourceOfficeFloor, specifyConfigurationPropertiesgetSpecificationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHttpApplicationObject, addHttpApplicationObject, addHttpRequestObject, addHttpRequestObject, addHttpSessionObject, addHttpSessionObject, addHttpTemplate, chainServicer, getHttpSecurity, getURIs, linkEscalation, linkToHttpTemplate, linkToSendResponse, linkUri, setDefaultHttpTemplateUriSuffix, setHttpSecurityaddGovernance, addManagedObject, addObject, addSection, addSection, addSectionTransformer, addStartupFlow, addSupplier, assignDefaultTeam, assignTeam, getOfficeFloorCompiler, getSection, isLinked, isObjectAvailable, link, linkEscalation, openOfficeFloor, setProfilerpublic static void reset()
Resets the registered ServletWebAutoWireApplication instances.
This should NOT be called in Production and is only to reset for testing.
public static void configure(OfficeFloorServlet servletInitiateInstance, ServletContext servletContext)
Configures the OfficeFloorServlet implementation into the
ServletContext.
This is expected to be called from a ServletContextListener as it
will configure an instance of the OfficeFloorServlet with
appropriate URI mapping.
servletInitiateInstance - Implementing instance of the OfficeFloorServlet. This
instance is only used used for registration and configuration.
Its Class however is registered so that a new instance
is instantiated and allows injection of necessary resources to
occur.servletContext - ServletContext.public static <I extends OfficeFloorServlet> ServletWebAutoWireApplication<I> initiate(I servletInstance) throws ServletException
Initiates and returns the ServletWebAutoWireApplication for the
OfficeFloorServlet instance.
This is expected to be called from the
Servlet.init(ServletConfig) so that the
ServletConfig.getInitParameter(String) is available.
I - OfficeFloorServlet type.servletInstance - OfficeFloorServlet instance.ServletWebAutoWireApplication for the
OfficeFloorServlet instance after it has been initiated.ServletException - If fails to initiate.public boolean service(S servletInstance, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
HttpServletRequest.servletInstance - OfficeFloorServlet instance.request - HttpServletRequest.response - HttpServletResponse.true if serviced or false indicating
not handled.ServletException - If fails to service HttpServletRequest.IOException - If I/O failure in servicing the HttpServletRequest.public void destroy()
ServletWebAutoWireApplication.public void linkToResource(AutoWireSection section, String outputName, String requestDispatcherPath)
linkToResource in interface WebAutoWireApplicationlinkToResource in class WebApplicationAutoWireOfficeFloorSourcepublic void linkEscalation(Class<? extends Throwable> escalation, String resourcePath)
linkEscalation in interface WebAutoWireApplicationlinkEscalation in class WebApplicationAutoWireOfficeFloorSourceCopyright © 2005–2015. All rights reserved.