1 /*
2 * Copyright (c) 1997, 2018 Oracle and/or its affiliates and others.
3 * All rights reserved.
4 *
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v. 2.0, which is available at
7 * http://www.eclipse.org/legal/epl-2.0.
8 *
9 * This Source Code may also be made available under the following Secondary
10 * Licenses when the conditions for such availability set forth in the
11 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
12 * version 2 with the GNU Classpath Exception, which is available at
13 * https://www.gnu.org/software/classpath/license.html.
14 *
15 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16 */
17
18 package javax.servlet.http;
19
20 /**
21 * <p>
22 * Enumeration of Servlet mapping types.
23 * </p>
24 *
25 * @since 4.0
26 */
27 public enum MappingMatch {
28 /**
29 * <p>
30 * This is used when the mapping was achieved with an exact match to the application's context root.
31 * </p>
32 */
33 CONTEXT_ROOT,
34 /**
35 * <p>
36 * This is used when the mapping was achieved with an exact match to the default servlet of the application, the
37 * '{@code /}' character.
38 * </p>
39 */
40 DEFAULT,
41 /**
42 * <p>
43 * This is used when the mapping was achieved with an exact match to the incoming request.
44 * </p>
45 */
46 EXACT,
47 /**
48 * <p>
49 * This is used when the mapping was achieved using an extension, such as "{@code *.xhtml}".
50 * </p>
51 */
52 EXTENSION,
53 /**
54 * <p>
55 * This is used when the mapping was achieved using a path, such as "{@code /faces/*}".
56 * </p>
57 */
58 PATH
59 }
60