org.inria.ns.reflex
Class ReflexServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.inria.ns.reflex.ReflexServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class ReflexServlet
- extends HttpServlet
ReflexServlet is a servlet for the RefleX engine that
implements the Web module specification for Active Tags.
All path used in the deployment descriptor (web.xml) MUST
use the web URI scheme to denote a path relative to this
web application (web:///WEB-INF/myResource).
The Active Sheet itself also support the web scheme.
Servlet init parameters
<servlet>
<init-param>...
Name | Value | Default |
activeSheetPath |
The path to the Active Sheet. |
web:///WEB-INF/active-sheet.web |
catalogs |
A list of catalogs paths separated with whitespaces.
URIs supported include the web URI scheme and the
special res URI scheme for
precompiled catalog classes .
|
|
Context init parameters
<web-app>
<context-param>...
Name | Value | Default |
driver-class |
A list of driver class names, separated with whitespaces.
When initializing, the servlet just calls Class.forName(...) for each driver.
|
|
Deployment
This servlet may be safely deploy to a sharable
location without any special precaution, except that the
VFS library must be handled by the same class loader
than the RefleX library (that is to say they must be
deployed either in the webapp library directory or
in the servlet engine shared-libraries directory,
but must not be separated).
- Author:
- Philippe Poulard
- See Also:
- Serialized Form
Method Summary |
void |
init()
Servlet initialization : creates a processor instance
by unmarshalling an active sheet
and parses a set of stylesheets. |
void |
registerWebapp()
Registers the current web application to the web file system provider. |
ACTIVE_SHEET_PATH
public static final String ACTIVE_SHEET_PATH
- See Also:
- Constant Field Values
ACTIVE_SHEET_PATH_DEFAULT_VALUE
public static final String ACTIVE_SHEET_PATH_DEFAULT_VALUE
- See Also:
- Constant Field Values
DRIVER_CLASS_NAME
public static final String DRIVER_CLASS_NAME
- See Also:
- Constant Field Values
CATALOG_URIS
public static final String CATALOG_URIS
- See Also:
- Constant Field Values
ReflexServlet
public ReflexServlet()
init
public void init()
throws ServletException
- Servlet initialization : creates a processor instance
by unmarshalling an active sheet
and parses a set of stylesheets.
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
- When the active sheet can't be unmarshalled.
registerWebapp
public void registerWebapp()
- Registers the current web application to the web file system provider.