public class WoofServlet extends OfficeFloorServlet
WoOF (Web on OfficeFloor) Servlet
.
This Servlet
enables embedding WoOF functionality within a JEE
Servlet Application. To enable handling the appropriate
HttpServletRequest
instances this should be configured as a
ServletContextListener
.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_OBJECTS_CONFIGURATION_LOCATION
Default Objects configuration location.
|
static String |
DEFAULT_TEAMS_CONFIGURATION_LOCATION
Default Teams configuration location.
|
static String |
DEFAULT_WOOF_CONFIGUARTION_LOCATION
Default WoOF configuration location.
|
static String |
PROPERTY_OBJECTS_CONFIGURATION_LOCATION
Property for the location of the Objects configuration.
|
static String |
PROPERTY_TEAMS_CONFIGURATION_LOCATION
Property for the location of the Teams configuration.
|
static String |
PROPERTY_WOOF_CONFIGURATION_LOCATION
Property for the location of the WoOF configuration.
|
static String |
SERVLET_NAME
Name that this
WoofServlet should be registered. |
Constructor and Description |
---|
WoofServlet() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(WebAutoWireApplication application,
javax.servlet.ServletContext servletContext)
Provides configuration of the
WebAutoWireApplication for this
OfficeFloorServlet . |
String |
getServletName()
Obtains the name to register this
Servlet . |
String |
getTemplateUriSuffix()
Obtains the
HttpTemplate URI suffix. |
contextDestroyed, contextInitialized, destroy, doFilter, getInitParameter, getServletInfo, init, init, service
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static final String SERVLET_NAME
Name that this WoofServlet
should be registered.
This enables web-fragment
functionality to determine if an
implementation of the WoofServlet
has been configured or whether
one should be automatically configured.
public static final String DEFAULT_WOOF_CONFIGUARTION_LOCATION
public static final String PROPERTY_WOOF_CONFIGURATION_LOCATION
public static final String DEFAULT_OBJECTS_CONFIGURATION_LOCATION
public static final String PROPERTY_OBJECTS_CONFIGURATION_LOCATION
public static final String DEFAULT_TEAMS_CONFIGURATION_LOCATION
public static final String PROPERTY_TEAMS_CONFIGURATION_LOCATION
public String getServletName()
OfficeFloorServlet
Servlet
.getServletName
in interface javax.servlet.ServletConfig
getServletName
in class OfficeFloorServlet
Servlet
.public String getTemplateUriSuffix()
OfficeFloorServlet
Obtains the HttpTemplate
URI suffix.
Must provide a URI suffix to enable Servlet
mapping for link URL
continuations.
getTemplateUriSuffix
in class OfficeFloorServlet
HttpTemplate
URI suffix.public boolean configure(WebAutoWireApplication application, javax.servlet.ServletContext servletContext) throws Exception
OfficeFloorServlet
WebAutoWireApplication
for this
OfficeFloorServlet
.configure
in class OfficeFloorServlet
application
- WebAutoWireApplication
.servletContext
- ServletContext
.true
to load the OfficeFloorServlet
.
false
does not configure it.Exception
- If fails to configure.Copyright © 2005–2016. All rights reserved.