forked from jooby-project/jooby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRouterOption.java
More file actions
49 lines (45 loc) · 1.34 KB
/
RouterOption.java
File metadata and controls
49 lines (45 loc) · 1.34 KB
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
/**
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 Edgar Espina
*/
package io.jooby;
/**
* Router matching options. Specify whenever ignore case and trailing slash. Options:
* <ul>
* <li>
* IGNORE_CASE: Indicates whenever routing algorithm does case-sensitive matching on incoming
* request path. Default is <code>case sensitive</code>.
* </li>
* <li>
* IGNORE_TRAILING_SLASH: Indicates whenever a trailing slash is ignored on incoming request path.
* </li>
* <li>
* NORMALIZE_SLASH: Normalize incoming request path by removing consecutive <code>/</code>(slashes).
* </li>
* <li>
* RESET_HEADERS_ON_ERROR: Indicates whenever response headers are clear/reset in case of
* exception.
* </li>
* </ul>
*
* @author edgar
* @since 2.4.0
*/
public enum RouterOption {
/**
* Indicates whenever routing algorithm does case-sensitive matching on incoming request path.
* Default is <code>case sensitive</code>.
*/
IGNORE_CASE,
/**
* Indicates whenever a trailing slash is ignored on incoming request path.
*/
IGNORE_TRAILING_SLASH,
/**
* Normalize incoming request path by removing multiple slash sequences.
*/
NORMALIZE_SLASH,
/** Indicates whenever response headers are clear/reset in case of exception. */
RESET_HEADERS_ON_ERROR
}