public class

AccessLogRequestInfo

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

Class Overview

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

Summary

Constants
String JIRA_REQUEST_ASESSIONID This constant is used to indicate the ASESSIONID
String JIRA_REQUEST_ID This constant is used to indicate the request id
String JIRA_REQUEST_START_MILLIS This constant is used to indicate the start time of the request
String JIRA_REQUEST_TIME_MICROS This constant is used to indicate the time the request took in microseconds
String JIRA_REQUEST_USER_NAME This constant is used to place username into the request
String JIRA_SESSION_LAST_ACCESSED_TIME This constant is used to indicate the last access time of the session
String JIRA_SESSION_MAX_INACTIVE_INTERVAL This constant is used to indicate the max inactive time for the current session configuration
String X_ASESSIONID_HEADER
String X_NODEID_HEADER
String X_REQUESTID_HEADER
String X_USER_NAME_HEADER
Fields
public static final AtomicLong concurrentRequests This atomic long gauge goes up and down for every request that hits JIRA
public static final AtomicLong requestCounter This atomic long counter increments for every new request that hits JIRA
Public Constructors
AccessLogRequestInfo()
Public Methods
void enterRequest(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
Called to generate a request id and atlassian session id for the given request.
void exitRequest(HttpServletRequest httpServletRequest)
This is called to exit the request.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String JIRA_REQUEST_ASESSIONID

This constant is used to indicate the ASESSIONID

Constant Value: "jira.request.assession.id"

public static final String JIRA_REQUEST_ID

This constant is used to indicate the request id

Constant Value: "jira.request.id"

public static final String JIRA_REQUEST_START_MILLIS

This constant is used to indicate the start time of the request

Constant Value: "jira.request.start.millis"

public static final String JIRA_REQUEST_TIME_MICROS

This constant is used to indicate the time the request took in microseconds

Constant Value: "jira.request.time.micros"

public static final String JIRA_REQUEST_USER_NAME

This constant is used to place username into the request

Constant Value: "jira.request.username"

public static final String JIRA_SESSION_LAST_ACCESSED_TIME

This constant is used to indicate the last access time of the session

Constant Value: "jira.session.last.accessed.time"

public static final String JIRA_SESSION_MAX_INACTIVE_INTERVAL

This constant is used to indicate the max inactive time for the current session configuration

Constant Value: "jira.session.max.inactive.interval"

public static final String X_ASESSIONID_HEADER

Constant Value: "X-ASESSIONID"

public static final String X_NODEID_HEADER

Constant Value: "X-ANODEID"

public static final String X_REQUESTID_HEADER

Constant Value: "X-AREQUESTID"

public static final String X_USER_NAME_HEADER

Constant Value: "X-AUSERNAME"

Fields

public static final AtomicLong concurrentRequests

This atomic long gauge goes up and down for every request that hits JIRA

public static final AtomicLong requestCounter

This atomic long counter increments for every new request that hits JIRA

Public Constructors

public AccessLogRequestInfo ()

Public Methods

public void enterRequest (HttpServletRequest httpServletRequest, 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

public void exitRequest (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