Class Redirect

    • Constructor Detail

      • Redirect

        public Redirect​(URI path)
      • Redirect

        public Redirect​(String path)
        Parameters:
        path - must be a valid URI
    • Method Detail

      • getPath

        public URI getPath()
      • render

        public void render​(jakarta.servlet.http.HttpServletRequest request,
                           jakarta.servlet.http.HttpServletResponse response)
                    throws IOException,
                           jakarta.servlet.ServletException,
                           jakarta.ws.rs.WebApplicationException
        Description copied from interface: Renderable
        Called to do the actual work of rendering a view. Note that while ServletException can be thrown, WebApplicationException is preferred.
        Specified by:
        render in interface Renderable
        Parameters:
        request - http request
        response - http response
        Throws:
        IOException - if I/O error occurred
        jakarta.servlet.ServletException - if servlet error occurred
        jakarta.ws.rs.WebApplicationException - if application error occurred