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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class io.javalin.plugin.Plugin

        name, repeatable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RedirectToLowercasePathPlugin

        RedirectToLowercasePathPlugin()