Package io.quarkus.vertx.http.runtime
Class RoutingUtils
java.lang.Object
io.quarkus.vertx.http.runtime.RoutingUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcompressIfNeeded(VertxHttpBuildTimeConfig config, Set<String> compressMediaTypes, io.vertx.ext.web.RoutingContext ctx, String path) Enabled compression by removing CONTENT_ENCODING header as specified in Vert.x when the media-type should be compressed and config enable compression.static StringgetNormalizedAndDecodedPath(io.vertx.ext.web.RoutingContext ctx) Get the normalized and decoded path: - normalize based on RFC3986 - convert % encoded characters to their non encoded form (usingURIDecoder.decodeURIComponent(java.lang.String)) - invalid if the path contains '?' (query section of the path)static StringresolvePath(io.vertx.ext.web.RoutingContext ctx) Normalize and decode the path then strip the mount point from it
-
Method Details
-
getNormalizedAndDecodedPath
Get the normalized and decoded path: - normalize based on RFC3986 - convert % encoded characters to their non encoded form (usingURIDecoder.decodeURIComponent(java.lang.String)) - invalid if the path contains '?' (query section of the path)- Parameters:
ctx- the RoutingContext- Returns:
- the normalized and decoded path or null if not valid
-
resolvePath
Normalize and decode the path then strip the mount point from it- Parameters:
ctx- the RoutingContext- Returns:
- the normalized and decoded path without the mount point or null if not valid
-
compressIfNeeded
public static void compressIfNeeded(VertxHttpBuildTimeConfig config, Set<String> compressMediaTypes, io.vertx.ext.web.RoutingContext ctx, String path) Enabled compression by removing CONTENT_ENCODING header as specified in Vert.x when the media-type should be compressed and config enable compression.- Parameters:
config-compressMediaTypes-ctx-path-
-