This commit is contained in:
Michael Jumper
2012-03-24 22:06:15 -07:00
parent 9b36638bf3
commit 36f4d68991

View File

@@ -71,6 +71,15 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
handleTunnelRequest(request, response); handleTunnelRequest(request, response);
} }
/**
* Sends an error on the given HTTP response with the given integer error
* code.
*
* @param response The HTTP response to use to send the error.
* @param code The HTTP status code of the error.
* @throws ServletException If an error prevents sending of the error
* code.
*/
private void sendError(HttpServletResponse response, int code) throws ServletException { private void sendError(HttpServletResponse response, int code) throws ServletException {
try { try {