Class Redirector


  • public class Redirector
    extends Object
    Helper class to perform redirects and forwards which can also be made aware of the Hawtio context path configured for Spring Boot
    • Constructor Detail

      • Redirector

        public Redirector()
    • Method Detail

      • doRedirect

        public void doRedirect​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               String path)
                        throws IOException
        Throws:
        IOException
      • doForward

        public void doForward​(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              String path)
                       throws javax.servlet.ServletException,
                              IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • setApplicationContextPath

        public void setApplicationContextPath​(String applicationContextPath)