src/java/de/uapcore/lightpit/Constants.java

changeset 13
f4608ad6c947
parent 11
737ab27e37b3
child 16
4e0998805276
equal deleted inserted replaced
12:005d27918b57 13:f4608ad6c947
29 package de.uapcore.lightpit; 29 package de.uapcore.lightpit;
30 30
31 import static de.uapcore.lightpit.Functions.fqn; 31 import static de.uapcore.lightpit.Functions.fqn;
32 32
33 /** 33 /**
34 * Contains all constants used by the this application. 34 * Contains all non-local scope constants used by the this application.
35 *
36 * Constants with (class) local scope are defined in their respective classes.
35 */ 37 */
36 public final class Constants { 38 public final class Constants {
37 public static final String JSP_PATH_PREFIX = "/WEB-INF/jsp/"; 39 public static final String JSP_PATH_PREFIX = "/WEB-INF/jsp/";
40
41 public static final String JSPF_PATH_PREFIX = "/WEB-INF/jspf/";
42
43 public static final String DYN_FRAGMENT_PATH_PREFIX = "/WEB-INF/dynamic_fragments/";
44
45
46 /**
47 * Name for the context parameter specifying the available languages.
48 */
49 public static final String CTX_ATTR_LANGUAGES = "available-languages";
38 50
39 /** 51 /**
40 * Key for the request attribute containing the class name of the currently dispatching module. 52 * Key for the request attribute containing the class name of the currently dispatching module.
41 */ 53 */
42 public static final String REQ_ATTR_MODULE_CLASSNAME = fqn(AbstractLightPITServlet.class, "moduleClassname"); 54 public static final String REQ_ATTR_MODULE_CLASSNAME = fqn(AbstractLightPITServlet.class, "moduleClassname");
53 65
54 /** 66 /**
55 * Key for the request attribute containing the full path information (servlet path + path info). 67 * Key for the request attribute containing the full path information (servlet path + path info).
56 */ 68 */
57 public static final String REQ_ATTR_PATH = fqn(AbstractLightPITServlet.class, "path"); 69 public static final String REQ_ATTR_PATH = fqn(AbstractLightPITServlet.class, "path");
70
71 /**
72 * Key for the name of the fragment which should be rendered.
73 */
74 public static final String REQ_ATTR_FRAGMENT = fqn(AbstractLightPITServlet.class, "fragment");
75
76 /**
77 * Key for the name of the additional stylesheet used by a module.
78 */
79 public static final String REQ_ATTR_STYLESHEET = fqn(AbstractLightPITServlet.class, "extraCss");
80
81
82 /**
83 * Key for the current language selection within the session.
84 */
85 public static final String SESSION_ATTR_LANGUAGE = fqn(AbstractLightPITServlet.class, "language");
58 86
59 /** 87 /**
60 * This class is not instantiatable. 88 * This class is not instantiatable.
61 */ 89 */
62 private Constants() {} 90 private Constants() {}

mercurial