Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » coyote » http11 » [javadoc | source]
org.apache.coyote.http11
public class: FileTester [javadoc | source]
java.lang.Object
   org.apache.coyote.http11.FileTester
File tester.

This tester is initialized with an adapter (it will use the HTTP/1.1 processor), and will then accept an input file (which will contain the input data), and an output file, to which the result of the request(s) will be written.

Field Summary
protected  File inputFile    File containing the input data. 
protected  File outputFile    File containing the output data. 
protected  Adapter adapter    Coyote adapter to use. 
protected  Processor processor    Coyote processor to use. 
Constructor:
 public FileTester(Adapter adapter,
    Processor processor,
    File inputFile,
    File outputFile) 
    Construct a new file tester using the two files specified. The contents of the output file will be overwritten when the test is run.
    Parameters:
    adapter - Coyote adapter to use for this test
    processor - Coyote processor to use for this test
    inputFile - File containing the HTTP requests in plain text
    outputFile - File containing the HTTP responses
Method from org.apache.coyote.http11.FileTester Summary:
main,   test
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.coyote.http11.FileTester Detail:
 public static  void main(String[] args) throws Exception 
    Utility main method, which will use the HTTP/1.1 processor with the test adapter.
 public  void test() throws Exception 
    Process the test.