tests/utils/monitor/org/apache/test/MockServer.java
/**
     * This method closes the current response file and opens up a new one
     * @param responseFileName
     */
This method closes the current response file and opens up a new one
@param responseFileName
This method closes the current response file and opens up a new one @param responseFileName
protected void reset(String responseFileName, boolean loopOnResponses) throws IOException
    {
        super.close();
        children = new Vector();
        this.responseFileName = responseFileName;
        this.loopOnResponses = loopOnResponses;
        responseFile=new File(responseFileName);
        if (!this.responseFile.canRead( ))
        {
            throw new IOException("Can't read the response file <" +responseFile+">");
        }
        MockServerThread.cacheResponseFile(responseFile, loopOnResponses);
    }
protected void reset ( String responseFileName , boolean loopOnResponses ) throws IOException { super . close ( ) ; children = new Vector ( ) ; this . responseFileName = responseFileName ; this . loopOnResponses = loopOnResponses ; responseFile = new File ( responseFileName ) ; if ( ! this . responseFile . canRead ( ) ) { throw new IOException ( "Can't read the response file <" + responseFile + ">" ) ; } MockServerThread . cacheResponseFile ( responseFile , loopOnResponses ) ; }
This method closes the current response file and opens up a new one
 @param responseFileName
This method closes the current response file and opens up a new one @param responseFileName
// close all the connections we got from the client // unfortunately super.close is an unnatural act so we'll have to recreate the children vector // deal with the responsefile first // check the responsefile is there // now deal with the port and threads // cache the response file (this is a necessary optimisation - if the file is big then the connection blows)