View Javadoc

1   package net.trajano.twiff;
2   
3   /***
4    * This utility class provides string constants used by the application and are
5    * exposed for public use.
6    * 
7    * @author Archimedes Trajano
8    */
9   public final class Twiff {
10      /***
11       * All entries are prefixed with this string. The variable name is prefixed
12       * with "_" to ensure that it gets sorted before other keys.
13       */
14      private static final String _PREFIX = "twiff."; //$NON-NLS-1$
15  
16      /***
17       * Context parameter key to get the component registerer class name.
18       */
19      public static final String CONTAINER_BUILDER_KEY = _PREFIX + "container.builder"; //$NON-NLS-1$
20  
21      /***
22       * Context parameter key to get the hibernate configuration file name.
23       * Otherwise it will default to whatever hibernate uses by default.
24       */
25      public static final String HIBERNATE_CFG_KEY = _PREFIX + "hibernate.cfg";//$NON-NLS-1$
26  
27      /***
28       * Context parameter key to get the base package name for the page beans.
29       */
30      public static final String PACKAGE_CONTEXT_KEY = _PREFIX + "package.context"; //$NON-NLS-1$
31  
32      /***
33       * Context parameter key to get the maximum page cache size.
34       */
35      public static final String PAGE_CACHE_MAX_SIZE_KEY = _PREFIX + "page.cache.max.size"; //$NON-NLS-1$
36  
37      /***
38       * The dispatch pattern.
39       */
40      public static final String DISPATCH_PATTERN_KEY = _PREFIX + "dispatch.pattern"; //$NON-NLS-1$
41  
42      /***
43       * How many seconds before the redirect page refreshes itself. This can be
44       * put in the context of the {@link net.trajano.twiff.web.RedirectServlet}.
45       */
46      public static final String REDIRECT_TIMEOUT = _PREFIX + "token.redirect.timeout"; //$NON-NLS-1$
47  
48      /***
49       * Which page to display during a redirect. This can be put in the context
50       * of the {@link net.trajano.twiff.web.RedirectServlet}.
51       */
52      public static final String REDIRECT_WAIT_PAGE = "token.redirect.wait.page"; //$NON-NLS-1$
53  
54      /***
55       * Servlet init parameter key to get the class name of the renderer for the
56       * view.
57       */
58      public static final String RENDERER_CLASS_KEY = "twiff.renderer.class"; //$NON-NLS-1$
59  
60      /***
61       * Context parameter key that sets the token field name to use.
62       */
63      public static final String TOKEN_FIELD_NAME = _PREFIX + "token.field.name"; //$NON-NLS-1$
64  
65      /***
66       * Context parameter key that sets the token resubmit field name to use.
67       * This value is set in the request attribute if the form has been
68       * resubmitted.
69       */
70      public static final String TOKEN_RESUBMIT_FIELD_NAME = _PREFIX + "token.resubmit.field.name"; //$NON-NLS-1$
71  
72      /***
73       * Private constuctor to prevent instantiation of this utility class.
74       */
75      private Twiff() {
76      }
77  }