-
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.
Merge pull request #35917 from snazy/route-order-constants
- Loading branch information
Showing
7 changed files
with
126 additions
and
46 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
62 changes: 62 additions & 0 deletions
62
...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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package io.quarkus.vertx.http.runtime; | ||
|
||
/** | ||
* 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 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 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 value ({@value #ROUTE_ORDER_HOT_REPLACEMENT}) for the hot-replacement body handler. | ||
*/ | ||
public static final int ROUTE_ORDER_HOT_REPLACEMENT = Integer.MIN_VALUE; | ||
/** | ||
* 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 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 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 value ({@value #ROUTE_ORDER_BODY_HANDLER}) for the body handler. | ||
*/ | ||
public static final int ROUTE_ORDER_BODY_HANDLER = Integer.MIN_VALUE + 1; | ||
/** | ||
* 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 value ({@value #ROUTE_ORDER_COMPRESSION}) for the compression handler. | ||
*/ | ||
public static final int ROUTE_ORDER_COMPRESSION = 0; | ||
/** | ||
* 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 = 1_000; | ||
/** | ||
* Default route order (i.e. Static Resources, Servlet): ({@value #ROUTE_ORDER_DEFAULT}) | ||
*/ | ||
public static final int ROUTE_ORDER_DEFAULT = 10_000; | ||
/** | ||
* 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 = 20_000; | ||
} |
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