Class Redirect

java.lang.Object
ch.tocco.nice2.dms.api.publish.Redirect

public class Redirect extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    found(jakarta.servlet.http.HttpServletResponse response, String location)
    Redirect with 302 - Found (302 - Moved temporarily).
    static void
    movedPermanently(jakarta.servlet.http.HttpServletResponse response, String location)
    Redirect with 301 - Moved permanently.
    static void
    redirect(int statusCode, jakarta.servlet.http.HttpServletResponse response, String location)
    Send a redirect.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • found

      public static void found(jakarta.servlet.http.HttpServletResponse response, String location)
      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.