-
Notifications
You must be signed in to change notification settings - Fork 45
/
SpringWebMvcConfigurerConstants.java
70 lines (53 loc) · 2.59 KB
/
SpringWebMvcConfigurerConstants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*******************************************************************************
* Copyright (c) 2019, 2024 Obeo.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.sirius.web.infrastructure.mvc;
/**
* Constants used by the WebMvc configurer.
*
* @author sbegaudeau
*/
public final class SpringWebMvcConfigurerConstants {
/** Base path of the API. */
public static final String API_BASE_PATH = "/api";
/** Pattern used to match CSS resources from the front-end. */
public static final String CSS_PATTERN = "/**/*.css";
/** Pattern used to match HTML resources from the front-end. */
public static final String HTML_PATTERN = "/**/*.html";
/** Pattern used to match JS resources from the front-end. */
public static final String JS_PATTERN = "/**/*.js";
/** Pattern used to match JS source maps resources from the front-end. */
public static final String JS_MAP_PATTERN = "/**/*.js.map";
/** Pattern used to match JS chunk resources from the front-end. */
public static final String JS_CHUNK_PATTERN = "/**/*.chunk.js";
/** Pattern used to match JSON resources from the front-end. */
public static final String JSON_PATTERN = "/**/*.json";
/** Pattern used to match ICO resources from the front-end. */
public static final String ICO_PATTERN = "/**/*.ico";
/** Pattern used to match TTF resources from the front-end. */
public static final String TTF_PATTERN = "/**/*.ttf";
/** Pattern used to match media resources from the front-end. */
public static final String MEDIA_PATTERN = "/**/media/**";
/** Pattern used to match the raw hostname with any specific path. */
public static final String EMPTY_PATTERN = "";
/** Pattern used to match the path of the homepage. */
public static final String HOMEPAGE_PATTERN = "/";
/** Pattern used to match any path. */
public static final String ANY_PATTERN = "/**";
/** Path of the folder containing the static resources. */
public static final String STATIC_ASSETS_PATH = "classpath:/static/";
/** Path of the index.html file. */
public static final String INDEX_HTML_PATH = "classpath:/static/index.html";
private SpringWebMvcConfigurerConstants() {
// Prevent instantiation
}
}