Class AccessLogRequestInfo

java.lang.Object
com.atlassian.jira.web.filters.accesslog.AccessLogRequestInfo

public class AccessLogRequestInfo extends Object
AccessLogRequestInfo is used to place request information into the HTTP request itself and to keep count of the number of requests coming into and out of JIRA
Since:
v4.1
  • Field Details

    • JIRA_REQUEST_USER_NAME

      public static final String JIRA_REQUEST_USER_NAME
      This constant is used to place username into the request
      See Also:
    • JIRA_REQUEST_START_MILLIS

      public static final String JIRA_REQUEST_START_MILLIS
      This constant is used to indicate the start time of the request
      See Also:
    • JIRA_REQUEST_TIME_MICROS

      public static final String JIRA_REQUEST_TIME_MICROS
      This constant is used to indicate the time the request took in microseconds
      See Also:
    • JIRA_REQUEST_ID

      public static final String JIRA_REQUEST_ID
      This constant is used to indicate the request id
      See Also:
    • JIRA_REQUEST_ASESSIONID

      public static final String JIRA_REQUEST_ASESSIONID
      This constant is used to indicate the ASESSIONID
      See Also:
    • JIRA_SESSION_LAST_ACCESSED_TIME

      public static final String JIRA_SESSION_LAST_ACCESSED_TIME
      This constant is used to indicate the last access time of the session
      See Also:
    • JIRA_SESSION_MAX_INACTIVE_INTERVAL

      public static final String JIRA_SESSION_MAX_INACTIVE_INTERVAL
      This constant is used to indicate the max inactive time for the current session configuration
      See Also:
    • X_ASESSIONID_HEADER

      public static final String X_ASESSIONID_HEADER
      See Also:
    • X_REQUESTID_HEADER

      public static final String X_REQUESTID_HEADER
      See Also:
    • X_NODEID_HEADER

      public static final String X_NODEID_HEADER
      See Also:
    • X_USER_NAME_HEADER

      public static final String X_USER_NAME_HEADER
      See Also:
    • requestCounter

      public static final AtomicLong requestCounter
      This atomic long counter increments for every new request that hits JIRA
    • concurrentRequests

      public static final AtomicLong concurrentRequests
      This atomic long gauge goes up and down for every request that hits JIRA
    • OS_PASSWORD

      public static final String OS_PASSWORD
      See Also:
    • OS_PASSWORD_SANITIZED

      public static final String OS_PASSWORD_SANITIZED
      See Also:
    • SANITIZED_QUERY

      public static final String SANITIZED_QUERY
      See Also:
    • SANITIZED_REFERER

      public static final String SANITIZED_REFERER
      See Also:
  • Constructor Details

    • AccessLogRequestInfo

      public AccessLogRequestInfo()
  • Method Details

    • enterRequest

      public void enterRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
      Called to generate a request id and atlassian session id for the given request. This can be called multiple times and it it will only set the information in once per request.
      Parameters:
      httpServletRequest - the HTTP request in play
      httpServletResponse - the HTTP response for setting the headers into
    • exitRequest

      public void exitRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest)
      This is called to exit the request. It will decrement the number of concurrent requests in play assuming it has not bee called before for this request
      Parameters:
      httpServletRequest - the HTTP request in play