Package io.hawt.web.auth
Class Redirector
java.lang.Object
io.hawt.web.auth.Redirector
Helper class to perform redirects and forwards which can also be made aware of the Hawtio context path configured for Spring Boot
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoForward(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) voiddoRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) voidsetApplicationContextPath(String applicationContextPath)
-
Field Details
-
HAWTIO_REDIRECT_SCHEME
- See Also:
-
-
Constructor Details
-
Redirector
public Redirector()
-
-
Method Details
-
doRedirect
public void doRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws IOException - Throws:
IOException
-
doForward
public void doForward(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
setApplicationContextPath
-