Class AccessLogRequestInfo
java.lang.Object
com.atlassian.jira.web.filters.accesslog.AccessLogRequestInfo
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final AtomicLongThis atomic long gauge goes up and down for every request that hits JIRAstatic final StringThis constant is used to indicate the ASESSIONIDstatic final StringThis constant is used to indicate the request idstatic final StringThis constant is used to indicate the start time of the requeststatic final StringThis constant is used to indicate the time the request took in microsecondsstatic final StringThis constant is used to place username into the requeststatic final StringThis constant is used to indicate the last access time of the sessionstatic final StringThis constant is used to indicate the max inactive time for the current session configurationstatic final Stringstatic final Stringstatic final AtomicLongThis atomic long counter increments for every new request that hits JIRAstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenterRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) Called to generate a request id and atlassian session id for the given request.voidexitRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest) This is called to exit the request.
-
Field Details
-
JIRA_REQUEST_USER_NAME
This constant is used to place username into the request- See Also:
-
JIRA_REQUEST_START_MILLIS
This constant is used to indicate the start time of the request- See Also:
-
JIRA_REQUEST_TIME_MICROS
This constant is used to indicate the time the request took in microseconds- See Also:
-
JIRA_REQUEST_ID
This constant is used to indicate the request id- See Also:
-
JIRA_REQUEST_ASESSIONID
This constant is used to indicate the ASESSIONID- See Also:
-
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
This constant is used to indicate the max inactive time for the current session configuration- See Also:
-
X_ASESSIONID_HEADER
- See Also:
-
X_REQUESTID_HEADER
- See Also:
-
X_NODEID_HEADER
- See Also:
-
X_USER_NAME_HEADER
- See Also:
-
requestCounter
This atomic long counter increments for every new request that hits JIRA -
concurrentRequests
This atomic long gauge goes up and down for every request that hits JIRA -
OS_PASSWORD
- See Also:
-
OS_PASSWORD_SANITIZED
- See Also:
-
SANITIZED_QUERY
- See Also:
-
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 playhttpServletResponse- 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
-