Package com.dotmarketing.beans

Examples of com.dotmarketing.beans.Clickstream404


      clickstreamEnabled = true;

    }

    if(clickstreamEnabled){
      Clickstream404 clickstream404 = new Clickstream404();
      clickstream404.setRefererURI(request.getHeader("Referer"));
      String uri = (String)request.getAttribute("javax.servlet.forward.request_uri");
      String queryString = (String)request.getAttribute("javax.servlet.forward.query_string");
      if(request.getAttribute(WebKeys.CLICKSTREAM_URI_OVERRIDE) != null){
        uri = (String) request.getAttribute(WebKeys.CLICKSTREAM_URI_OVERRIDE);
      }
      clickstream404.setRequestURI(uri);
      clickstream404.setQueryString(queryString);

      clickstream404.setHostId(host.getIdentifier());
      Clickstream clickstream = (Clickstream) request.getSession().getAttribute("clickstream");
      if(clickstream==null){
        clickstream = addRequest(request, response, host);
      }
      if (user != null && clickstream.getUserId() == null) {
        clickstream404.setUserId(user.getUserId());
      }
      clickstream404.setTimestamp(clickstream.getLastRequest());
      clickstream.addClickstream404(clickstream404);
    }

  }
View Full Code Here

TOP

Related Classes of com.dotmarketing.beans.Clickstream404

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.