Class RequestHashGenerator
- java.lang.Object
-
- de.businesscode.bcdui.web.accessLogging.RequestHashGenerator
-
public class RequestHashGenerator extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
X_HTTP_HEADER_PAGE
static java.lang.String
X_HTTP_HEADER_REQUEST
-
Constructor Summary
Constructors Constructor Description RequestHashGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
generateHash(javax.servlet.http.HttpServletRequest request)
static java.lang.String
generatePageHash(javax.servlet.http.HttpServletRequest request)
-
-
-
Field Detail
-
X_HTTP_HEADER_PAGE
public static final java.lang.String X_HTTP_HEADER_PAGE
- See Also:
- Constant Field Values
-
X_HTTP_HEADER_REQUEST
public static final java.lang.String X_HTTP_HEADER_REQUEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateHash
public static java.lang.String generateHash(javax.servlet.http.HttpServletRequest request)
- Parameters:
request
-- Returns:
- a unique (not strictly) number based on hashing a cleaned up referer or a random number
-
generatePageHash
public static java.lang.String generatePageHash(javax.servlet.http.HttpServletRequest request)
- Parameters:
request
-- Returns:
- a unique (not strictly) number based on currentTime and random number
-
-