Code Search for Developers
 
 
  

RobotIdentifierEnhancer.java from Tea Stats at Krugle


Show RobotIdentifierEnhancer.java syntax highlighted

/*
 * This file is distributed under the GPL v2 as part of teastats site statistics package
 * http://teastats.sourceforge.net
 */
package net.time4tea.webstats.enhancer.identify;

import net.time4tea.webstats.identify.Identified;
import net.time4tea.webstats.identify.RobotIdentifier;
import net.time4tea.webstats.record.ObjectAttribute;
import net.time4tea.webstats.session.Session;

/**
 * Originally richja Apr 1, 2006
 */
public class RobotIdentifierEnhancer extends AbstractCacheableEnhancer {

    public RobotIdentifierEnhancer() {
        identifier = new RobotIdentifier();
    }


    public ObjectAttribute getValue(Identified robot) {
        return new ObjectAttribute("robot", robot);
    }

    public String getKey(Session record) {
        return record.entryPage().getUserAgent();
    }
}




See more files for this project here

Tea Stats

Web log analyzer... Written in OO Perl, provides the usual host / page analysis. Can also do site graphing using graphviz, browser, os, worm and search engine identification, and country and session tracking.

Project homepage: http://sourceforge.net/projects/teastats
Programming language(s): Java
License: other

  AbstractCacheableEnhancer.java
  BrowserIdentifierEnhancer.java
  CacheableEnhancer.java
  CachingIdentifierEnhancer.java
  OSIdentifierEnhancer.java
  RobotIdentifierEnhancer.java
  SearchEngineIdentifierEnhancer.java
  WormIdentifierEnhancer.java