PageViewPathBuilder.java 853 Bytes
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.day.crx.statistics.Entry
 *  com.day.crx.statistics.PathBuilder
 */
package com.day.cq.wcm.core.stats;

import com.day.cq.wcm.core.stats.PageView;
import com.day.crx.statistics.Entry;
import com.day.crx.statistics.PathBuilder;

public class PageViewPathBuilder
extends PathBuilder {
    public static final String STATS_NAME = ".stats";
    private final String path;

    public PageViewPathBuilder(String path) {
        super("yyyy/MM/dd");
        this.path = path;
    }

    public void formatPath(Entry entry, StringBuffer buffer) {
        PageView pv = (PageView)entry;
        buffer.append(pv.getPathPrefix());
        buffer.append(this.path);
        buffer.append("/").append(".stats").append("/");
        super.formatPath((Entry)pv, buffer);
    }
}