All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.basjes.parse.OmnitureLogLineParser Maven / Gradle / Ivy

/*
 * Apache HTTPD logparsing made easy
 * Copyright (C) 2013 Niels Basjes
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */

package nl.basjes.parse;

import java.text.ParseException;

import nl.basjes.parse.apachehttpdlog.ApacheHttpdLoglineParser;
import nl.basjes.parse.http.disectors.QueryStringFieldDisector;

public class OmnitureLogLineParser extends ApacheHttpdLoglineParser {

    public OmnitureLogLineParser(Class clazz, String logformat)
        throws ParseException {
        super(clazz, logformat);
    }

    @Override
    public void addDisectors() {
        super.addDisectors();
        // We must drop this one or we will have conflicts
        dropDisector(QueryStringFieldDisector.class);
        addDisector(new OmnitureQueryStringFieldDisector());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy