2122232425262728
request.getResponse().addHeader( "Allow", allowedMethods.toString().replaceAll("\\[|\\]", "")); try { request.getResponse().sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED); } catch (IOException e) { throw new InterceptionException(e); } }