Class RequestHashGenerator


  • public class RequestHashGenerator
    extends java.lang.Object
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • RequestHashGenerator

        public RequestHashGenerator()
    • 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