123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- /*
- * Copyright 2000-2016 Vaadin Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- package com.vaadin.shared;
-
- import java.io.Serializable;
-
- public class ApplicationConstants implements Serializable {
-
- // This indicates the whole page is generated by us (not embedded)
- public static final String GENERATED_BODY_CLASSNAME = "v-generated-body";
-
- public static final String APP_PATH = "APP";
-
- public static final String UIDL_PATH = "UIDL";
-
- public static final String HEARTBEAT_PATH = "HEARTBEAT";
-
- public static final String PUSH_PATH = "PUSH";
-
- public static final String PUBLISHED_FILE_PATH = APP_PATH + '/'
- + "PUBLISHED";
-
- public static final String APP_PROTOCOL_PREFIX = "app://";
- public static final String VAADIN_PROTOCOL_PREFIX = "vaadin://";
- /**
- * An internal protocol used for referencing the application context path.
- *
- * @since 8.0.3
- */
- public static final String CONTEXT_PROTOCOL_PREFIX = "context://";
- public static final String FONTICON_PROTOCOL_PREFIX = "fonticon://";
- public static final String PUBLISHED_PROTOCOL_NAME = "published";
- public static final String PUBLISHED_PROTOCOL_PREFIX = PUBLISHED_PROTOCOL_NAME
- + "://";
- /**
- * Prefix used for theme resource URLs
- *
- * @see com.vaadin.server.ThemeResource
- * @since 7.5.0
- */
- public static final String THEME_PROTOCOL_PREFIX = "theme://";
-
- public static final String UIDL_SECURITY_TOKEN_ID = "Vaadin-Security-Key";
-
- public static final String UIDL_PUSH_ID = "Vaadin-Push-ID";
-
- @Deprecated
- public static final String UPDATE_VARIABLE_INTERFACE = "v";
- @Deprecated
- public static final String UPDATE_VARIABLE_METHOD = "v";
-
- public static final String SERVICE_URL = "serviceUrl";
-
- public static final String SERVICE_URL_PARAMETER_NAME = "pathParameterName";
-
- // Javadocs in ApplicationConfiguration should be updated if this is changed
- public static final String V_RESOURCE_PATH = "v-resourcePath";
-
- @Deprecated
- public static final String DRAG_AND_DROP_CONNECTOR_ID = "DD";
-
- /**
- * URL parameter used in UIDL requests to indicate that the full server-side
- * state should be returned to the client, i.e. without any incremental
- * changes.
- */
- public static final String URL_PARAMETER_REPAINT_ALL = "repaintAll";
-
- /**
- * Configuration parameter giving the (in some cases relative) URL to the
- * web application context root.
- *
- * @since 8.0.3
- */
- public static final String CONTEXT_ROOT_URL = "contextRootUrl";
-
- /**
- * Configuration parameter giving the (in some cases relative) URL to the
- * VAADIN folder from where themes and widgetsets are loaded.
- * <p>
- * <b>Refactor warning:</b> This value is also hardcoded in
- * vaadinBootstrap.js.
- * </p>
- */
- public static final String VAADIN_DIR_URL = "vaadinDir";
-
- /**
- * The name of the javascript containing the bootstrap code. The file is
- * located in the VAADIN directory.
- *
- * @since 7.3
- */
- public static final String VAADIN_BOOTSTRAP_JS = "vaadinBootstrap.js";
-
- /**
- * The name of the javascript containing push support. The file is located
- * in the VAADIN directory.
- */
- public static final String VAADIN_PUSH_JS = "vaadinPush.js";
-
- /**
- * The name of the debug version of the javascript containing push support.
- * The file is located in the VAADIN directory.
- *
- * @since 7.1.6
- */
- public static final String VAADIN_PUSH_DEBUG_JS = "vaadinPush.debug.js";
-
- /**
- * Name of the parameter used to transmit the CSRF token.
- */
- public static final String CSRF_TOKEN_PARAMETER = "v-csrfToken";
-
- /**
- * Name of the parameter used to transmit the push connection identifier.
- */
- public static final String PUSH_ID_PARAMETER = "v-pushId";
-
- /**
- * The name of the parameter used to transmit RPC invocations
- *
- * @since 7.2
- */
- public static final String RPC_INVOCATIONS = "rpc";
-
- /**
- * The name of the parameter used to transmit the CSRF token
- *
- * @since 7.2
- */
- public static final String CSRF_TOKEN = "csrfToken";
-
- /**
- * The name of the parameter used to transmit the sync id. The value can be
- * set to -1 e.g. when testing with pre-recorded requests to make the
- * framework ignore the sync id.
- *
- * @see com.vaadin.ui.ConnectorTracker#getCurrentSyncId()
- * @since 7.2
- */
- public static final String SERVER_SYNC_ID = "syncId";
-
- /**
- * The name of the parameter used to transmit the id of the client to server
- * messages.
- *
- * @since 7.6
- */
- public static final String CLIENT_TO_SERVER_ID = "clientId";
-
- /**
- * Default value to use in case the security protection is disabled.
- */
- public static final String CSRF_TOKEN_DEFAULT_VALUE = "init";
-
- /**
- * The name of the parameter used for re-synchronizing.
- */
- public static final String RESYNCHRONIZE_ID = "resynchronize";
-
- /**
- * The name of the parameter used for sending the widget set version to the
- * server
- *
- * @since 7.6
- */
- public static final String WIDGETSET_VERSION_ID = "wsver";
-
- }
|