Package io.hawt.web.auth
Class Redirector
- java.lang.Object
-
- io.hawt.web.auth.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringHAWTIO_REDIRECT_SCHEME
-
Constructor Summary
Constructors Constructor Description Redirector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoForward(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String path)voiddoRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String path)voidsetApplicationContextPath(String applicationContextPath)
-
-
-
Field Detail
-
HAWTIO_REDIRECT_SCHEME
public static final String HAWTIO_REDIRECT_SCHEME
- See Also:
- Constant Field Values
-
-
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.ServletExceptionIOException
-
setApplicationContextPath
public void setApplicationContextPath(String applicationContextPath)
-
-