com.atlassian.jira.web.filters.accesslog
Class AccessLogRequestInfo

java.lang.Object
  extended by 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 Summary
static AtomicLong concurrentRequests
          This atomic long gauge goes up and down for every request that hits JIRA
static String JIRA_REQUEST_ASESSIONID
          This constant is used to indicate the ASESSIONID
static String JIRA_REQUEST_ID
          This constant is used to indicate the request id
static String JIRA_REQUEST_START_MILLIS
          This constant is used to indicate the start time of the request
static String JIRA_REQUEST_TIME_MICROS
          This constant is used to indicate the time the request took in microseconds
static String JIRA_REQUEST_USER_NAME
          This constant is used by the SOAP code to place the SOAP username into the request
static String JIRA_RPC_SOAP_SESSIONID
          This constant is used by the SOAP code to place the SOAP session id into the request
static String JIRA_RPC_SOAP_URLSUFFIX
          This constant is used by the SOAP code to place the SOAP method url suffix into the request
static String JIRA_RPC_SOAP_USERNAME
          This constant is used by the SOAP code to place the SOAP username into the request
static AtomicLong requestCounter
          This atomic long counter increments for every new request that hits JIRA
static String X_ASESSIONID_HEADER
           
static String X_REQUESTID_HEADER
           
 
Constructor Summary
AccessLogRequestInfo()
           
 
Method Summary
 void enterRequest(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          Called to generate a request id and atlassian session id for the given request.
 void exitRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
          This is called to exit the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JIRA_RPC_SOAP_USERNAME

public static final String JIRA_RPC_SOAP_USERNAME
This constant is used by the SOAP code to place the SOAP username into the request

See Also:
Constant Field Values

JIRA_RPC_SOAP_URLSUFFIX

public static final String JIRA_RPC_SOAP_URLSUFFIX
This constant is used by the SOAP code to place the SOAP method url suffix into the request

See Also:
Constant Field Values

JIRA_RPC_SOAP_SESSIONID

public static final String JIRA_RPC_SOAP_SESSIONID
This constant is used by the SOAP code to place the SOAP session id into the request

See Also:
Constant Field Values

JIRA_REQUEST_USER_NAME

public static final String JIRA_REQUEST_USER_NAME
This constant is used by the SOAP code to place the SOAP username into the request

See Also:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

JIRA_REQUEST_ID

public static final String JIRA_REQUEST_ID
This constant is used to indicate the request id

See Also:
Constant Field Values

JIRA_REQUEST_ASESSIONID

public static final String JIRA_REQUEST_ASESSIONID
This constant is used to indicate the ASESSIONID

See Also:
Constant Field Values

X_ASESSIONID_HEADER

public static final String X_ASESSIONID_HEADER
See Also:
Constant Field Values

X_REQUESTID_HEADER

public static final String X_REQUESTID_HEADER
See Also:
Constant Field Values

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

Constructor Detail

AccessLogRequestInfo

public AccessLogRequestInfo()
Method Detail

enterRequest

public void enterRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
                         javax.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(javax.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


Copyright © 2002-2010 Atlassian. All Rights Reserved.