KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > web > talk > feature > proactive > server > UnregisteredInfo


1 /*
2  * UnregisteredInfo.java
3  *
4  * Created on April 27, 2003, 4:56 AM
5  */

6
7 package com.quikj.application.web.talk.feature.proactive.server;
8
9 import java.util.*;
10 import com.quikj.server.web.*;
11
12 /**
13  *
14  * @author amit
15  */

16 public class UnregisteredInfo
17 {
18     private static final int MAX_HISTORY = 10;
19     
20     /** Holds value of property endPoint. */
21     private HTTPEndPoint endPoint;
22     
23     /** Holds value of property webInfo. */
24     private LinkedList webInfo = new LinkedList();
25     
26     /** Holds value of property ident. */
27     private UnregisteredIdentifier ident;
28     
29     /** Holds value of property helped. */
30     private boolean helped = false;
31     
32     /** Holds value of property lastAccessTime. */
33     private Date lastAccessTime;
34     
35     /** Holds value of property pageCount. */
36     private int pageCount = 0;
37     
38     /** Creates a new instance of UnregisteredInfo */
39     public UnregisteredInfo()
40     {
41     }
42     
43     /** Getter for property endPoint.
44      * @return Value of property endPoint.
45      *
46      */

47     public HTTPEndPoint getEndPoint()
48     {
49         return this.endPoint;
50     }
51     
52     /** Setter for property endPoint.
53      * @param endPoint New value of property endPoint.
54      *
55      */

56     public void setEndPoint(HTTPEndPoint endPoint)
57     {
58         this.endPoint = endPoint;
59     }
60     
61     /** Getter for property webInfo.
62      * @return Value of property webInfo.
63      *
64      */

65     public LinkedList getWebInfo()
66     {
67         return this.webInfo;
68     }
69     
70     /** Setter for property webInfo.
71      * @param webInfo New value of property webInfo.
72      *
73      */

74     public void setWebInfo(LinkedList webInfo)
75     {
76         this.webInfo = webInfo;
77     }
78     
79     public void addNewWebAccessInfo(WebInfo info)
80     {
81         webInfo.addLast(info);
82         
83         int size = webInfo.size();
84         if (size > MAX_HISTORY)
85         {
86             removeOldestWebInfo();
87         }
88     }
89     
90     public void removeOldestWebInfo()
91     {
92         webInfo.removeFirst();
93     }
94     
95     /** Getter for property ident.
96      * @return Value of property ident.
97      *
98      */

99     public UnregisteredIdentifier getIdent()
100     {
101         return this.ident;
102     }
103     
104     /** Setter for property ident.
105      * @param ident New value of property ident.
106      *
107      */

108     public void setIdent(UnregisteredIdentifier ident)
109     {
110         this.ident = ident;
111     }
112     
113     /** Getter for property helped.
114      * @return Value of property helped.
115      *
116      */

117     public boolean isHelped()
118     {
119         return this.helped;
120     }
121     
122     /** Setter for property helped.
123      * @param helped New value of property helped.
124      *
125      */

126     public void setHelped(boolean helped)
127     {
128         this.helped = helped;
129     }
130     
131     /** Getter for property lastAccessTime.
132      * @return Value of property lastAccessTime.
133      *
134      */

135     public Date getLastAccessTime()
136     {
137         return this.lastAccessTime;
138     }
139     
140     /** Setter for property lastAccessTime.
141      * @param lastAccessTime New value of property lastAccessTime.
142      *
143      */

144     public void setLastAccessTime(Date lastAccessTime)
145     {
146         this.lastAccessTime = lastAccessTime;
147     }
148     
149     /** Getter for property pageCount.
150      * @return Value of property pageCount.
151      *
152      */

153     public int getPageCount()
154     {
155         return this.pageCount;
156     }
157     
158     /** Setter for property pageCount.
159      * @param pageCount New value of property pageCount.
160      *
161      */

162     public void setPageCount(int pageCount)
163     {
164         this.pageCount = pageCount;
165     }
166     
167 }
168
Popular Tags