Package io.hawt.web.auth
Class Redirector
- java.lang.Object
-
- io.hawt.web.auth.Redirector
-
public class Redirector extends java.lang.ObjectHelper 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 java.lang.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, java.lang.String path)voiddoRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path)voidsetApplicationContextPath(java.lang.String applicationContextPath)
-
-
-
Field Detail
-
HAWTIO_REDIRECT_SCHEME
public static final java.lang.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, 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.ServletExceptionjava.io.IOException
-
setApplicationContextPath
public void setApplicationContextPath(java.lang.String applicationContextPath)
-
-