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

Sat, 23 Dec 2017 17:28:19 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 23 Dec 2017 17:28:19 +0100
changeset 12
005d27918b57
parent 11
737ab27e37b3
child 13
f4608ad6c947
permissions
-rw-r--r--

implements ResponseTypes

1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 /*
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 *
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 * Copyright 2017 Mike Becker. All rights reserved.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 *
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 * Redistribution and use in source and binary forms, with or without
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 * modification, are permitted provided that the following conditions are met:
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 *
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 * 1. Redistributions of source code must retain the above copyright
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 * notice, this list of conditions and the following disclaimer.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 *
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 * 2. Redistributions in binary form must reproduce the above copyright
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 * notice, this list of conditions and the following disclaimer in the
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 * documentation and/or other materials provided with the distribution.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 *
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 * POSSIBILITY OF SUCH DAMAGE.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 *
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 */
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 package de.uapcore.lightpit;
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30
11
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
31 import static de.uapcore.lightpit.Functions.fqn;
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 7
diff changeset
32
6
da61a1646eba adds module manager
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
33 /**
da61a1646eba adds module manager
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
34 * Contains all constants used by the this application.
da61a1646eba adds module manager
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
35 */
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 7
diff changeset
36 public final class Constants {
11
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
37 public static final String JSP_PATH_PREFIX = "/WEB-INF/jsp/";
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
38
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
39 /**
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
40 * Key for the request attribute containing the class name of the currently dispatching module.
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
41 */
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
42 public static final String REQ_ATTR_MODULE_CLASSNAME = fqn(AbstractLightPITServlet.class, "moduleClassname");
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 7
diff changeset
43
11
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
44 /**
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
45 * Key for the request attribute containing the {@link LightPITModule} information of the currently dispatching module.
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
46 */
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
47 public static final String REQ_ATTR_MODULE_INFO = fqn(AbstractLightPITServlet.class, "moduleInfo");
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
48
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
49 /**
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
50 * Key for the request attribute containing the menu list.
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
51 */
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
52 public static final String REQ_ATTR_MENU = fqn(AbstractLightPITServlet.class, "mainMenu");
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
53
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
54 /**
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
55 * Key for the request attribute containing the full path information (servlet path + path info).
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
56 */
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
57 public static final String REQ_ATTR_PATH = fqn(AbstractLightPITServlet.class, "path");
7
598670d5b0b8 core functionality should also use the modules system, changed the code structure accordingly
Mike Becker <universe@uap-core.de>
parents: 6
diff changeset
58
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 7
diff changeset
59 /**
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 7
diff changeset
60 * This class is not instantiatable.
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 7
diff changeset
61 */
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 7
diff changeset
62 private Constants() {}
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63 }

mercurial