View Javadoc

1   /*
2    * Copyright 2007 Tim Peierls
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.directwebremoting.guice;
17  
18  
19  /**
20   * Parameters used to configure DWR.
21   * @author Tim Peierls [tim at peierls dot net]
22   */
23  public enum ParamName
24  {
25      ALLOW_GET_FOR_SAFARI                ("allowGetForSafariButMakeForgeryEasier"),
26      CROSS_DOMAIN_SESSION_SECURITY       ("crossDomainSessionSecurity"),
27      ALLOW_SCRIPT_TAG_REMOTING           ("allowScriptTagRemoting"),
28      DEBUG                               ("debug"),
29      SCRIPT_SESSION_TIMEOUT              ("scriptSessionTimeout"),
30      MAX_CALL_COUNT                      ("maxCallCount"),
31      ACTIVE_REVERSE_AJAX_ENABLED         ("activeReverseAjaxEnabled"),
32      MAX_WAIT_AFTER_WRITE                ("maxWaitAfterWrite"),
33      DISCONNECTED_TIME                   ("disconnectedTime"),
34      POLL_AND_COMET_ENABLED              ("pollAndCometEnabled"),
35      MAX_WAITING_THREADS                 ("maxWaitingThreads"),
36      MAX_POLL_HITS_PER_SECOND            ("maxPollHitsPerSecond"),
37      PRE_STREAM_WAIT_TIME                ("preStreamWaitTime"),
38      POST_STREAM_WAIT_TIME               ("postStreamWaitTime"),
39      IGNORE_LAST_MODIFIED                ("ignoreLastModified"),
40      SCRIPT_COMPRESSED                   ("scriptCompressed"),
41      SESSION_COOKIE_NAME                 ("sessionCookieName"),
42      WELCOME_FILES                       ("welcomeFiles"),
43      NORMALIZE_INCLUDES_QUERY_STRING     ("normalizeIncludesQueryString"),
44      OVERRIDE_PATH                       ("overridePath"),
45      
46      CLASSES                             ("classes");
47  
48      ParamName(String name) 
49      {
50          this.name = name;
51      }
52      
53      public String getName()
54      {
55          return name;
56      }
57      
58      private final String name;
59  }