KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tester > unshared > UnsharedSessionBean


1 /*
2  * Copyright 1999, 2000 ,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
17 package org.apache.tester.unshared;
18
19
20 import java.io.Serializable JavaDoc;
21 import javax.servlet.http.HttpSessionActivationListener JavaDoc;
22 import javax.servlet.http.HttpSessionBindingEvent JavaDoc;
23 import javax.servlet.http.HttpSessionBindingListener JavaDoc;
24 import javax.servlet.http.HttpSessionEvent JavaDoc;
25 import org.apache.tester.SessionBean;
26
27
28 /**
29  * Simple JavaBean to use for session attribute tests. It is Serializable
30  * so that instances can be saved and restored across server restarts.
31  * <p>
32  * This bean is functionally equivalent to
33  * <code>org.apache.tester.SessionBean</code>, but will be deployed under
34  * <code>/WEB-INF/classes</code> instead of inside
35  * <code>/WEB-INF/lib/tester.jar</code>.
36  *
37  * @author Craig R. McClanahan
38  * @version $Revision: 1.2 $ $Date: 2004/02/27 14:59:01 $
39  */

40
41 public class UnsharedSessionBean extends SessionBean implements
42     HttpSessionActivationListener JavaDoc, HttpSessionBindingListener JavaDoc, Serializable JavaDoc {
43
44
45     /**
46      * Return a string representation of this bean.
47      */

48     public String JavaDoc toString() {
49
50         StringBuffer JavaDoc sb = new StringBuffer JavaDoc("UnsharedSessionBean[lifecycle=");
51         sb.append(this.lifecycle);
52         sb.append(",stringProperty=");
53         sb.append(this.stringProperty);
54         sb.append("]");
55         return (sb.toString());
56
57     }
58
59
60 }
61
62
Popular Tags