Exemplo n.º 1
0
  @Override
  public FilterCallContext beforeDoFilter(FilterCallContext callContext) {
    final HttpServletRequest httpServletRequest = callContext.getHttpServletRequest();
    final HttpServletResponse httpServletResponse = callContext.getHttpServletResponse();

    //
    // this is the first filter in JIRA and hence the earliest possible moment to set these things
    // up
    ExecutingHttpRequest.set(httpServletRequest, httpServletResponse);
    accessLogRequestInfo.enterRequest(httpServletRequest, httpServletResponse);

    return callContext;
  }
Exemplo n.º 2
0
  @Override
  public FilterCallContext finallyAfterDoFilter(FilterCallContext callContext) {
    ExecutingHttpRequest.clear();
    accessLogRequestInfo.exitRequest(callContext.getHttpServletRequest());

    return callContext;
  }