Browse Source

FileLfsServlet: Make sendError protected

Change-Id: Id89b3cd0da86a535946feb15254737bbf8d855d4
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-4.6
David Pursehouse 8 years ago
parent
commit
f5a40c26ac
  1. 14
      org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/FileLfsServlet.java

14
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/FileLfsServlet.java

@ -173,7 +173,19 @@ public class FileLfsServlet extends HttpServlet {
}
}
static void sendError(HttpServletResponse rsp, int status, String message)
/**
* Send an error response.
*
* @param rsp
* the servlet response
* @param status
* HTTP status code
* @param message
* error message
* @throws IOException
* on failure to send the response
*/
protected static void sendError(HttpServletResponse rsp, int status, String message)
throws IOException {
rsp.setStatus(status);
PrintWriter writer = rsp.getWriter();

Loading…
Cancel
Save