-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
...nsions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/RouteConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,62 @@ | ||
package io.quarkus.vertx.http.runtime; | ||
|
||
/** | ||
* Route order mark constants used in Quarkus, update {@code reactive-routes.adoc} when changing this class. | ||
* Route order value constants used in Quarkus, update {@code reactive-routes.adoc} when changing this class. | ||
*/ | ||
@SuppressWarnings("JavadocDeclaration") | ||
public final class RouteConstants { | ||
private RouteConstants() { | ||
} | ||
|
||
/** | ||
* Order mark ({@value #ROUTE_ORDER_ACCESS_LOG_HANDLER}) for the access-log handler, if enabled in the configuration. | ||
* Order value ({@value #ROUTE_ORDER_ACCESS_LOG_HANDLER}) for the access-log handler, if enabled in the configuration. | ||
*/ | ||
public static final int ROUTE_ORDER_ACCESS_LOG_HANDLER = Integer.MIN_VALUE; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_RECORD_START_TIME}) for the handler adding the start-time, if enabled in the | ||
* Order value ({@value #ROUTE_ORDER_RECORD_START_TIME}) for the handler adding the start-time, if enabled in the | ||
* configuration. | ||
*/ | ||
public static final int ROUTE_ORDER_RECORD_START_TIME = Integer.MIN_VALUE; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_HOT_REPLACEMENT}) for the hot-replacement body handler. | ||
* Order value ({@value #ROUTE_ORDER_HOT_REPLACEMENT}) for the hot-replacement body handler. | ||
*/ | ||
public static final int ROUTE_ORDER_HOT_REPLACEMENT = Integer.MIN_VALUE; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_BODY_HANDLER_MANAGEMENT}) for the body handler for the management router. | ||
* Order value ({@value #ROUTE_ORDER_BODY_HANDLER_MANAGEMENT}) for the body handler for the management router. | ||
*/ | ||
public static final int ROUTE_ORDER_BODY_HANDLER_MANAGEMENT = Integer.MIN_VALUE; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_HEADERS}) for the handlers that add headers specified in the configuration. | ||
* Order value ({@value #ROUTE_ORDER_HEADERS}) for the handlers that add headers specified in the configuration. | ||
*/ | ||
public static final int ROUTE_ORDER_HEADERS = Integer.MIN_VALUE; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_CORS_MANAGEMENT}) for the CORS-Origin handler of the management router. | ||
* Order value ({@value #ROUTE_ORDER_CORS_MANAGEMENT}) for the CORS-Origin handler of the management router. | ||
*/ | ||
public static final int ROUTE_ORDER_CORS_MANAGEMENT = Integer.MIN_VALUE; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_BODY_HANDLER}) for the body handler. | ||
* Order value ({@value #ROUTE_ORDER_BODY_HANDLER}) for the body handler. | ||
*/ | ||
public static final int ROUTE_ORDER_BODY_HANDLER = Integer.MIN_VALUE + 1; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_UPLOAD_LIMIT}) for the route that enforces the upload body size limit. | ||
* Order value ({@value #ROUTE_ORDER_UPLOAD_LIMIT}) for the route that enforces the upload body size limit. | ||
*/ | ||
public static final int ROUTE_ORDER_UPLOAD_LIMIT = -2; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_COMPRESSION}) for the compression handler. | ||
* Order value ({@value #ROUTE_ORDER_COMPRESSION}) for the compression handler. | ||
*/ | ||
public static final int ROUTE_ORDER_COMPRESSION = 0; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_BEFORE_DEFAULT_MARK}) for route with priority over the default route (add an offset from | ||
* this mark) | ||
* Order value ({@value #ROUTE_ORDER_BEFORE_DEFAULT}) for route with priority over the default route (add an offset from | ||
* this value) | ||
*/ | ||
public static final int ROUTE_ORDER_BEFORE_DEFAULT_MARK = 1_000; | ||
public static final int ROUTE_ORDER_BEFORE_DEFAULT = 1_000; | ||
/** | ||
* Default route order (i.e. Static Resources, Servlet): ({@value #ROUTE_ORDER_DEFAULT}) | ||
*/ | ||
public static final int ROUTE_ORDER_DEFAULT = 10_000; | ||
/** | ||
* Order mark ({@value #ROUTE_ORDER_AFTER_DEFAULT_MARK}) for route without priority over the default route (add an offset | ||
* from this mark) | ||
* Order value ({@value #ROUTE_ORDER_AFTER_DEFAULT}) for route without priority over the default route (add an offset | ||
* from this value) | ||
*/ | ||
public static final int ROUTE_ORDER_AFTER_DEFAULT_MARK = 20_000; | ||
public static final int ROUTE_ORDER_AFTER_DEFAULT = 20_000; | ||
} |