Class ServletAddingUtil


  • public class ServletAddingUtil
    extends Object
    Utility to help with figuring out whether should do a redirect because a servlet was added or not. After request in finally block call exitPotentialRedirect(). Before firing beforeRequest event on request listeners check if shouldRedirect() is true, if yes then that means a servlet was added and we should do a redirect. If during reload a servlet was added call servletAdded() For an example see ServletInitialHandlerCBP.java and UndertowDeploymentProcessorCBP.java
    • Constructor Detail

      • ServletAddingUtil

        public ServletAddingUtil()
    • Method Detail

      • servletAdded

        public static void servletAdded()
      • exitPotentialRedirect

        public static void exitPotentialRedirect()
      • shouldRedirect

        public static boolean shouldRedirect()