public class WebAnalyticsTransformer extends Object implements org.apache.commons.collections.Transformer
Modifier and Type | Field and Description |
---|---|
static int |
IS_NEW_SESSION
In the result stats array the index of boolean value; if the session is new
|
static int |
IS_NEW_USER_AGENT
In the result stats array the index of boolean value; if the user-agent is new
|
static int |
IS_WEB_REQUEST
In the result stats array the index of boolean value; if the request is a web one.
|
protected String |
tokenId
The identifier key, for the session or cookie to keep track of all this.
By default its the name of the class, ... |
Constructor and Description |
---|
WebAnalyticsTransformer() |
Modifier and Type | Method and Description |
---|---|
protected Boolean |
checkNewSession(javax.servlet.http.HttpServletRequest req) |
protected Boolean |
checkNewUserAgent(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected javax.servlet.http.Cookie |
getCookie(javax.servlet.http.HttpServletRequest req) |
protected javax.servlet.http.Cookie |
setCookie(javax.servlet.http.Cookie currentCookie,
javax.servlet.http.HttpServletResponse resp) |
Object |
transform(Object input) |
protected String tokenId
public static final int IS_WEB_REQUEST
public static final int IS_NEW_SESSION
public static final int IS_NEW_USER_AGENT
protected Boolean checkNewSession(javax.servlet.http.HttpServletRequest req)
protected javax.servlet.http.Cookie getCookie(javax.servlet.http.HttpServletRequest req)
protected Boolean checkNewUserAgent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected javax.servlet.http.Cookie setCookie(javax.servlet.http.Cookie currentCookie, javax.servlet.http.HttpServletResponse resp)
currentCookie
- as Cookie
, @nullable true, if no cookie currently existsresp
- as HttpServletResponse
Copyright © 2018. All rights reserved.