KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > tools > testrecorder > server > state > RecordSession


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18
19 package org.apache.beehive.netui.tools.testrecorder.server.state;
20
21 import org.apache.beehive.netui.tools.testrecorder.shared.RequestData;
22 import org.apache.beehive.netui.tools.testrecorder.shared.ResponseData;
23
24 import java.io.File JavaDoc;
25
26
27 /**
28  * User: ozzy
29  * Date: Mar 7, 2003
30  * Time: 12:06:23 PM
31  */

32 public interface RecordSession extends Session {
33
34     /**
35      * @return true if successful starting the test, false if not tests remain, throws
36      * an exception if a failure occurs.
37      * @throws SessionFailedException
38      */

39     boolean startTest() throws SessionFailedException;
40
41     /**
42      * @param request
43      * @param response
44      * @return returns the current test count or throws an exception if it fails.
45      * @throws SessionFailedException
46      */

47     int endTest( RequestData request, ResponseData response )
48             throws SessionFailedException;
49
50     File JavaDoc getRecordFile();
51
52 }
53
Popular Tags