APISonar


com.saintdan.framework.component.LogHelper.log

> com > saintdan > framework > component > LogHelper > log
com APIs saintdan APIs framework APIs component APIs LogHelper APIs log APIs

Example 1
private final LogHelper logHelper;

  @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response,
      Object handler, Exception ex) {
    if (!(HttpMethod.GET.matches(request.getMethod())
        || HttpMethod.DELETE.matches(request.getMethod()))) {
      String path = request.getRequestURI();
      HttpStatus status = HttpStatus.resolve(response.getStatus());
      if (!path.contains(ResourcePath.OPEN) && status != null && !status.isError()) {
        logHelper.log(HttpMethod.resolve(request.getMethod()), path);
      }
    }
  }