Examples of ClickstreamSession


Examples of org.hoteia.qalingo.core.web.bean.clickstream.ClickstreamSession

    /**
     *
     */
    public ClickstreamSession getClickstreamSession(final HttpServletRequest request) throws Exception {
        ClickstreamSession clickstream = (ClickstreamSession) request.getSession().getAttribute(Constants.ENGINE_CLICKSTREAM);
        if(clickstream == null){
            clickstream = new ClickstreamSession();
            clickstream.setInitialReferrer(request.getHeader("REFERER"));
        }
        return clickstream;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.web.bean.clickstream.ClickstreamSession

   
    /**
     *
     */
    public void addClickstream(final HttpServletRequest request) throws Exception {
        ClickstreamSession clickstream = getClickstreamSession(request);
        Date lastRequest = new Date();
        clickstream.setLastRequest(lastRequest);
        clickstream.setHostname(request.getRemoteHost());
       
        clickstream.getRequests().add(new ClickstreamRequest(request, lastRequest));

        request.getSession().setAttribute(Constants.ENGINE_CLICKSTREAM, clickstream);
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.web.bean.clickstream.ClickstreamSession

    /**
     *
     */
    public String getLastProductDetailsRequestUrl(final HttpServletRequest request) throws Exception {
        String url = Constants.EMPTY;
        ClickstreamSession clickstreamSession = getClickstreamSession(request);
        final List<ClickstreamRequest> clickstreams = clickstreamSession.getRequests();
        if (clickstreams != null && !clickstreams.isEmpty()) {
            Iterator<ClickstreamRequest> it = clickstreams.iterator();
            while (it.hasNext()) {
                ClickstreamRequest clickstream = (ClickstreamRequest) it.next();
                String uri = clickstream.getRequestURI();
View Full Code Here

Examples of org.hoteia.qalingo.core.web.bean.clickstream.ClickstreamSession

    /**
     *
     */
    public String getRequestUrl(final HttpServletRequest request, final List<String> excludedPatterns, int position) throws Exception {
        String url = Constants.EMPTY;
        ClickstreamSession clickstreamSession = getClickstreamSession(request);
       
        final List<ClickstreamRequest> clickstreams = clickstreamSession.getRequests();

        if (clickstreams != null && !clickstreams.isEmpty()) {
            // Clean not html values or exluded patterns
            List<ClickstreamRequest> cleanClickstreams = new ArrayList<ClickstreamRequest>();
            Iterator<ClickstreamRequest> it = clickstreams.iterator();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.