/** * Throws exception in case of invalid request. * * @param request */ private void validateRequest(final HttpServletRequest request) { if (!isMethodSupported(request.getMethod())) { throw new MethodNotAllowedException(); } }
/** * Throws exception in case of invalid request. * * @param request */ private void validateRequest(final HttpServletRequest request) { if (!isMethodSupported(request.getMethod())) { throw new MethodNotAllowedException(); } }