Class Redirect

    • Constructor Detail

      • Redirect

        public Redirect​(String location)
        Create an HTTP 302 Found response with the specified value for the Location header
        Parameters:
        location - URL to set for the Location header
      • Redirect

        public Redirect​(String message,
                        String location)
        Create an HTTP 302 Found response with the specified value for the Location header
        Parameters:
        message - exception message to set
        location - URL to set for the Location header