Package ch.tocco.nice2.dms.api.publish
Class Redirect
java.lang.Object
ch.tocco.nice2.dms.api.publish.Redirect
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Redirect with 302 - Found (302 - Moved temporarily).static void
movedPermanently
(jakarta.servlet.http.HttpServletResponse response, String location) Redirect with 301 - Moved permanently.static void
Send 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.
-