Interface UploadPackErrorHandler

    • Method Detail

      • statusCodeForThrowable

        static int statusCodeForThrowable​(Throwable error)
        Maps a thrown git related Exception to an appropriate HTTP status code.
        Parameters:
        error - The thrown Exception.
        Returns:
        the HTTP status code as an int
        Since:
        6.1.1
      • upload

        void upload​(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse rsp,
                    UploadPackErrorHandler.UploadPackRunnable r)
             throws IOException
        Parameters:
        req - The HTTP request
        rsp - The HTTP response
        r - A continuation that handles a git-upload-pack request.
        Throws:
        IOException