private boolean acceptsHttpGet(Method method) { if (method.isAnnotationPresent(Get.class)) { return true; } for (HttpMethod httpMethod : HttpMethod.values()) { if (method.isAnnotationPresent(httpMethod.getAnnotation())) { return false; } } return true; }
private void tryMovePermanentlyTo(RequestInfo requestInfo, String newUri) { router.parse(newUri, HttpMethod.of(requestInfo.getRequest()), requestInfo.getRequest()); result.permanentlyRedirectTo(newUri); }