Class Redirect
java.lang.Object
ch.tocco.nice2.dms.api.publish.Redirect
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidRedirect with 302 - Found (302 - Moved temporarily).static voidmovedPermanently(jakarta.servlet.http.HttpServletResponse response, String location) Redirect with 301 - Moved permanently.static voidSend a redirect.
-
Method Details
-
found
Redirect with 302 - Found (302 - Moved temporarily).- Parameters:
response- A HttpServletResponse.location- The new location to redirect to.
-
movedPermanently
public static void movedPermanently(jakarta.servlet.http.HttpServletResponse response, String location) Redirect with 301 - Moved permanently.- Parameters:
response- A HttpServletResponse.location- The new location to redirect to.
-
redirect
public static void redirect(int statusCode, jakarta.servlet.http.HttpServletResponse response, String location) Send a redirect.- Parameters:
statusCode- The status code.response- A HttpServletResponse.location- The new location to redirect to.
-