public class RequestLoggingService extends atg.reporting.datacollection.IdGeneratorLoggingService implements RequestLogging
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
REQUEST_ID_ATTRIBUTE_KEY |
mDataListeners
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
RequestLoggingService()
Constructs an instanceof RequestLoggingService
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxLengthContentName()
Returns property MaxLengthContentName
|
java.lang.Long |
getRequestId(javax.servlet.http.HttpServletRequest pRequest)
Returns the request id associated with this request.
|
long |
getTotalItemCount()
Returns property TotalItemCount
|
boolean |
isEnableContentNameTruncation()
Returns property EnableContentNameTruncation
|
java.lang.Long |
logRequest(java.lang.String pSessionId,
java.lang.String pRequestName,
boolean pMember)
Generates a log entry about a request
|
void |
setEnableContentNameTruncation(boolean pEnableContentNameTruncation)
Sets property EnableContentNameTruncation
|
void |
setMaxLengthContentName(int pMaxLengthContentName)
Sets property MaxLengthContentName
|
void |
setRequestId(java.lang.Long pRequestId,
javax.servlet.http.HttpServletRequest pRequest)
Stores the request id associated with this request.
|
doStartService, getIdBurnFactor, getIdGenerator, getIdSource, getIdSpace, isEnableLogging, nextId, setEnableLogging, setIdBurnFactor, setIdGenerator, setIdSource, setIdSpace
addDataListener, getDataListenerCount, getDataListeners, removeDataListener, sendDataItem
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final java.lang.String REQUEST_ID_ATTRIBUTE_KEY
public RequestLoggingService()
public void setEnableContentNameTruncation(boolean pEnableContentNameTruncation)
public boolean isEnableContentNameTruncation()
public void setMaxLengthContentName(int pMaxLengthContentName)
public int getMaxLengthContentName()
public long getTotalItemCount()
public java.lang.Long logRequest(java.lang.String pSessionId, java.lang.String pRequestName, boolean pMember) throws atg.reporting.datacollection.LoggingException
logRequest
in interface RequestLogging
pSessionId
- the id of the new sessionpRequestName
- the "name" of the request (e.g. the URI of a HTTP Request)pMember
- true if the request is coming from a "member"LoggingException
- if there was a problem while performing the log operationpublic java.lang.Long getRequestId(javax.servlet.http.HttpServletRequest pRequest) throws atg.reporting.datacollection.LoggingException
getRequestId
in interface RequestLogging
pRequest
- the request object associated with the current userLoggingException
- if there was a problem while performing the log operationContentViewedLogging.logContentViewed
public void setRequestId(java.lang.Long pRequestId, javax.servlet.http.HttpServletRequest pRequest) throws atg.reporting.datacollection.LoggingException
setRequestId
in interface RequestLogging
pRequestId
- the request idpRequest
- the request object associated with the current userLoggingException
- if there was a problem while performing the log operationContentViewedLogging.logContentViewed