You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Constants.java 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. * Copyright 2011 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * 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, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.server;
  17. /**
  18. * TODO Document me!
  19. *
  20. * @author peholmst
  21. *
  22. */
  23. public interface Constants {
  24. static final String NOT_PRODUCTION_MODE_INFO = "\n"
  25. + "=================================================================\n"
  26. + "Vaadin is running in DEBUG MODE.\nAdd productionMode=true to web.xml "
  27. + "to disable debug features.\nTo show debug window, add ?debug to "
  28. + "your application URL.\n"
  29. + "=================================================================";
  30. static final String WARNING_XSRF_PROTECTION_DISABLED = "\n"
  31. + "===========================================================\n"
  32. + "WARNING: Cross-site request forgery protection is disabled!\n"
  33. + "===========================================================";
  34. static final String WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC = "\n"
  35. + "===========================================================\n"
  36. + "WARNING: resourceCacheTime has been set to a non integer value "
  37. + "in web.xml. The default of 1h will be used.\n"
  38. + "===========================================================";
  39. static final String WARNING_HEARTBEAT_INTERVAL_NOT_NUMERIC = "\n"
  40. + "===========================================================\n"
  41. + "WARNING: heartbeatInterval has been set to a non integer value "
  42. + "in web.xml. The default of 5min will be used.\n"
  43. + "===========================================================";
  44. static final String WIDGETSET_MISMATCH_INFO = "\n"
  45. + "=================================================================\n"
  46. + "The widgetset in use does not seem to be built for the Vaadin\n"
  47. + "version in use. This might cause strange problems - a\n"
  48. + "recompile/deploy is strongly recommended.\n"
  49. + " Vaadin version: %s\n"
  50. + " Widgetset version: %s\n"
  51. + "=================================================================";
  52. static final String URL_PARAMETER_RESTART_APPLICATION = "restartApplication";
  53. static final String URL_PARAMETER_CLOSE_APPLICATION = "closeApplication";
  54. static final String URL_PARAMETER_REPAINT_ALL = "repaintAll";
  55. static final String URL_PARAMETER_THEME = "theme";
  56. static final String SERVLET_PARAMETER_PRODUCTION_MODE = "productionMode";
  57. static final String SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION = "disable-xsrf-protection";
  58. static final String SERVLET_PARAMETER_RESOURCE_CACHE_TIME = "resourceCacheTime";
  59. static final String SERVLET_PARAMETER_HEARTBEAT_RATE = "heartbeatRate";
  60. static final String SERVLET_PARAMETER_CLOSE_IDLE_UIS = "closeIdleUIs";
  61. // Configurable parameter names
  62. static final String PARAMETER_VAADIN_RESOURCES = "Resources";
  63. static final int DEFAULT_BUFFER_SIZE = 32 * 1024;
  64. static final int MAX_BUFFER_SIZE = 64 * 1024;
  65. final String THEME_DIRECTORY_PATH = "VAADIN/themes/";
  66. static final int DEFAULT_THEME_CACHETIME = 1000 * 60 * 60 * 24;
  67. static final String WIDGETSET_DIRECTORY_PATH = "VAADIN/widgetsets/";
  68. // Name of the default widget set, used if not specified in web.xml
  69. static final String DEFAULT_WIDGETSET = "com.vaadin.terminal.gwt.DefaultWidgetSet";
  70. // Widget set parameter name
  71. static final String PARAMETER_WIDGETSET = "widgetset";
  72. static final String ERROR_NO_UI_FOUND = "No UIProvider returned a UI for the request.";
  73. static final String DEFAULT_THEME_NAME = "reindeer";
  74. static final String INVALID_SECURITY_KEY_MSG = "Invalid security key.";
  75. // portal configuration parameters
  76. static final String PORTAL_PARAMETER_VAADIN_WIDGETSET = "vaadin.widgetset";
  77. static final String PORTAL_PARAMETER_VAADIN_RESOURCE_PATH = "vaadin.resources.path";
  78. static final String PORTAL_PARAMETER_VAADIN_THEME = "vaadin.theme";
  79. }