| career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

// $Header: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/util/accesslog/,v 1.5 2004/02/13 03:46:14 sebb Exp $
 * Copyright 2003-2004 The Apache Software Foundation.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.

package org.apache.jmeter.protocol.http.util.accesslog;

 * Description:
* Filter interface is designed to make it easier * to use Access Logs for JMeter test plans. * Normally, a person would have to clean a log * file manually and create the JMeter requests. * The access log parse utility uses the filter * to include/exclude files by either file name * or regular expression pattern.

* It will also be used by HttpSamplers that use * access logs. Using access logs is intended as * a way to simulate production traffic. For * functional testing, it is better to use the * standard functional testing tools in JMeter. * Using access logs can also reduce the amount * of memory needed to run large test plans. *
* @author Peter Lin
* @version $Revision: 1.5 $ last updated $Date: 2004/02/13 03:46:14 $ * Created on: Jun 26, 2003
*/ public interface Filter { /** * @param oldextension * @param newextension */ public void setReplaceExtension(String oldextension, String newextension); /** * Include all files in the array. * @param filenames */ public void includeFiles(String[] filenames); /** * Exclude all files in the array * @param filenames */ public void excludeFiles(String[] filenames); /** * Include any log entry that contains * the following regular expression * pattern. * @param regexp */ public void includePattern(String[] regexp); /** * Exclude any log entry that contains * the following regular expression * pattern. * @param regexp */ public void excludePattern(String[] regexp); /** * Log parser will call this method to * see if a particular entry should be * filtered or not. * @param path * @return boolean */ public boolean isFiltered(String path); /** * In case the user wants to replace * the file extension, log parsers * should call this method. This is * useful for regression test plans. * If a website is migrating from one * platform to another and the file * extension changes, the filter * provides an easy way to do it * without spending a lot of time. * @param text * @return String */ public String filter(String text); }

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.