Package io.javalin.plugin.bundled
Class RedirectToLowercasePathPlugin
-
- All Implemented Interfaces:
public class RedirectToLowercasePathPlugin extends Plugin<Void>
This plugin redirects requests with uppercase/mixcase paths to lowercase paths Ex:
/Users/John
->/users/John
(if endpoint is/users/{userId}
) It does not affect the casing of path-params and query-params, only static URL fragments ('Users' becomes 'users' above, but 'John' remains 'John'). When using this plugin, you can only add paths with lowercase URL fragments.
-
-
Constructor Summary
Constructors Constructor Description RedirectToLowercasePathPlugin()
-
Method Summary
Modifier and Type Method Description Unit
onInitialize(JavalinConfig config)
Initialize properties and access configuration before any handler is registered. Unit
onStart(JavalinConfig config)
Called when the plugin is applied to the Javalin instance. PluginPriority
priority()
The priority of the plugin that determines when it should be started. -
-
Method Detail
-
onInitialize
Unit onInitialize(JavalinConfig config)
Initialize properties and access configuration before any handler is registered.
-
onStart
Unit onStart(JavalinConfig config)
Called when the plugin is applied to the Javalin instance.
-
priority
PluginPriority priority()
The priority of the plugin that determines when it should be started.
-
-
-
-