1 6 7 package com.quikj.application.web.talk.feature.proactive.server; 8 9 import java.util.*; 10 import com.quikj.server.web.*; 11 12 16 public class UnregisteredInfo 17 { 18 private static final int MAX_HISTORY = 10; 19 20 21 private HTTPEndPoint endPoint; 22 23 24 private LinkedList webInfo = new LinkedList(); 25 26 27 private UnregisteredIdentifier ident; 28 29 30 private boolean helped = false; 31 32 33 private Date lastAccessTime; 34 35 36 private int pageCount = 0; 37 38 39 public UnregisteredInfo() 40 { 41 } 42 43 47 public HTTPEndPoint getEndPoint() 48 { 49 return this.endPoint; 50 } 51 52 56 public void setEndPoint(HTTPEndPoint endPoint) 57 { 58 this.endPoint = endPoint; 59 } 60 61 65 public LinkedList getWebInfo() 66 { 67 return this.webInfo; 68 } 69 70 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 99 public UnregisteredIdentifier getIdent() 100 { 101 return this.ident; 102 } 103 104 108 public void setIdent(UnregisteredIdentifier ident) 109 { 110 this.ident = ident; 111 } 112 113 117 public boolean isHelped() 118 { 119 return this.helped; 120 } 121 122 126 public void setHelped(boolean helped) 127 { 128 this.helped = helped; 129 } 130 131 135 public Date getLastAccessTime() 136 { 137 return this.lastAccessTime; 138 } 139 140 144 public void setLastAccessTime(Date lastAccessTime) 145 { 146 this.lastAccessTime = lastAccessTime; 147 } 148 149 153 public int getPageCount() 154 { 155 return this.pageCount; 156 } 157 158 162 public void setPageCount(int pageCount) 163 { 164 this.pageCount = pageCount; 165 } 166 167 } 168 | Popular Tags |