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.

ApplicationConstants.java 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. * Copyright 2000-2014 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.shared;
  17. import java.io.Serializable;
  18. public class ApplicationConstants implements Serializable {
  19. // This indicates the whole page is generated by us (not embedded)
  20. public static final String GENERATED_BODY_CLASSNAME = "v-generated-body";
  21. public static final String APP_PATH = "APP";
  22. public static final String UIDL_PATH = "UIDL";
  23. public static final String HEARTBEAT_PATH = "HEARTBEAT";
  24. public static final String PUSH_PATH = "PUSH";
  25. public static final String PUBLISHED_FILE_PATH = APP_PATH + '/'
  26. + "PUBLISHED";
  27. public static final String APP_PROTOCOL_PREFIX = "app://";
  28. public static final String VAADIN_PROTOCOL_PREFIX = "vaadin://";
  29. public static final String FONTICON_PROTOCOL_PREFIX = "fonticon://";
  30. public static final String PUBLISHED_PROTOCOL_NAME = "published";
  31. public static final String PUBLISHED_PROTOCOL_PREFIX = PUBLISHED_PROTOCOL_NAME
  32. + "://";
  33. public static final String UIDL_SECURITY_TOKEN_ID = "Vaadin-Security-Key";
  34. @Deprecated
  35. public static final String UPDATE_VARIABLE_INTERFACE = "v";
  36. @Deprecated
  37. public static final String UPDATE_VARIABLE_METHOD = "v";
  38. public static final String SERVICE_URL = "serviceUrl";
  39. public static final String SERVICE_URL_PARAMETER_NAME = "pathParameterName";
  40. // Javadocs in ApplicationConfiguration should be updated if this is changed
  41. public static final String V_RESOURCE_PATH = "v-resourcePath";
  42. @Deprecated
  43. public static final String DRAG_AND_DROP_CONNECTOR_ID = "DD";
  44. /**
  45. * URL parameter used in UIDL requests to indicate that the full server-side
  46. * state should be returned to the client, i.e. without any incremental
  47. * changes.
  48. */
  49. public static final String URL_PARAMETER_REPAINT_ALL = "repaintAll";
  50. /**
  51. * Configuration parameter giving the (in some cases relative) URL to the
  52. * VAADIN folder from where themes and widgetsets are loaded.
  53. * <p>
  54. * <b>Refactor warning:</b> This value is also hardcoded in
  55. * vaadinBootstrap.js.
  56. * </p>
  57. */
  58. public static final String VAADIN_DIR_URL = "vaadinDir";
  59. /**
  60. * The name of the javascript containing the bootstrap code. The file is
  61. * located in the VAADIN directory.
  62. *
  63. * @since 7.3
  64. */
  65. public static final String VAADIN_BOOTSTRAP_JS = "vaadinBootstrap.js";
  66. /**
  67. * The name of the javascript containing push support. The file is located
  68. * in the VAADIN directory.
  69. */
  70. public static final String VAADIN_PUSH_JS = "vaadinPush.js";
  71. /**
  72. * The name of the debug version of the javascript containing push support.
  73. * The file is located in the VAADIN directory.
  74. *
  75. * @since 7.1.6
  76. */
  77. public static final String VAADIN_PUSH_DEBUG_JS = "vaadinPush.debug.js";
  78. /**
  79. * Name of the parameter used to transmit the CSRF token.
  80. */
  81. public static final String CSRF_TOKEN_PARAMETER = "v-csrfToken";
  82. /**
  83. * The name of the parameter used to transmit RPC invocations
  84. *
  85. * @since 7.2
  86. */
  87. public static final String RPC_INVOCATIONS = "rpc";
  88. /**
  89. * The name of the parameter used to transmit the CSRF token
  90. *
  91. * @since 7.2
  92. */
  93. public static final String CSRF_TOKEN = "csrfToken";
  94. /**
  95. * The name of the parameter used to transmit the sync id. The value can be
  96. * set to -1 e.g. when testing with pre-recorded requests to make the
  97. * framework ignore the sync id.
  98. *
  99. * @see com.vaadin.ui.ConnectorTracker#getCurrentSyncId()
  100. * @since 7.2
  101. */
  102. public static final String SERVER_SYNC_ID = "syncId";
  103. /**
  104. * Default value to use in case the security protection is disabled.
  105. */
  106. public static final String CSRF_TOKEN_DEFAULT_VALUE = "init";
  107. }