Class Redirector


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

      Constructors 
      Constructor Description
      Redirector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doForward​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path)  
      void doRedirect​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path)  
      void setApplicationContextPath​(java.lang.String applicationContextPath)  
      • Methods inherited from class java.lang.Object

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

      • HAWTIO_REDIRECT_SCHEME

        public static final java.lang.String HAWTIO_REDIRECT_SCHEME
        See Also:
        Constant Field Values
    • Constructor Detail

      • Redirector

        public Redirector()
    • Method Detail

      • doRedirect

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

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

        public void setApplicationContextPath​(java.lang.String applicationContextPath)