KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > web > talk > plugin > ReplaceSessionAction


1 /*
2  * ChangeSessionAction.java
3  *
4  * Created on April 13, 2002, 4:41 PM
5  */

6
7 package com.quikj.application.web.talk.plugin;
8
9 /**
10  *
11  * @author amit
12  */

13 public class ReplaceSessionAction implements EndPointActionInterface
14 {
15     private long newSessionId;
16     private long oldSessionId;
17     private String JavaDoc newKey = null;
18     
19     /** Creates a new instance of ChangeSessionAction */
20     public ReplaceSessionAction(long old_session_id, long new_session_id)
21     {
22         oldSessionId = old_session_id;
23         newSessionId = new_session_id;
24     }
25     
26     /** Getter for property newSessionId.
27      * @return Value of property newSessionId.
28      */

29     public long getNewSessionId()
30     {
31         return newSessionId;
32     }
33     
34     /** Setter for property newSessionId.
35      * @param newSessionId New value of property newSessionId.
36      */

37     public void setNewSessionId(long newSessionId)
38     {
39         this.newSessionId = newSessionId;
40     }
41     
42     /** Getter for property oldSessionId.
43      * @return Value of property oldSessionId.
44      */

45     public long getOldSessionId()
46     {
47         return oldSessionId;
48     }
49     
50     /** Setter for property oldSessionId.
51      * @param oldSessionId New value of property oldSessionId.
52      */

53     public void setOldSessionId(long oldSessionId)
54     {
55         this.oldSessionId = oldSessionId;
56     }
57     
58     /** Getter for property key.
59      * @return Value of property key.
60      */

61     public java.lang.String JavaDoc getNewKey()
62     {
63         return newKey;
64     }
65     
66     /** Setter for property key.
67      * @param key New value of property key.
68      */

69     public void setNewKey(java.lang.String JavaDoc newKey)
70     {
71         this.newKey = newKey;
72     }
73     
74 }
75
Popular Tags