org.inria.ns.reflex
Class ReflexServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by 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>...
NameValueDefault
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>...
NameValueDefault
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

Field Summary
static String ACTIVE_SHEET_PATH
           
static String ACTIVE_SHEET_PATH_DEFAULT_VALUE
           
static String CATALOG_URIS
           
static String DRIVER_CLASS_NAME
           
 
Constructor Summary
ReflexServlet()
           
 
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.
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ReflexServlet

public ReflexServlet()
Method Detail

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.